Managing Serviceguard Extension for SAP on Linux (IA64 Integrity and x86_64), April 2009

First, the monitoring scripts need to be copied from the staging directory ${SAPSTAGE} to the current
SGeSAP/LX package${SGCONF} directory.
cp ${SAPSTAGE}/SID/sapms.mon ${SGCONF}/<SID>/sapms.mon
Example entries in ciC11<pkg_name>.control.script:
SERVICE_NAME[0]="ciC11mon"
SERVICE_CMD[0]="${SGCONF}/C11/sapms.mon"
SERVICE_RESTART[0]""
Optional Step: OS460
It is recommended to set
AUTOSTART_CMCLD=1 in ${SGCONF}/cmcluster.rc
.
This variable controls the automatic cluster start. If a cluster already exists, the node attempts to join it. If no
cluster is running, the node attempts to form a cluster consisting of all configured nodes. Distribute the file
to all cluster nodes.
Serviceguard Control Script Template - xxx.control.script
Installation Step: IS470
The xxx.control.script, located in directory
${SGCONF}/<SID>
is executed when "running" or "halting" a
Serviceguard package.
In the xxx.control.script the volume groups, logical volumes, the virtual IP addresses and subnets
and last not least the SGeSAP/LX scripts to run and halt SAP instances are added. Edit this file.
The following is an extract of two (db) db.control.script files: the first one for an Oracle configuration,
the second one for a MaxDB configuration. The customer_defined_run_commands and the
customer_defined_halt_commands enable the SAP specific scripts.
The following is an extract of a (db) package based on Oracle for SAP instance XI7 in directory
${SGCONF}/XI7/dbX17.control.script:
# VOLUME GROUPS
# #Specify which volume groups are used by this package. Uncomment VG[0]=""
# and fill in the name of your first volume group. You must begin with
# VG[0], and increment the list in sequence.
#
# For example, if this package uses your volume groups vg01 and vg02, enter:
# VG[0]=vg01
# VG[1]=vg02
#
VG[0]="vgC11_oracleC11"
# FILESYSTEMS
# The filesystems are defined as entries specifying the logical
# volume, the mount point, the file system type, the mount,
# umount and fsck options.
# Each filesystem will be fsck'd prior to being mounted.
# The filesystems will be mounted in the order specified during package
# startup and will be unmounted in reverse order during package
# shutdown. Ensure that volume groups referenced by the logical volume
# definitions below are included in volume group definitions.
# Specify the filesystems which are used by this package. Uncomment
# LV[0]=""; FS[0]=""; FS_TYPE[0]=""; FS_MOUNT_OPT[0]="";
# FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]="" and fill in
# the name of your first logical volume, filesystem, type, mount,
# umount and fsck options for the file system.
#
# Valid types for FS_TYPE are 'ext2' and 'reiserfs'.
#
Cluster Configuration 77