Managing MC/ServiceGuard NFS for Linux, December 2001

Sample Configurations
Configuring Mulitple Nodes to Support Failover of Multiple Packages
Chapter 338
Package Control Script for pkg02
This section shows the package control script (pkg2.cntl) for the
package pkg02 in this sample configuration. Only the user-configured
part of the script is shown; the executable part of the script and most of
the comments have been omitted.
PATH=/sbin:/usr/bin:/usr/sbin:/etc:/bin:usr/local/
cmcluster/bin
RAIDTAB="/usr/local/cmcluster/conf/raidtab.sg"
RAIDSTART="raidstart -c ${RAIDTAB}"
RAIDSTOP="raidstop -c ${RAIDTAB}"
VGCHANGE="vgchange -a y" # Default
VG[0]="nfsu02"
MD[0]="/dev/md1"
LV[0]=/dev/ngsu02/lvol1;
FS[0]=/hanfs/nfsu021;
FS_TYPE[0]="ext2";
FS_MOUNT_OPT[0]="-o rw"
# FS_UMOUNT_COUNT=""
# FS_MOUNT_RETRY_COUNT=""
IP[0]="192.100.112.244"
SUBNET[0]="192.100.112.0"
HA_NFS_SERVER="yes"
#SERVICE_NAME[0]=""
#SERVICE_CMD[0]=""
#SERVICE_RESTART[0]=""
NFS Control Script for pkg02
This section shows the NFS control script (hanfs.sh) for the package
pkg02 on this sample configuration on the the user-configured part of the
script is shown:
XFS[0]="-o rw *:/hanfs/nfsu021"
NFS_SERVICE_NAME[0]="nfs2.monitor"
NFS_SERVICE_CMD[0]="/usr/local/cmcluster/pkg2/nfs.mon"
NFS_SERVICE_RESTART[0]="-r 0"