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

# FILESYSTEMS
LV[0]="/dev/vgsapdbLXM/lvsapdbLXM"; \
FS[0]="/sapdb/LXM"; \
FS_TYPE[0]="reiserfs"; \
FS_MOUNT_OPT[0]="-o rw"; \
FS_UMOUNT_OPT[0]=""; \
FS_FSCK_OPT[0]=""
# IP ADDRESSES
IP[0]="16.41.101.163"
SUBNET[0]="16.41.101.0"
# START OF CUSTOMER DEFINED FUNCTIONS
function customer_defined_run_cmds
{
. /usr/local/cmcluster/conf/LXM/sapwas.sh start
test_return 51
}
function customer_defined_halt_cmds
{
. /usr/local/cmcluster/conf/LXM/sapwas.sh stop
test_return 52
}
# END OF CUSTOMER DEFINED FUNCTIONS
The following is an extract of a (db) package based on MaxDB for SAP instance LXM:
# START OF CUSTOMER DEFINED FUNCTIONS
function customer_defined_run_cmds
{
. /usr/local/cmcluster/conf/LXM/sapwas.sh start
test_return 51
}
function customer_defined_halt_cmds
{
. /usr/local/cmcluster/conf/LXM/sapwas.sh stop
test_return 52
}
# END OF CUSTOMER DEFINED FUNCTIONS
Installation Step: IS500
Distribute the Serviceguard package ascii files to all cluster nodes.
Copy all Serviceguard configuration files in directory${SGCONF}/<SID> from this node into the same
directory on all other cluster nodes.
Also copy file${SGCONF}/sap.functions from this host into the same directory on all cluster nodes.
Installation Step: IS510
Use
cmapplyconf(1m)
to add the newly configured package(s) to the cluster.
cmapplyconf -P
verifies
the Serviceguard package configuration, updates the binary cmlconfig file and distributes the binary file to
all cluster node.
cmapplyconf -v -P ${SGCONF}/<SID>/db.config
NOTE: If you plan to use the Serviceguard (sapnfs) package specify this package in the last position
of the cmapplyconf command. Later, if you force a shutdown of the whole cluster with cmhaltcl -f this
Cluster Configuration 79