Using Serviceguard Extension for RAC, 7th Edition, September 2008

Preparing Oracle Cluster Software for Serviceguard Packages
Stopping the Oracle Cluster Software on each Node
For 10g 10.1.0.04 or later:
# /sbin/init.d/init.crs stop
For 10g 10.2.0.01 or later:
# <CRS HOME>/bin/crsctl stop crs
Wait until Oracle Cluster Software completely stops. (Check CRS logs or check for Oracle
processes, ps -ef | grep ocssd.bin)
Change Oracle Cluster Software from Starting at Boot Time on each Node
For 10g 10.1.0.04 or later:
# /sbin/init.d/init.crs disable
For 10g 10.2.0.01 or later:
# <CRS HOME>/bin/crsctl disable crs
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).
DEPENDENCY_NAME mp1
DEPENDENCY_CONDITION SG-CFS-MP-1=UP
DEPENDENCY_LOCATION SAME_NODE
DEPENDENCY_NAME mp2
Using Serviceguard Packages to Synchronize with Oracle 10g RAC 71