Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access for P9000 and XP A.11.00

E 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 with P9000/XP environment.
Run the following command on <nodename>:
$> /usr/sbin/cmdrprev -p demopkg1
Following is the output that is displayed:
cmdrprev: Info - File pkg_data_xpca.env found in /etc/cmcluster/demopkg1.
Feb 29 10:03:24 - Node <nodename>: Package Environment File:
/etc/cmcluster/demopkg1/pkg_data_xpca.env
Feb 29 10:03:24 - Node <nodename>: The XPCA environment file of this
package has version A.10.00
Feb 29 10:03:24 - Node <nodename>: Package has been configured for 2DC
environment.
Feb 29 10:03:24 - Node <nodename>: Entering Data Replication Enabler
Feb 29 10:03:24 - Node <nodename>: Executing: horcmstart.sh 3
Feb 29 10:03:24 - Node <nodename>: Executing: raidqry -l 2>&1
Feb 29 10:03:24 - Node <nodename>: Executing: grep ccpa1
/etc/cmcluster/demopkg1/raidqry.out | awk '{print $4}' | sed 's/[-,.]//g
'
Feb 29 10:03:24 - Node <nodename>: Executing: pairdisplay -g demodg1
-CLI -l -fe -fc 2>&1
Feb 29 10:03:24 - Node <nodename>: Configured fence level is : data
Actual fence level is: DATA
Feb 29 10:03:24 - Node <nodename>: Executing: pairvolchk -g demodg1 -s
2>&1
Feb 29 10:03:24 - Node <nodename>: Executing: pairvolchk -g demodg1 -s
-c 2>&1 Feb 29 10:03:25 - Node nodename: Status for device group: demodg1
Local disk status: PVOL_PAIR
Remote disk status: SVOL_PAIR
Feb 29 10:03:25 - Node <nodename>: Attempting Package startup
Feb 29 10:03:25 - Node <nodename>: Leaving Data Replication Enabler
Verify that the cmdrprev command returns the value of 0.
The 0 value indicates that the data replication preparation is successful in the event of a package
failover from this node.
184 Sample output of the cmdrprev command