Using Serviceguard Extension for RAC, 9th Edition, September 2010

Preparing Oracle Cluster Software for Serviceguard Packages
CRS starts all RAC instances by default. You must disable CRS from starting up RAC instances
when you configure your RAC instances in SGeRAC packages.
On each node of the cluster, disable the automatic startup of the Oracle Clusterware at boot
time.
Login as root and enter:
: $ORA_CRS_HOME/bin/crsctl disable crs
Wait until Oracle Cluster Software completely stops. (Check CRS logs or check for Oracle
processes, ps -ef | grep ocssd.bin)
On one node of the cluster, disable the Oracle RAC database and instances from being started
automatically by the Oracle Clusterware.
Login as the Oracle administrator and run the following command to set the database
management policy to manual.
For Oracle 10g:
: $ORACLE_HOME/bin/srvctl modify database -d <dbname> -y manual
For Oracle 11g:
: $ORACLE_HOME/bin/srvctl modify database -d <dbname> -y MANUAL
Configure Serviceguard Packages
A Serviceguard package is needed for each node to start and stop Oracle Cluster Software.
Storage activation (SLVM).
When the Oracle Cluster Software required storage is configured on SLVM volume groups
or CVM disk groups, the Serviceguard package should be configured to activate and
deactivate the required storage in the package control script.
As an example, modify the control script to activate the volume group in shared mode and
set VG in the package control script for SLVM volume groups.
VG[0]=vg_ops
Storage Activation (CVM)
When the Oracle Cluster Software required storage is configured on CVM disk groups, the
Serviceguard package should be configured to activate and deactivate the required storage
in the package configuration file and control script.
In the package configuration file, specify the disk group with the STORAGE_GROUP key
word. In the package controls script, specify the disk group with the CVM_DG variable.
As an example, in the package configuration file should have the following:
STORAGE_GROUP ops_dg
Modify the package control script to set the CVM disk group to “activate” for shared write
and to specify the disk group.
CVM_DG[0]=ops_dg
Storage Activation (CFS)
When the Oracle Cluster Software required storage is configured on a Cluster File System
(CFS), the Serviceguard package should be configured to depend on the CFS multi-node
package through package dependency. With package dependency, the Serviceguard package
that starts Oracle Cluster Software will not run until its dependent CFS multi-node package
is up and will halt before the CFS multi-node package is halted.
Setup dependency conditions in Serviceguard package configuration file (SAMPLE).
Using Serviceguard Packages to Synchronize with Oracle 10g/11gR1/11gR2 RAC 69