Creating snapshots for data volumes in an RVG

Use the vxrvg snapshot command to create a snapshot for each data volume that is associated with an RVG. This command can be used on the Primary as well as the Secondary RVG.

Before creating snapshots using this command, the appropriate volumes must be prepared using the Storage Foundation Prepare operation. This operation creates mirrors (prepared plexes) for the data volumes.

For further details on preparing volumes, refer to the Storage Foundation Administrator's Guide.

Using the -P <prefix> option with the vxrvg snapshot command lets you specify a prefix for the name of the snapshot volumes that is created. The snapshot volume name follows the naming convention: <prefix>-<vol-name>.

Note:

The snapshot volume name can consist of a maximum of 18 characters including the prefix and the dash (-).

Prefixes are useful if you have multiple snapshots for the same volume and you need to reattach specific snapshots back to the original volumes. You can specify the appropriate prefix to identify the snapshot volume that needs to be reattached.

To enable disk group split friendly snapshot operations, the prepared plexes must satisfy the conditions.

The -f option can be used to force the snapshot operation even if disk group split friendly snapshot operation is not possible. Although the snapshot operation with -f succeeds, performing a subsequent disk group split operation may fail since the snapshot that was taken using the -f option may conflict with replication volumes.

Syntax for vxrvg snapshot command

vxrvg [-g <diskgroup>] [-f] [-P <prefix>] snapshot <rvg>

Example

vxrvg -g vvrdg -P snap snapshot rvg

More Information

Conditions for creating disk group split friendly snapshots

Enabling data access (Starting the RVG)