Building Disaster Recovery Serviceguard Solutions Using Metrocluster with Continuous Access EVA A.05.01

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, that is the
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
# chown oracle:oinstall inithrdb1.ora
3. Copy the second RAC database instance pfile from the source site to the target site second
RAC database instance node.
In this example, copy the RAC database instance pfile from the SFO_2 node to the SJC_2
node.
# cd /opt/app/oracle/product/10.2.0/db_1/db
# rcp -p inithrdb2.ora SJC_2:$PWD
The -p option retains the permissions of the file.
4. Set up the second RAC database instance on the target site.
In this example, run the following commands from the SJC_2 node:
# cd /opt/app/oracle/product/10.2.0/db_1/dbs
Configuring oracle RAC database in a SADTA 113