<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Managing a StorageClass on Huawei</title><link>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/managing-a-storageclass/</link><description>Recent content in Managing a StorageClass 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/managing-a-storageclass/index.xml" rel="self" type="application/rss+xml"/><item><title>Querying a StorageClass</title><link>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/managing-a-storageclass/querying-a-storageclass/</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/managing-a-storageclass/querying-a-storageclass/</guid><description>&lt;ol>
&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></description></item><item><title>Modifying a StorageClass</title><link>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/managing-a-storageclass/modifying-a-storageclass/</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/managing-a-storageclass/modifying-a-storageclass/</guid><description>&lt;p>Kubernetes allows only the &lt;strong>allowVolumeExpansion&lt;/strong> field of a StorageClass to be modified. The modification method is as follows:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Run the following command to check whether the StorageClass can be expanded:&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>If the command output is displayed as the following example, the StorageClass &lt;strong>mysc&lt;/strong> cannot be expanded:&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 false 8s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Run the following command to enable capacity expansion for the StorageClass:&lt;/p></description></item><item><title>Deleting a StorageClass</title><link>https://huawei.github.io/css-docs/en/v4.11.0/basic-services/storageclass-management/managing-a-storageclass/deleting-a-storageclass/</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/managing-a-storageclass/deleting-a-storageclass/</guid><description>&lt;ol>
&lt;li>
&lt;p>Run the following command to view the 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 false 8s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Run the following command to delete the 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 delete sc mysc
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>If the following information is displayed, the deletion is successful:&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>storageclass.storage.k8s.io &amp;#34;mysc&amp;#34; deleted
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol></description></item></channel></rss>