Building Disaster Recovery Serviceguard Solutions Using Metrocluster with EMC SRDF

Before creating an identical RAC database at the remote site, you must first prepare the replication
environment. The replication setup depends on the type of arrays that are configured in your
environment. Based on the arrays in your environment, see the respective chapters of this manual
to configure replication. After configuring replication in your environment, configure the replica
RAC database.
For example, to prepare the replication environment:
1. Split the logical SRDF links.
# symrdf -g devgrpname split -v
2. From the CVM master node at this site, import the disk groups used by RAC database.
# vxdg -stfC import hrdbdg
# vxdg -stfC import flashdg
3. 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
4. Activate the RAC database disk groups in the CFS sub-cluster.
# cfsdgadm activate hrdbdg
# cfsdgadm activate flashdg
5. Create the mount point directories for the RAC database cluster file systems.
# mkdir /cfs
# chmod 775 /cfs
# mkdir /cfs/rac
# mkdir /cfs/flash
6. 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
7. 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 on 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
# chown oracle:oinstall inithrdb1.ora
Configuring Oracle RAC database in a SADTA 113