Sample Configurations with SGeRAC and Oracle RAC 10gR2, March 2009
47
DEPENDENCY_LOCATION SAME_NODE
SERVICE_NAME crsp-srv
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300
Package control script for CFS (Oracle Clusterware MNP)
SERVICE_NAME[0]="crsp-srv"
SERVICE_CMD[0]="/etc/cmcluster/crsp/toolkit_oc.sh check"
SERVICE_RESTART[0]=""
function customer_defined_run_cmds
{
# ADD customer defined run commands.
/etc/cmcluster/crsp/toolkit_oc.sh start
test_return 51
}
function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
/etc/cmcluster/crsp/toolkit_oc.sh stop
test_return 52
}
Serviceguard Extension for RAC configuration for Oracle Clusterware
ORA_CRS_HOME=/mnt/app/crs/oracle/product/10.2.0/crs
Sample scripts used by package control scripts
The following sections provide sample scripts used by Package Control Scripts to Start and Stop
Oracle Cluster Software. This is an example for use with SGeRAC A.11.16.
Sample script to start or stop Oracle Cluster Software (“cssd.sh”)
The script is a sample script that is used to aid the Serviceguard package for starting, stopping, and
monitoring Oracle Clusterware.
Please note that “crsctl stop crs” is used to stop Oracle Clusterware and any Oracle RAC instances
running are shutdown abort by Oracle Clusterware. If a different RAC instance shutdown mode is
desire, the instance needs to be halted before initiating Oracle Clusterware stop.
#!/usr/bin/sh
#########################################################################
###
# (C) Copyright 2005 Hewlett-Packard Development Company, L.P.
#########################################################################
###
# This script is provided as a sample.
#########################################################################
###
# Arguments
# "Usage: ${0} <start|stop|monitor|enable|disable >"
#
# <start> Starts the Oracle Cluster Software
# <stop> Stops the Oracle Cluster Software
# <monitor> Monitors the Oracle Cluster Software (ocssd.bin)