ONTAP Discussions
ONTAP Discussions
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?
Solved! See The Solution
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.
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.
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.