HP Serviceguard Metrocluster with EMC SRDF for Linux B.01.00.00
C Sample output of the cmdrprev command
The following procedure shows you how to use the cmdrprev command to preview the data
replication preparation for a package in an MC SRDF environment.
1. Verify that the Metrocluster environment file for the package pkga is present in the package
directory on node <node_name>.
2. Verify that the package attributes have values as shown here:
AUTO_NO_REPLICATION=1
AUTO_NONCURDATA=0
CONSISTENCYGROUPS=0
DEVICE_GROUP="pkga_dg"
PKGDIR="/etc/cmcluster/pkga"
RETRY=60
RETRY_INTERVAL=5
CLUSTER_TYPE="metro"
RDF_MODE="sync"
3. Run the following command on <node_name>:
For SLES
/opt/cmcluster/bin/cmdrprev
For RHEL
/usr/local/cmcluster/bin/cmdrprev
Following is the output that is displayed:
May 10 04:36:40 - Node <node_name>: Entering Data Replication Enabler
May 10 04:36:41 - Node <node_name>: Data Replication State: pkga
Role: R2
LocalRdfState: WD
RemoteRdfState: RW
RDF Mode: SYNC
RepState: SYNCHRONIZED
May 10 04:36:43 - Node <node_name>: Failover of the device group
successfully. The package is allowed to start up.
May 10 04:36:43 - Node <node_name>: Leaving Data Replication Enabler
4. Verify that the cmdrprev command returns the value of 0.
The 0 value indicates that the data replication preparation will be successful in the event of a
package failover from this node.
46 Sample output of the cmdrprev command