Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-72-2380493.1
Update Date:2018-04-02
Keywords:

Solution Type  Problem Resolution Sure

Solution  2380493.1 :   Oracle ZFS Storage Appliance: Unable to delete NDMP snapshots, reporting snapshot is busy.  


Related Items
  • Sun ZFS Storage 7420
  •  
  • Oracle ZFS Backup Appliance ZS5-4
  •  
  • Oracle ZFS Storage ZS5-2
  •  
  • Oracle ZFS Storage ZS3-2
  •  
  • Oracle ZFS Storage Appliance Racked System ZS5-4
  •  
  • Oracle ZFS Storage ZS4-4
  •  
  • Oracle ZFS Storage ZS5-4
  •  
  • Oracle ZFS Storage ZS3-4
  •  
  • Oracle ZFS Storage Appliance Racked System ZS5-2
  •  
  • Sun ZFS Storage 7120
  •  
  • Sun ZFS Storage 7320
  •  
  • Oracle ZFS Storage Appliance Racked System ZS4-4
  •  
  • Oracle ZFS Storage ZS3-BA
  •  
Related Categories
  • PLA-Support>Sun Systems>DISK>ZFS Storage>SN-DK: ZS
  •  


Unable to delete NDMP snapshots they were reporting busy.

In this Document
Symptoms
Changes
Cause
Solution
References


Created from <SR 3-17180445491>

Applies to:

Sun ZFS Storage 7420 - Version All Versions and later
Oracle ZFS Storage ZS5-4 - Version All Versions and later
Oracle ZFS Storage ZS5-2 - Version All Versions and later
Oracle ZFS Storage Appliance Racked System ZS5-4 - Version All Versions and later
Oracle ZFS Storage Appliance Racked System ZS5-2 - Version All Versions and later
7000 Appliance OS (Fishworks)

Symptoms

Snapshots exist in a share from failed NDMP backups.

The snapshots do not seem to be able to be deleted using the BUI and/or CLI.

 

In an attempt to resolve this situation - try to restart the NDMP service in the BUI or CLI.

Go to configuration service and select ndmp and restart the service :

CLI:  configuration services ndmpdisable
CLI:  configuration services ndmpenable

Then try to remove/destroy the snapshots in question.

 

If above steps fail, engage Oracle customer support.


Directly deleting the snapshots in the Solaris shell also fails:

> confirm shell

# zfs destroy pool2/local/ex_backup_2/backup2@.ndmp.38
cannot destroy 'pool2/local/ex_backup_2/backup2@.ndmp.38': snapshot is busy
# zfs destroy pool2/local/ex_backup_2/backup2@.ndmp.51
cannot destroy 'pool2/local/ex_backup_2/backup2@.ndmp.51': snapshot is busy
# zfs destroy pool2/local/ex_backup_2/backup2@.ndmp.59
cannot destroy 'pool2/local/ex_backup_2/backup2@.ndmp.59': snapshot is busy

 

Changes

Customer reported NDMP backup server failed and never notified the ZFSSA.

 

Cause

The NDMP service had a lock on the snapshots.

Needed to restart the NDMP service and then was able to destroy the snapshots.

 

Solution

Find the NDMP snapshots in question, restart the NDMP service, then delete the snapshots.

 

# zfs list -t snapshot | grep backup -i ndmp
pool2/local/ex_backup_2/backup2@.ndmp.38 14.2T - 15.3T -
pool2/local/ex_backup_2/backup2@.ndmp.51 4.52T - 13.3T -
pool2/local/ex_backup_2/backup2@.ndmp.59 2.42T - 15.5T -


Attempts to destroy them fail with snapshot busy:

# zfs destroy pool2/local/ex_backup_2/backup2@.ndmp.38
cannot destroy 'pool2/local/ex_backup_2/backup2@.ndmp.38': snapshot is busy


pp1medzfs2# zfs destroy pool2/local/ex_backup_2/backup2@.ndmp.51
cannot destroy 'pool2/local/ex_backup_2/backup2@.ndmp.51': snapshot is busy


pp1medzfs2# zfs destroy pool2/local/ex_backup_2/backup2@.ndmp.59
cannot destroy 'pool2/local/ex_backup_2/backup2@.ndmp.59': snapshot is busy


Verify with customer no other NDMP backups are running at this time and then restart the NDMP service.

# svcadm restart /system/ndmpd:default

 

# zfs destroy -f pool2/local/ex_backup_2/backup2@.ndmp.38
# zfs destroy -f pool2/local/ex_backup_2/backup2@.ndmp.51
# zfs destroy -f pool2/local/ex_backup_2/backup2@.ndmp.59

 

# zfs list -t all -o used,name |fgrep zomb
238K pool2/zombie
119K pool2/zombie/shares

 

References

<NOTE:1444984.1> - ZFS Snapshot May Leak During a NDMP Backup

Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback