Skip to main content
NetApp Knowledge Base

Snapshots locked by dump cannot be deleted

Views:
2,313
Visibility:
Public
Votes:
1
Category:
ndmp
Specialty:
DP
Last Updated:

Applies to

  • ONTAP 8.1x 7-mode
  • ONTAP 8.2x 7-mode
  • ONTAP 8.3x and later
  • ONTAP 9x and later
  • NDMP backup

Issue

  • When the NDMP server calls dump to perform a backup, a “snapshot_for_backup” is created
  • snapshot_for_backup is a consistency snapshot that remains in place until the dump completes or aborts
  • snapshot_for_backup is locked by dump, and will remain locked until the dump completes or aborts
  • In normal operation, snapshot_for_backup is deleted after dump notifies NDMP that it has completed, or aborted
  • In rare circmustances, the NDMP server can no longer communicate with dump
  • When the NDMP server has lost connection with its associated dump session, attempts to delete snapshot_for_backup generate the error:

Error: Snapshot copy [snapshot name] of volume [vol name] on Vserver [vserver name] has not expired or is locked.

  • Output of vol snapshot show indicates "busy" true, and "owners" dump:

::> vol snapshot show -vserver [vserver name] -volume [vol name] -snapshot snapshot* -fields create-time,owners,busy
vserver    volume snapshot                 create-time              busy owners
---------- ------ ------------------------ ------------------------ ---- ------
********** ****** snapshot_for_backup.2087 Sat Oct 26 04:23:08 2019 true dump

 

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.