Disaster recovery rehearsal in Continentalclusters

24
3. Using the cmviewconcl command, verify that the recovery group inv_rac10g_recgp is in
maintenance mode.
4. Prepare the replication environment for DR rehearsal.
Manually suspend the replication and enable write access to secondary mirror copy.
$) pairsplit g inv_rac10g_dg -rw
For each volume group configured on the secondary mirror copy change the cluster id by running
the following command from any of the recovery cluster nodes.
#vgchange -c n S n inv_rac10g_vg1
#vgchange -c y S y inv_rac10g_vg1
#vgchange -c n S n inv_rac10g_vg2
#vgchange -c y S y inv_rac10g_vg2
Split the BC pair at recovery cluster.
#export HORCC_MRCF=1
#pairsplit g inv_rac10g_dg
#unset HORCC_MRCF
5. Change the client access IP address on the recovery cluster. In this example the VIP addresses set
up at the recovery cluster nodes are changes for rehearsal.
Note: This is done to prevent clients from connecting to the database and making production changes during
rehearsal. For more details refer to the
Client access IP address.
On either HOUnode1 or HOUnode2, run the following command as oracle user. Then from the
the command output, identify the VIP address currently set up on nodes, HOUnode1 and
HOUnode2. For this white paper, it is assumed that on HOUnode1 the VIP address set up is
VIP_Rec1_Addr, and on HOUnode2 the VIP address set up is VIP_Rec2_Addr.
$) cluvfy comp nodecon -n all verbose
On each recovery cluster node, select a free IP address to be used as the VIP address for
rehearsal. Assume that the VIP address identified for HOUnode1 is VIP_Reh1_Addr, and on
HOUnode2 as VIP_Reh2_Addr. For this white paper, it is assumed that on HOUnode1 the VIP
address selected for rehearsal is VIP_Reh1_Addr, and on HOUnode2 the VIP address selected is
VIP_Reh2_Addr.
On hosts HOUnode1 and HOUnode2, make necessary changes to /etc/hosts to associate the
host name with new VIP address.
On either HOUnode1 or HOUnode2, run the following command as root user.
$ export ORACLE_HOME=/opt/app/oracle/product/10.2.0/db_1
$ export PATH=$PATH:$ORACLE_HOME/bin
$) srvctl modify nodeapps -n HOUnode1 -A “VIP_Reh1_Addr”/<subnetmask>/lan0
$) srvctl modify nodeapps -n HOUnode2 -A “VIP_Reh2_Addr”/<subnetmask>/lan0
Note: For more details on how to change the public VIP, refer to
http://download.oracle.com/docs/cd/B28359_01/rac.111/b28255/votocr.htm#BGBGDHFG.
6. Start rehearsal.
$) cmrecovercl -r -g inv_rac10g_recgp
Note: Using thecmviewcl” command, verify that the rehearsal package inv_rac10g_rhpkg was started.