Building Disaster Recovery Serviceguard Solutions Using Continentalclusters for Linux B.01.00.00

Verify data replication environment
You can use the cmdrprev command to preview the preparation of data replication environment
for an actual recovery can be previewed. The command identifies errors in data replication
environment which will potentially fail an actual recovery.
Run the following command on every node of the recovery cluster and verify that the command
returns a value 0.
# cmdrprev -p <recovery_package>
nl
Move the recovery group into maintenance mode
Before starting the disaster recovery rehearsal operation, the recovery packages must be moved
into maintenance mode. This prevents startup of the recovery packages even if disaster recovery
is triggered during rehearsal operation.
# cmrecovercl -d -g <recovery_group_name>
Run the cmviewconclcommand to verify that the recovery group is in maintenance mode.
# cmviewconcl -v
nl
Prepare the replication environment for DR rehearsal
Manually suspend the replication and enable write access to secondary mirror copy configured
for the package.
# pairsplit g <device_group> -rw (in case of XP)
For every volume group that is configured for the package, delete the host id tag by running the
following command from any of the recovery cluster nodes.
Split the BC pair at recovery cluster.
# export HORCC_MRCF=1
# pairsplit g <device_group> (in case of XP)
# unset HORCC_MRCF
nl
Start rehearsal
To perfrom rehearsal operation on a recovery group, run the cmrecovercl command.
# cmrecovercl -r -g <recovery_group>
The cmrecovercl command runs the rehearsal package that is configured in the recovery group.
NOTE: Before starting the rehearsal, make any application configuration changes that might be
required due to the change in the client access IP address, which is now the rehearsal package IP
address. For example, in case of Oracle Single Instance application, reconfigure the listener to
listen on the rehearsal package IP address. See “ Precautions to be taken while performing DR
Rehearsal” (page 34) for the list of precautionary steps.
After the cmrecovercl command completes , run the cmviewcl command to verify that the
rehearsal packages are up.
nl
Stop rehearsal package
After performing the rehearsal operations, the rehearsal package must be halted using the
cmhatlpkg command.
# cmhaltpkg <rehearsal_pkg>
nl
Performing Disaster Recovery rehearsal in Continentalclusters 35