Building Disaster Recovery Serviceguard Solutions Using Metrocluster with EMC SRDF

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:
AUTOSWAPR2=0
AUTOR1RWNL=0
AUTOR1UIP=1
AUTOR1RWSUSP=0
AUTOR2RWNL=1
AUTOR2WDNL=1
AUTOR2XXNL=0
AUTOSPLITR1=0
CONSISTENCYGROUPS=0
DEVICE_GROUP="pkga_dg"
PKGDIR="/etc/cmcluster/pkga"
RETRY=60
RETRYTIME=5
CLUSTER_TYPE="metro"
RDF_MODE="sync"
3. Run the following command on <node_name>:
# /usr/sbin/cmdrprev -p pkga
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.
90 Sample output of the cmdrprev command