<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mass Storage (OceanDisk Series) on Huawei</title><link>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/configuring-a-storageclass/mass-storage-oceandisk-series-88/</link><description>Recent content in Mass Storage (OceanDisk Series) on Huawei</description><generator>Hugo</generator><language>en</language><copyright>Copyright © 2025 Huawei Technologies Co., Ltd. All rights reserved.</copyright><atom:link href="https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/configuring-a-storageclass/mass-storage-oceandisk-series-88/index.xml" rel="self" type="application/rss+xml"/><item><title>File System</title><link>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/configuring-a-storageclass/mass-storage-oceandisk-series-88/file-system-89/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/configuring-a-storageclass/mass-storage-oceandisk-series-88/file-system-89/</guid><description>&lt;h2 id="section15343162123719">Creating a StorageClass&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Prepare a StorageClass configuration file, for example, &lt;strong>mysc.yaml&lt;/strong>. For details about the StorageClass configuration, see the following example.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Run the following command to create a StorageClass using the configuration file.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl apply -f mysc.yaml
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Run the following command to view the information about the created StorageClass.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl get sc mysc
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The following is an example of the command output.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mysc csi.huawei.com Delete Immediate true 8s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section1053116812255">NFS Protocol Configuration Example&lt;/h2>
&lt;p>When a container uses the NFS protocol to connect to file system resources, refer to the following StorageClass configuration example. In this example, NFS version 4.0 is specified for mounting.&lt;/p></description></item><item><title>Block Service</title><link>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/configuring-a-storageclass/mass-storage-oceandisk-series-88/block-service-90/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/configuring-a-storageclass/mass-storage-oceandisk-series-88/block-service-90/</guid><description>&lt;h2 id="section298035517571">Creating a StorageClass&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Prepare a StorageClass configuration file, for example, &lt;strong>mysc.yaml&lt;/strong>. For details about the StorageClass configuration, see the following example.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Run the following command to create a StorageClass using the configuration file.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl apply -f mysc.yaml
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Run the following command to view the information about the created StorageClass.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>kubectl get sc mysc
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The following is an example of the command output.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#4c4f69;background-color:#eff1f5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mysc csi.huawei.com Delete Immediate true 8s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section19821415151111">Block StorageClass Configuration Example&lt;/h2>
&lt;p>If LUNs are used as storage resources and the file system needs to be formatted to a local file system, refer to the following example.&lt;/p></description></item></channel></rss>