Creates, deletes, or rolls back a snapshot image file of a single logical unit (LU) or multiple LUs.
snapshot -clustername ClusterName -create [SnapShotName] -spname StoragePool {-lu LU_Names | -luudid LUUDIDs}
snapshot -clustername ClusterName -delete SnapShotName -spname StoragePool {-lu LU_Names | -luudid LUUDIDs}
snapshot -clustername ClusterName -rollback SnapShotName -spname StoragePool {-lu LU_Names | -luudid LUUDIDs}
snapshot -clustername ClusterName -list -spname StoragePool [-lu LuName | -luudid LUUDID]
The snapshot command can create, delete, or roll back a snapshot image file of a single LU or multiple LUs. The create flag generates a snapshot image that can either have a user-supplied name or with a system-generated name. The delete flag is used to delete a previously generated snapshot image. The rollback option is used to roll back the snapshot file to a previously generated version of a snapshot image.
| Flag name | Description |
|---|---|
| -clustername | Specifies the cluster name. |
| -create SnapShotName | Specifies the name of the snapshot file to be created. This argument can be left blank, in which case a system-generated name is used. |
| -delete SnapShotName | Specifies the name of the snapshot file to be deleted. This argument is required with the delete flag. |
| -list | Lists the snapshot within the LU. |
| -lu LUnames | Specifies the LU names that are contained in the snapshot file. |
| -luudid LUUDID | Specifies the LU-UDID for this LU. |
| -rollback SnapShotName | Specifies the name of the snapshot file to be rolled back. This argument is required with the rollback flag. |
| -spname StoragePool | Specifies the storage pool name. |
snapshot -clustername mycluster -spname mypool -create bob -lu lu_A
The system displays the following message:
bob
snapshot -clustername mycluster -spname mypool -create -lu lu_A
The system displays the following message:
SS_487532_2010-05-08_01:23:23
snapshot -clustername mycluster -spname mypool -create -lu lu_A lu_B
The system displays the following output:
SS_487555_2010-05-09_01:23:45
snapshot -clustername mycluster -spname mypool -delete lu_image01 -lu lu_A
snapshot -clustername mycluster -spname mypool -rollback lu_image02 -lu lu_A
snapshot -clustername mycluster -list -spname mypool
The system displays the following output:
|
|
|
|
|---|---|---|---|
|
|
|
|
|
|||
|
|||
|
|||
|
|
|
|
|
|||
|
|||
|
|||
|
|
|
|
|
|||
|
|||
|
|
|
|
|
|||
|