Skip to main content
NetApp Knowledge Base

Snapshot can't be deleted with error "This Snapshot copy is currently used as a reference Snapshot copy by"

Views:
503
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
dp
Last Updated:

Applies to

  • ONTAP 9
  • SnapMirror
  • Snapshot is created manually on Cluster A(9.8) of cascade environment:( A->B->C) 
  • Then the same snapshot is transferred to Cluster B(9.8) and use that snapshot creates a new volume and then transfers to Cluster C(9.13).
  • Change the cascade settings to FAN-OUT(A->B & A->C) since A and C have the same common snapshot.

Issue

  • The snapshot on Cluster A can't be deleted with the below error even the snapmirror transfer is completed:

::*> snapshot delete -vserver <vservername> -volume <volname> -snapshot <snapshotname>
Error: command failed: This Snapshot copy is currently used as a reference Snapshot copy by . 

  • The snapshot details shows the snapshot is owned by snapmirror relationship:

    ::*> snapshot show -vserver <vservername> -volume <volname> -snapshot <snapshotname>

     Vserver: <vservername>
     Volume: <volname>
     Snapshot: <snapshotname>
     Snapshot Busy: false
     Physical Snap ID: 525
     Logical Snap ID: 525
     Database Record Owner: snapmirrorDP.a91be97099eeeb11b603d039ea4987c5_2159856287.nonSMDstOwned
     Snapshot Tags: VOPL_owner_snapmirrorDP.a91be97099eeeb11b603d039ea4987c5_2159856287.nonSMDstOwned=snapmirror

  • The snapshot can be deleted later on when no owner owned the snapshot:

::*>  snapshot show -vserver <vservername> -volume <volname> -snapshot <snapshotname>                
     Snapshot Busy: false
     Physical Snap ID: 525
     Logical Snap ID: 525
     Database Record Owner: -
     Snapshot Tags: -

::*> snapshot delete -vserver <vservername> -volume <volname> -snapshot <snapshotname>
    Warning: Deleting a Snapshot copy permanently removes data that is stored only in that Snapshot copy. Are you sure you want to delete Snapshot copy "<snapshotname>" for volume "<volname>" in Vserver "<vservername>" ? {y|n}: 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.