Identify the LUNs and the Snapshot copies that contain them by entering the following command: lun snap usage [-s] vol_name snap_name
Use the -s option to only display the relevant backing LUNs and Snapshot copies that must be deleted.
Note: The
-s option is particularly useful in making SnapDrive output more readable. For example:
lun snap usage -s vol2 snap0
You need to delete the following snapshots before deleting snapshot "snap0":
/vol/vol1/.snapshot/snap1
/vol/vol2/.snapshot/snap2
Example
lun snap usage vol2 snap0
The following message is displayed:
active:
LUN: /vol/vol2/lunC
Backed By: /vol/vol2/.snapshot/snap0/lunA
snap2:
LUN: /vol/vol2/.snapshot/snap2/lunB
Backed By: /vol/vol2/.snapshot/snap0/lunA
snap1:
LUN: /vol/vol1/.snapshot/snap1/lunB
Backed By: /vol/vol2/.snapshot/snap0/lunA
Note: The LUNs are backed by lunA in the snap0 Snapshot copy.
In some cases, the path for LUN clones backed by a Snapshot copy cannot be determined. In those instances, a message is displayed so that those Snapshot copies can be identified. You must still delete these Snapshot copies in order to free the busy backing Snapshot copy. For example:
lun snap usage vol2 snap0
Snapshot - snap2:
LUN: Unable to determine the path of the LUN
Backed By: Unable to determine the path of the LUN
LUN: /vol/vol2/.snapshot/snap2/lunB
Backed By: /vol/vol2/.snapshot/snap0/lunA