Snapshot create and delete operation fails

Contributors netapp-ivanad akseldavis Download PDF of this page

The Snapshot create and delete operation fails to remove Snapshot copies on the storage system because the LUNs are busy.

The following error message appears:

0001-124 Admin error: Failed to remove snapshot <snap-name> on
filer <filer-name>: LUN clone

You might encounter this error and might not be able to directly delete a Snapshot copy if the following are true:

  • A disk group spans across multiple storage systems.

  • The following SnapDrive commands are executed in a loop for more than 50 iterations (the number of iterations depends on the host operating system):

    • snapdrive storage create

    • snapdrive snap create

    • snapdrive storage delete

    • snapdrive snap restore

    • snapdrive snap connect

    • snapdrive storage delete

    • snapdrive snap delete

At this point, the Snapshot copy status on the storage system shows LUNs-Busy, and this status prolongs for a few hours.

Workaround

If…​ Then…​

There are cloned LUNs in a Snapshot copy that are not connected to a host.

You can do one of the following to delete the Snapshot copy:

  • Split the cloned LUNs from the storage system by using the filer split clone command.

  • Delete the cloned LUNs.

There are cloned LUNs in a Snapshot copy that are not connected to a host.

Do the following steps:

  1. Disconnect the cloned LUNs from the host by using the snapdrive snap disconnect command.

  2. Delete the cloned LUNs.

  3. Delete the Snapshot copy.

There are any of the following:

  • Cloned LUNs in a Snapshot copy that is also present in other Snapshot copies

  • Backup cloned LUNs

Complete the following steps:

  1. Run the following command in the storage system command prompt: lun snap usage -s <volumename>< snap-name>

    This lists the name of the Snapshot copies that contain the Snapshot copies of the cloned LUNs, as shown in the following example:

    tonic*> lun snap usage vol1
    james_lun (filer view)
    mpiotest2:
    LUN:
    /vol/vol1/.snapshot/mpiotest2/d
    hilip_0
    Backed By:
    /vol/vol1/.snapshot/dhilip_lun/
    james
  2. Delete the Snapshot copies from the storage system in the same order as they are listed in the lun snap usage command output, as shown in the following example.

    snap delete vol1 mpiotest2

    Ensure that the Snapshot copy you are deleting is not used by any other host. If it is being accessed, you cannot delete.

There are no cloned LUNs

Wait until the LUNs-Busy status of the Snapshot copy on the storage system disappears.