Managing MC/ServiceGuard NFS for Linux, December 2001

Sample Configurations
Configuring Mulitple Nodes to Support Failover of Multiple Packages
Chapter 340
Package Control Script for pkg03
This section shows the NFS control script (pkg3.cntl) for the package
pkg03 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]="nfsu03"
MD[0]="/dev/md2"
LV[0]=/dev/ngsu03/lvol1;
FS[0]=/hanfs/nfsu031;
FS_TYPE[0]="ext2";
FS_MOUNT_OPT[0]="-o rw"
# FS_UMOUNT_COUNT=""
# FS_MOUNT_RETRY_COUNT=""
IP[0]="192.100.112.245"
SUBNET[0]="192.100.112.0"
HA_NFS_SERVER="yes"
#SERVICE_NAME[0]=""
#SERVICE_CMD[0]=""
#SERVICE_RESTART[0]=""
NFS Control Script for pkg03
This section shows the NFS control script (hanfs.sh) for the package
pkg03 on this sample configuration on the the user-configured part of the
script is shown:
XFS[0]="-o rw *:/hanfs/nfsu031"
NFS_SERVICE_NAME[0]="nfs3.monitor"
NFS_SERVICE_CMD[0]="/usr/local/cmcluster/pkg3/nfs.mon"
NFS_SERVICE_RESTART[0]="-r 0"