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

# cd /cfs/flash
# mkdir flash
# chmod 775 flash
# chown oracle:oinstall flash
Creating the RAC database using the oracle database configuration assistant
After you set up the file systems for the RAC database data files, create the RAC database. You
can use the Oracle Database Configuration Assistant (DBCA) to create the RAC database. After
you login to the DBCA, select the Cluster File System option as the storage mechanism for the
database and select the Common Location for all Database Files option to store database files.
Configuring and testing RAC MNP stack at the local disk site
To configure Metrocluster for RAC, the RAC database that is configured on both sites must be
managed by Serviceguard. As a result, the RAC database must be packaged in Serviceguard
MNP packages. Also, automatic startup of RAC database instances and services at Clusterware
startup must be disabled. For more information on disabling automatic startup of RAC databases,
see the How To Remove CRS Auto Start and Restart for a RAC Instance document available at the
Oracle documentation site. For information on configuring the RAC database in the MNP packages,
see the HP SGeRAC Toolkit README.
Configure the RAC MNP package to have dependency on the site’s Clusterware sub-cluster MNP
package. This step creates the RAC MNP stack at this site that is configured to be managed by
the Site Controller Package. Ensure that the package service is configured to monitor the Oracle
RAC database. Before halting the RAC MNP Stack, test the configuration to ensure that the packages
are configured appropriately and can be started.
Halting the RAC database on the local disk site
After you create the RAC database on the local disk site, halt it to replicate it on the recovery
cluster. You must halt the RAC MNP stack on the node in the source disk, and then use the vxdg
deport command to deport the disk groups at the nodes in the replication source disk.
For example:
1. Halt the RAC MNP Stack on the replication source disk site node.
# cmhaltpkg sfo_hrdb sfo_hrdb_mp sfo_hrdb_dg sfo_flash_mp
sfo_flash_dg
2. Deport the disk groups at the replication source disk site nodes.
# vxdg deport hrdbdg
# vxdg deport flashdg
Creating identical RAC database at the remote site
In the earlier procedures, the RAC database was created at the site with the source disk of the
replication disk group. A RAC MNP stack was also created at the site. Now, an identical RAC
database using the target replicated disk must be configured with the RAC MNP stack at the remote
site.
Before creating an identical RAC database at the remote site, you must first prepare the replication
environment. After configuring replication in your environment, configure the replica RAC database.
For example, to prepare the replication environment as follows:
1. Failover the DR Group to the target P6000/EVA using Command View Server to make the
disks read-write.
2. From the CVM master node at this site, import the disk groups used by the RAC database.
# vxdg -stfC import hrdbdg
# vxdg -stfC import flashdg
112 Configuring Oracle RAC in SADTA