HP XP P9000 Replication Manager Software 7.6.0-00 Application Agent CLI Reference Guide

Arguments
-copy_group copy-group-name
Specify the name of the copy group you want to lock or unlock.
You can confirm that the logical volumes are the same by executing the drmfsdisplay command
and checking the items listed for LVM-DEVICE.
In environments where one logical volume group comprises multiple copy groups, if the multiple
generation backup function is used, the number of generations of all copy groups comprising the
logical volume group must match. If the copy group generations do not match, backup generation
management cannot be performed correctly in Application Agent.
-mode { lock | unlock }
Specify whether to lock or unlock the copy group. To lock the copy group, specify lock. To unlock
the copy group, specify unlock.
-backup_id backup-ID
Specify the backup ID associated with the copy groups you want to lock or unlock. By specifying a
backup ID, you can lock or unlock all the copy groups used for the backup identified by the specified
ID at the same time. Specify the backup ID created when the backup was performed from the primary
volume to the secondary volume.
To check backup IDs, execute either of the following commands, according to what was backed up:
When the backup is of a file system, use the drmfscat command.
When the backup is of an SQL Server database, use the drmsqlcat command.
When the backup is of an Exchange database, use the drmexgcat command.
You cannot specify a backup ID that was created when a backup was performed from the secondary
volume to a tape device. (You can use the drmtapecat command to check such a backup ID.) If
such an ID is specified, a command error occurs.
Return Values
0: Normal termination
Any value other than 0: Termination with an error
Examples
In this example, the command is used to display a listing of lock information for each copy group:
PROMPT> drmcgctl
COPY GROUP LOCK STATUS BACKUP-ID
VG01,dev01 LOCKED 0000000001
VG01,dev02 LOCKED 0000000001
VG01,dev03 UNLOCKED
VG02,dev01 UNLOCKED
In this example, the command is used to unlock the copy group VG01,dev01:
PROMPT> drmcgctl -copy_group VG01,dev01 -mode lock
In this example, the command is used to unlock the copy group VG01,dev01:
Application Agent CLI Reference Guide 109