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

For example, to prepare the replication environment:
1. Ensure the replication is in PAIR state at the replication Target Disk Site node. The STATUS
field must have PAIR value.
In this example, run the following command from the SJC_1 or SJC_2 node:
# pairdisplay -g hrdb_devgroup
2. Perform a replication swap take over from the Target Disk Site node.
In this example, run the following command from the SJC_1 or SJC_2 node.
# horctakeover -g hrdb_devgroup -t 360
3. From the CVM master node at this site, import the disk groups used by RAC database.
# vxdg -stfC import hrdbdg
# vxdg -stfC import flashdg
4. Create the Serviceguard Disk Group MNP packages on this site.
# cfsdgadm add hrdbdg sjc_hrdb_dg all=sw SJC_1 SJC_2
# cfsdgadm add flashdg sjc_flash_dg all=sw SJC_1 SJC_2
5. Activate the RAC database disk groups in the CFS sub-cluster.
# cfsdgadm activate hrdbdg
# cfsdgadm activate flashdg
6. Create the mount point directories for the RAC database cluster file systems.
# mkdir /cfs
# chmod 775 /cfs
# mkdir /cfs/rac
# mkdir /cfs/flash
7. Create the Mount Point MNP packages for the RAC database cluster file systems.
# cfsmntadm add hrdbdg rac_vol /cfs/rac sjc_hrdb_mp all=rw SJC_1
SJC_2
# cfsmntadm add flashdg flash_vol /cfs/flash sjc_flash_mp all=rw
SJC_1 SJC_2
8. Mount the cluster file systems in this CFS sub-cluster.
# cfsmount /cfs/rac
# cfsmount /cfs/flash
Configuring the replica RAC database
To configure the replica RAC database:
1. Copy the first RAC database instance pfile from the source site to the target site first RAC
database instance node.
In this example, copy the RAC database instance pfile from the SFO_1 node to the SJC_1
node.
# cd /opt/app/oracle/product/10.2.0/db_1/dbs
# rcp -p inithrdb1.ora SJC_1:$PWD
The -p option retains the permissions of the file.
2. Setup the first RAC database instance on the target site.
In this example, run the following commands from the SJC_1 node.
# cd /opt/app/oracle/product/10.2.0/db_1/dbs
# ln -s /cfs/rac/oradata/hrdb/orapwhrdb orapwhrdb1
# chown -h oracle:oinstall orapwhrdb1
204 Configuring Oracle RAC in SADTA