raidcom delete snapshot

Storage Advisor Embedded User Guide

Version
93-07-2x
88-08-12
Audience
anonymous
Part Number
MK-97HM85022-25

Deletes the snapshot data and the snapshot group. The relevant snapshot data of the LDEV is deleted from the snapshot group by specifying LDEV number. When no snapshot data left in the snapshot group, the snapshot group is deleted.

Syntax

raidcom delete snapshot {-snapshotgroup <name> | -ldev_id <ldev#> 
{-mirror_id <mu#> |-snapshotgroup <name> | -range tree}}

Options and parameters

-snapshotgroup <name>

Specifies the snapshot group in which the target data to be deleted is included.

If the snapshot group is specified as the target, all the snapshot data and the snapshot group are deleted.

-ldev_id <ldev#>

Specifies the LDEV number of P-VOL or S-VOL for the snapshot data to be deleted.

When P-VOL is specified, specify the snapshot data by specifying the MU number or the snapshot group (Specifying the MU number or the snapshot group is mandatory).

When you specify the S-VOL, do not specify a MU number or a Snapshot group. If you specify the MU number or the Snapshot group, the P-VOL of specified LDEV number becomes the subject of deletion.

-mirror_id <mu#>

Specifies the Mirror ID of the snapshot data to be deleted.

-snapshotgroup <name>

Specifies the snapshot group to be deleted.

The smallest number of MU in the snapshot group becomes the subject to be deleted.

-range tree

Specify this option to delete snapshot data in all layers of a snapshot tree for which the root volume is specified by -ldev_id <ldev#>. This option is not supported by Thin Image Advanced. To specify this option, the following conditions must be met:

  • Root volume is an LDEV specified by -ldev_id <ldev#>.
  • The pair to be deleted was created in the cascade or clone mode.
  • The user has the operation authority for volumes of all pairs to be deleted.
Note:

When multiple snapshot trees are cloned, specify the root volume of the first snapshot tree for -ldev_id <ldev#>, and execute the command. Only the first snapshot tree is deleted, and the status of the pairs under the first snapshot tree changes to PSUE. Specify the root volume of a snapshot tree under the first snapshot tree for -ldev_id <ldev#>, and execute the command again. When this option is specified, the SIM code (4b3xxx) that indicates abnormal termination of the Thin Image option might be output. However, the snapshot tree has been deleted normally and there is no problem.

Examples

Deleting the snapshot data of the snapshot group (db1).

# raidcom delete snapshot -snapshotgroup db1

Deleting the snapshot data of the P-VOL (LDEV number 10:10) and the Mirror ID (10).

# raidcom delete snapshot -ldev_id 0x1010 –mirror_id 10

Deleting the snapshot data of the LDEV number 10:10 that is included in the snapshot group (db1).

# raidcom delete snapshot -ldev_id 0x1010 -snapshotgroup db1
# raidcom delete snapshot -snapshotgroup db1 -ldev_id 0x1010

Deleting the snapshot data of the S-VOL (LDEV number 20:10).

# raidcom delete snapshot -ldev_id 0x2010

Deleting the snapshot data in all layers of a snapshot tree whose root volume has LDEV number 20:10.

# raidcom delete snapshot -ldev_id 0x2010 -range tree