Designing Disaster Recovery Clusters using Metroclusters and Continentalclusters, Reprinted October 2011 (5900-1881)

8. Copy the Metrocluster template file to the Site Controller Package directory.
cp /opt/cmcluster/toolkit/SGCA/xpca.env\
/etc/cmcluster/hrdb_sc/hrdb_sc_xpca.env
This command illustrates copying the template file for Metrocluster with Continuous Access for
P9000 and XP.
Edit the Metrocluster environment file to match your environment.
9. Distribute the environment file to all nodes under the Site Controller Package directory.
From the SFO_1 node:
rcp /etc/cmcluster/hrdb_sc/hrdb_sc_xpca.env SFO_2:\
/etc/cmcluster/hrdb_sc/.
rcp /etc/cmcluster/hrdb_sc/hrdb_sc_xpca.env SJC_1:\
/etc/cmcluster/hrdb_sc/
rcp /etc/cmcluster/hrdb_sc/hrdb_sc_xpca.env SJC_2:\
/etc/cmcluster/hrdb_sc/
10. Apply the empty Site Controller Package configuration file. Ensure there are no packages
configured using the critical_package or managed_package attributes in the Site
Controller Package configuration file.
cmapplyconf -P /etc/cmcluster/sc/hrdb_sc.config
When the Site Controller Package configuration is applied, the corresponding Site Safety Latch is
also configured automatically in the cluster. Use the resls command to view the Site Safety Latch
resources.
resls -q -s /dts/mcsc/hrdb_sc
Following is the output that is displayed:
/dts/mcsc/hrdb_sc: Resource Instance
The current value of the resource is DOWN (0)
IMPORTANT: Following are some guidelines that you must follow while configuring the Site
Controller Package:
The default value of the priority parameter is set at no_priority. The Site Controller
Package should not be subjected to any movement due to package prioritization. Do not
change this default value.
The default value of the failover_policy parameter for the Site Controller Package is set
to site_preferred.
This value implies that during a Site Controller Package failover, while selecting notes from
the list of the node_name entries, the Site Controller Package fails over to the nodes that belong
to the site of the node it last ran on, rather than the nodes that belong to the other site.
Configuring the Site Safety Latch Dependencies
After the Site Controller Package configuration is applied, the corresponding Site Safety Latch is
also configured automatically in the cluster. This section describes the procedure to configure the
Site Safety Latch dependencies.
Complete the following procedure to configure the Site Safety Latch dependencies:
1. Add the EMS resource dependency to all DG MNP packages in the RAC MNP stack on both
sites.
Run the following commands from a node on both sites:
cfsdgadm add_ems hrdbdg /dts/mcsc/hrdb_sc 40 "!= DOWN"
cfsdgadm add_ems flashdg /dts/mcsc/hrdb_sc 40 "!= DOWN"
Configuring Oracle RAC Database in a Site Aware Disaster Tolerant Architecture 379