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

export SAPSTAGE
Variables ${SGCONF} and ${SGROOT} can also be set with the following command:
(Note: the leading "dot");
. /etc/cmcluster.conf
The command:
rpm -Uhv / sgesap-toolkit-<version>.product.<linux-os>.<platform>.rpm
copies all relevant SGeSAP/LX files in the ${SAPSTAGE} staging area.
The following files need to be copied from the ${SAPSTAGE} staging to the SGeSAP/LX package directory:
liveCache installation Step: LC160
Copy the relevant Serviceguard Extension for SAP on Linux files for liveCache to the cluster directory.
<LCSID>
is the SAP Instance ID for the liveCache:
mkdir ${SGCONF}/<LCSID>
chown root:sapsys /etc/cmcluster/<LCSID>
chown root:sapsys ${SGCONF}/<LCSID>
chmod 775 ${SGCONF}/<LCSID>
cp ${SAPSTAGE}/LC/saplc.mon ${SGCONF}/<LCSID>
cp ${SAPSTAGE}/LC/saplc.sh ${SGCONF}/LCSID>
cp ${SAPSTAGE}/LC/customer.functions ${SGCONF}/<LCSID>
cp ${SAPSTAGE}/LC/sap.config ${SGCONF}/<LCSID>
If this has not already been done, also copy the script file that contains the SGeSAP/LX functions
cp ${SAPSTAGE}/*.functions ${SGCONF}
liveCache installation Step: LC170
Create the Serviceguard package control script and configuration files.
Note the package naming convention lc<LCSID> as described in previous sections.
cd ${SGCONF}/<LCSID>
cmmakepkg -s lc<LCSID>.control.script
cmmakepkg -p lc<LCSID>.config
Both files need to be adapted to reflect the file system layout and the individual network setup chosen. For
general information on how to customize the package control and configuration files refer to the Managing
Serviceguard manual, which is available on http://docs.hp.com/en/ha.html.
For the lc<LCSID>.config template use the following settings: If a Serviceguard monitoring service
will be used then also set the SERVICE_NAME variable.
PACKAGE_NAME lc<LCSID>
PACKAGE_TYPE FAILOVER
RUN_SCRIPT <SGCONF>/<LCSID>/lc<LCSID>.control.script
HALT_SCRIPT <SGCONF>/<LCSID>/lc<LCSID>.control.script
SERVICE_NAME SGeSAPlc<LCSID>
For lc<LCSID>.control.script the following settings are recommended if the Serviceguard
monitoring service will be used:
SERVICE_NAME[0]="SGeSAPlc<LCSID>"
SERVICE_CMD[0]="/sapdb/<LCSID>/db/sap/lccluster monitor"
SERVICE_RESTART[0]="-r 3"
All other parameters should be chosen as appropriate for the individual setup.
liveCache installation Step: LC180
Serviceguard Extension for SAP on Linux Package Configuration 113