HP StorageWorks P9000 Replication Manager Software 7.1 CLI Reference Guide (TB584-96021, May 2011)
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:
PROMPT> drmcgctl -copy_group VG01,dev01 -mode unlock
• In this example, the command is used to lock the copy groups used for the backup identified by
the backup ID 0000000001:
PROMPT> drmcgctl -backup_id 0000000001 -mode lock
• In this example, the command is used to unlock the copy groups used for the backup identified
by the backup ID 0000000001:
PROMPT> drmcgctl -backup_id 0000000001 -mode unlock
CLI Reference Guide 107