HP StorageWorks P9000 Replication Manager Software 7.1 CLI Reference Guide (TB584-96021, May 2011)

that copy group. When the copy group to be used for the next backup cannot be identified, specify
all copy groups.
-cg_file copy-group-list-file
When usual operation is in the split state, use an absolute path to specify the copy-group list file that
records the copy group for which you want to clear the cache of the secondary volume. Use this
option if you want to clear the caches for many copy groups at the same time. When the copy group
to be used for the next backup can be identified, specify that copy group. When the copy group to
be used for the next backup cannot be identified, specify all copy groups.
Note
Before you attempt to back up the file system or the database to a secondary volume, execute this
extended command for all secondary volumes of resources to be backed up. If you back up data
without clearing the cache of the secondary volume, when you mount the secondary volume, the
existing cache is overwritten to the secondary volume, and the backup data might be lost.
Return Values
0: Normal termination
Any value other than 0: Termination with an error
Conditions Causing an Error
This extended command fails in the following cases:
An invalid option is specified.
The system cannot acquire information from the operation definition file linked to the operation
ID.
The backup ID cannot be acquired from the backup ID file (when the copy group is not specified).
Information cannot be acquired from the copy-group list file (when the file is specified).
Information cannot be acquired from the host environment settings file.
No storage directory for extended-command temporary files is specified in the operation definition
file.
A command executed inside the extended command encounters an error.
The acquisition of the result of a command executed inside the extended command fails.
The command fails to obtain the name of the directory where dictionary map files are stored.
Examples
In this example, the extended command is used to clear the cache of the secondary volume that
belongs to the CG001,dev01 copy group:
EX_DRM_CACHE_PURGE operation01 -cg CG001,dev01
In this example, the extended command is used to clear the cache of the secondary volume that
belongs to the copy group specified in the C:\temp\CGLIST.txt copy-group list file:
EX_DRM_CACHE_PURGE operation01 -cg_file C:\temp\CGLIST.txt
In this example, the extended command is used to clear the cache of the secondary volume that
belongs to the copy group corresponding to the backup ID recorded in the backup ID file:
CLI Reference Guide 37