ONTAP Discussions

Snapshot in use, and cannot delete

netappmagic
9,027 Views

I am trying to delete a snapshot, but getting following message:

Error: command failed: Snapshot is in use

 

I used the option: -ignore-owners true -force true

still the same error.

 

No Snapmirror, snapvault or clone associaetd with the volume

 

Any idea how to delete it?

5 REPLIES 5

Jeff_Yao
8,800 Views

joey_k
8,556 Views

hello, have you resolve the issue? i have the same problem too,

ITSSANSTORAGE
8,135 Views

We are still having the same problem too. Have tried to force delete the snaps with no sucess. Any further help appreciated.

 

::*> snap delete -vserver tur-nas1 -volume tur_nas1_streamv19_content -snapshot SP_2_1213666_7626_1460597749 -foreground true -force true -ignore-owners true

Error: command failed: Snapshot copy "SP_2_1213666_7626_1460597749" of volume "tur_nas1_streamv19_content" on Vserver "tur-nas1" has not expired or is locked. Use the "snapshot show -fields owners, expiry-time" command to view
the expiry and lock status of the Snapshot copy.

 

 

::*> snapshot show -fields owners,expiry-time -vserver tur-nas1 -volume tur_nas1_streamv19_content
vserver volume snapshot owners expiry-time
-------- -------------------------- ---------------------------- -------------- -----------
tur-nas1 tur_nas1_streamv19_content SP_2_1213666_7626_1460597749 "volume clone" -
tur-nas1 tur_nas1_streamv19_content test_snapshot_ian - -
tur-nas1 tur_nas1_streamv19_content snapmirror.02422c1b-4daf-11e4-8a7c-123478563412_2147484763.2018-02-28_143000

vietnetapp
6,992 Views

There is no way that you can delete that busy snapshot.   you can't force or ignore-owner.

 

Please try these steps.   It works like a charm:

 

1. create new snapshot on the source cluster, label the snapshot properly so that the snapshot will be used for snapmirror

2. on the destination cluster, re-create the snapmirror job.

3. on the destinaiton cluster, run "snapmirror resync".  it will use the newly created snapshot for snapmirror and release the busy snapshot that you try to delete.

4. delete the "busy" snapshot (which is not busy anymore) on the destination volume.

Mobilsuit
407 Views

I have succeeded this way. ::*> snap list
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
svm1 data09
snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121772.2022-05-14_170013 756KB 0% 0%
snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121772.2022-05-14_170127 9.49MB 0% 0%
snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121772.2022-05-14_170933 372KB 0% 0%
snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121772.2022-05-14_171023 1.11TB 8% 12%
snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121773.2022-06-28_194000 534.8GB 4% 6%

 

::*> snap delete -vserver svm1 -volume data09 -foreground true -force true -ignore-owners true -snapshot  snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121772.2022-05-14_170013

 

::*> snap delete -vserver svm1 -volume data09 -foreground true -force true -ignore-owners true -snapshot snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121772.2022-05-14_170127

 

::*> snap delete -vserver svm1 -volume data09 -foreground true -force true -ignore-owners true -snapshot snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121772.2022-05-14_170933

 

::*> snap delete -vserver svm1 -volume data09 -foreground true -force true -ignore-owners true -snapshot  snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121772.2022-05-14_171023

 

::*> snap list
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
svm1 data09
snapmirror.8a60e53d-ab82-11ec-9c9c-d039ea925dc7_2150121773.2022-06-28_194000 534.8GB 4% 6%

 

Thanks

Public