<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Managing Volume Snapshots on Huawei</title><link>https://huawei.github.io/css-docs/en/v4.11.0/advanced-services/snapshot-management/managing-volume-snapshots/</link><description>Recent content in Managing Volume Snapshots 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/advanced-services/snapshot-management/managing-volume-snapshots/index.xml" rel="self" type="application/rss+xml"/><item><title>Querying a VolumeSnapshot</title><link>https://huawei.github.io/css-docs/en/v4.11.0/advanced-services/snapshot-management/managing-volume-snapshots/querying-a-volumesnapshot/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/en/v4.11.0/advanced-services/snapshot-management/managing-volume-snapshots/querying-a-volumesnapshot/</guid><description>&lt;h2 id="section1116853914280">Viewing a VolumeSnapshotClass&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Run the following command to view the information about the created VolumeSnapshotClass.&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 volumesnapshotclass
&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 DRIVER DELETIONPOLICY AGE
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mysnapclass csi.huawei.com Delete 25s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="section5247123019291">Querying a Volume Snapshot&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Run the following command to view the information about the created VolumeSnapshot.&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 volumesnapshot
&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 READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mysnapshot true mypvc 100Gi mysnapclass snapcontent-1009af0a-24c2-4435-861c-516224503f2d &amp;lt;invalid&amp;gt; 78s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol></description></item><item><title>Creating a PV Using a VolumeSnapshot</title><link>https://huawei.github.io/css-docs/en/v4.11.0/advanced-services/snapshot-management/managing-volume-snapshots/creating-a-pv-using-a-volumesnapshot/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/en/v4.11.0/advanced-services/snapshot-management/managing-volume-snapshots/creating-a-pv-using-a-volumesnapshot/</guid><description>&lt;h2 id="en-us_topic_0254212585_section0772716133710">Prerequisites&lt;/h2>
&lt;ul>
&lt;li>
&lt;a href="https://huawei.github.io/css-docs/css-docs/en/docs/compatibility-and-features/">Compatibility and Features&lt;/a>
 lists storage that support PVC creation using a VolumeSnapshot. You need to search by the storage type and service type.&lt;/li>
&lt;li>
&lt;a href="https://huawei.github.io/css-docs/css-docs/en/docs/appendix/kubernetes-feature-matrix/">Kubernetes Feature Matrix&lt;/a>
 lists the Kubernetes versions that support PVC creation using a VolumeSnapshot.&lt;/li>
&lt;li>A VolumeSnapshot exists, and the backend where the VolumeSnapshot resides supports cloning.&lt;/li>
&lt;/ul>
&lt;p>When creating a PVC, you need to specify a VolumeSnapshot as the data source. The following is an example of creating a PVC using a VolumeSnapshot. In this example, &lt;strong>mysnapshot&lt;/strong> is used as the data source and a PVC named &lt;strong>myrestore&lt;/strong> is created.&lt;/p></description></item><item><title>Deleting a VolumeSnapshot</title><link>https://huawei.github.io/css-docs/en/v4.11.0/advanced-services/snapshot-management/managing-volume-snapshots/deleting-a-volumesnapshot/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://huawei.github.io/css-docs/en/v4.11.0/advanced-services/snapshot-management/managing-volume-snapshots/deleting-a-volumesnapshot/</guid><description>&lt;h2 id="section17253353163115">Deleting a VolumeSnapshot&lt;/h2>
&lt;p>Perform this operation when the volume snapshot is no longer required.&lt;/p>
&lt;h2 id="section1976104203312">Procedure&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Run the following command to view the information about the created VolumeSnapshot.&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 volumesnapshot
&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 READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mysnapshot true mypvc 100Gi mysnapclass snapcontent-1009af0a-24c2-4435-861c-516224503f2d &amp;lt;invalid&amp;gt; 78s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Run the following command to delete the VolumeSnapshot:&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 volumesnapshot mysnapshot 
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>If the following information is displayed, the deletion is successful:&lt;/p></description></item></channel></rss>