Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Deleting busy Snapshot copies

What a Snapshot copy in a busy state means  Top

A Snapshot copy is in a busy state if there are any LUNs backed by data in that Snapshot copy. The Snapshot copy contains data that is used by the LUN. These LUNs can exist either in the active file system or in some other Snapshot copy.

Command to use to find Snapshot copies in a busy state  Top

The lun snap usage command lists all the LUNs backed by data in the specified Snapshot copy. It also lists the corresponding Snapshot copies in which these LUNs exist. The lun snap usage command displays the following information:

Deleting Snapshot copies in a busy state  Top

To delete a Snapshot copy in a busy state, complete the following steps.

Step

Action

1

Identify all Snapshot copies that are in a busy state, locked by LUNs, by entering the following command:

snap list vol-name

Example


 
snap list vol2

Result

The following message is displayed:

Volume vol2
working...

 
  %/used       %/total  date          name
----------  ----------  ------------  --------
  0% ( 0%)    0% ( 0%)  Jan 14 04:35  snap3
  0% ( 0%)    0% ( 0%)  Jan 14 03:35  snap2
 42% (42%)   22% (22%)  Dec 12 18:38  snap1              
 42% ( 0%)   22% ( 0%)  Dec 12 03:13  snap0 (busy,LUNs)
2

Identify the LUNs and the Snapshot copies that contain them by entering the following command:

lun snap usage vol_name snap_name

Example

lun snap usage vol2 snap0

Result

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.

3

Delete all the LUNs in the active file system that are displayed by the lun snap usage command by entering the following command:

lun destroy [-f] lun_path [lun_path ...]

Example

lun destroy /vol/vol2/lunC
4

Delete all the Snapshot copies that are displayed by the lun snap usage command in the order they appear, by entering the following command:

snap delete vol-name snapshot-name

Example

snap delete vol2 snap2
snap delete vol2 snap1

Result

All the Snapshot copies containing lunB are now deleted and snap0 is no longer busy.

5

Delete the Snapshot copy by entering the following command:

snap delete vol-name snapshot-name

Example


snap delete vol2 snap0

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments