Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access XP P9000 for Linux B.01.00.00

D 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>:
$> $SGBIN/cmdrprev -p demopkg1
Following is the output that is displayed:
Oct 24 21:23:41 - Node bf2 : Package has been configured for 2DC environment.
Oct 24 21:23:41 - Node bf2 : Entering Data Replication Enabler
Oct 24 21:23:41 - Node bf2 : Executing: horcmstart.sh 1
Oct 24 21:23:41 - Node bf2 : Executing: raidqry -l 2>&1
Oct 24 21:23:41 - Node bf2 : Executing: grep bf2 /opt/cmcluster/conf/pkg/oraclecc/raidqry.out | awk '{print
$4}' | sed 's/[-,.]//g '
Oct 24 21:23:41 - Node bf2 : Executing: pairdisplay -g oratkit -CLI -l -fe -fc 2>&1
Oct 24 21:23:41 - Node bf2 : Configured fence level is : never
Actual fence level is: NEVER
Oct 24 21:23:41 - Node bf2 : Executing: pairvolchk -g oratkit -s 2>&1
Oct 24 21:23:42 - Node bf2 : Executing: pairvolchk -g oratkit -s -c 2>&1
Oct 24 21:23:42 - Node bf2 : Status for device group: oratkit
Local disk status: SVOL_PAIR
Remote disk status: PVOL_PAIR
Oct 24 21:23:42 - Node bf2 : Swapping the PVOL/SVOL personalities of
the local and remote sites.
Oct 24 21:23:42 - Node bf2 : This site now has the PVOL.
Oct 24 21:23:42 - Node bf2 : 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.
68 Sample output of the cmdrprev command