The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

ONTAP Discussions

How to delete snapshot that has space in name?

taniaeortega

Thank you in advance for whom assist me with this challenge.

 

We have snapshots in SnapVault environment created by SnapCenter VmWare plugin which were given Resource name "Tier 0".   I need to delete all of those with the space in between the letter "r" and number zero (0). I didn't venture using Tier* because of the concern that it will also delete all newer snapshots which we have created that doesn't have the space in it.

 

Any suggestions?

1 ACCEPTED SOLUTION

Sergey_Osipov

2 possible ways:

1. via GUI

2. via CLI (simply created it and deleted in a lab)

 

ontap93a::> vol snapshot create -vserver test_serg -volume data_serg -snapshot "tier 0"

ontap93a::> vol snapshot show -vserver test_serg -volume data_serg
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
test_serg
data_serg
weekly.2018-12-30_0015 1.37MB 0% 48%
weekly.2019-01-06_0015 1.28MB 0% 46%
daily.2019-01-07_0010 1.21MB 0% 45%
daily.2019-01-08_0010 116KB 0% 7%
hourly.2019-01-08_0505 100KB 0% 6%
hourly.2019-01-08_0605 100KB 0% 6%
hourly.2019-01-08_0705 100KB 0% 6%
hourly.2019-01-08_0805 100KB 0% 6%
hourly.2019-01-08_0905 100KB 0% 6%
hourly.2019-01-08_1005 96KB 0% 6%
tier 0 372KB 0% 20%
11 entries were displayed.

ontap93a::> vol snapshot delete -vserver test_serg -volume data_serg -snapshot "tier 0"

Warning: Deleting a Snapshot copy permanently removes any data that is stored only in that Snapshot copy. Are you sure you want to delete Snapshot copy "tier 0" for volume "data_serg" in Vserver "test_serg" ?
{y|n}: y

ontap93a::> vol snapshot show -vserver test_serg -volume data_serg
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
test_serg
data_serg
weekly.2018-12-30_0015 1.37MB 0% 60%
weekly.2019-01-06_0015 1.28MB 0% 58%
daily.2019-01-07_0010 1.21MB 0% 57%
daily.2019-01-08_0010 116KB 0% 11%
hourly.2019-01-08_0505 100KB 0% 10%
hourly.2019-01-08_0605 100KB 0% 10%
hourly.2019-01-08_0705 100KB 0% 10%
hourly.2019-01-08_0805 100KB 0% 10%
hourly.2019-01-08_0905 100KB 0% 10%
hourly.2019-01-08_1005 1.21MB 0% 57%
10 entries were displayed.

View solution in original post

2 REPLIES 2

Sergey_Osipov

2 possible ways:

1. via GUI

2. via CLI (simply created it and deleted in a lab)

 

ontap93a::> vol snapshot create -vserver test_serg -volume data_serg -snapshot "tier 0"

ontap93a::> vol snapshot show -vserver test_serg -volume data_serg
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
test_serg
data_serg
weekly.2018-12-30_0015 1.37MB 0% 48%
weekly.2019-01-06_0015 1.28MB 0% 46%
daily.2019-01-07_0010 1.21MB 0% 45%
daily.2019-01-08_0010 116KB 0% 7%
hourly.2019-01-08_0505 100KB 0% 6%
hourly.2019-01-08_0605 100KB 0% 6%
hourly.2019-01-08_0705 100KB 0% 6%
hourly.2019-01-08_0805 100KB 0% 6%
hourly.2019-01-08_0905 100KB 0% 6%
hourly.2019-01-08_1005 96KB 0% 6%
tier 0 372KB 0% 20%
11 entries were displayed.

ontap93a::> vol snapshot delete -vserver test_serg -volume data_serg -snapshot "tier 0"

Warning: Deleting a Snapshot copy permanently removes any data that is stored only in that Snapshot copy. Are you sure you want to delete Snapshot copy "tier 0" for volume "data_serg" in Vserver "test_serg" ?
{y|n}: y

ontap93a::> vol snapshot show -vserver test_serg -volume data_serg
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
test_serg
data_serg
weekly.2018-12-30_0015 1.37MB 0% 60%
weekly.2019-01-06_0015 1.28MB 0% 58%
daily.2019-01-07_0010 1.21MB 0% 57%
daily.2019-01-08_0010 116KB 0% 11%
hourly.2019-01-08_0505 100KB 0% 10%
hourly.2019-01-08_0605 100KB 0% 10%
hourly.2019-01-08_0705 100KB 0% 10%
hourly.2019-01-08_0805 100KB 0% 10%
hourly.2019-01-08_0905 100KB 0% 10%
hourly.2019-01-08_1005 1.21MB 0% 57%
10 entries were displayed.

View solution in original post

Thanks for your suggestions and taking the time to help me.

 

Yet it was multi snapshots I needed to delete -- those with the space.

Just a few minutes ago, I had a followup from someone else and this is what took care of it via CLI on the SnapVault site, then it allowed me to select those which had the space before the zero (0).

 

snapshot delete -volume xxxxxx -vserver svmxxxAmazon -snapshot Tier*

 

Warning: Deleting a Snapshot copy permanently removes any data that is stored only in that Snapshot copy. Are you
sure you want to delete Snapshot copy "Tier 0_xxxxxx_12-10-2018_03.00.01.8376" for volume
"xxxxxxxxxxx" in Vserver "svmxxxAmazon" ? {y|n}: y

 

Then when I had no more with the space, I repled 'n' and stopped the delete.

 

 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public