Managing Serviceguard NFS for Linux, March 2009

Sample Configuration for Legacy Packages
Configuration files of two legacy packages are described in the following section. These samples
are applicable to Red Hat environment. For SLES user can replace all occurrences of “/usr/
local” with “/opt”.
Package Configuration File for pkg01
This section shows the package configuration file (pkg01.conf) for the package pkg01 in this
sample configuration. The comments are not shown.
PACKAGE_NAME pkg01
PACKAGE_TYPE FAILOVER
FAILOVER_POLICY CONFIGURED_NODE
FAILBACK_POLICY MANUAL
NODE_NAME thyme
NODE_NAME basil
NODE_NAME sage
AUTO_RUN YES
NODE_FAIL_FAST_ENABLED NO
RUN_SCRIPT /usr/local/cmcluster/pkg01/pkg01.cntl
RUN_SCRIPT_TIMEOUT NO_TIMEOUT
HALT_SCRIPT /usr/local/cmcluster/pkg01/pkg01.cntl
HALT_SCRIPT_TIMEOUT NO_TIMEOUT
SERVICE_NAME nfs1.monitor
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300
SUBNET 192.100.112.0
Package Control Script for pkg01
This section shows the package control script (pkg01.cntl) for the package pkg01 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
VGCHANGE="vgchange -a y" # Default
VG[0]="nfsu01"
LV[0]=/dev/nfsu01/lvol1;
FS[0]=/hanfs/nfsu011;
FS_TYPE[0]="ext3";
FS_MOUNT_OPT[0]="-o rw"
# FS_UMOUNT_COUNT=""
# FS_MOUNT_RETRY_COUNT=""
IP[0]="192.100.112.243"
SUBNET[0]="192.100.112.0"
HA_APP_SERVER="pre-IP"
SERVICE_NAME[0]="nfs1.monitor"
SERVICE_CMD[0]="/usr/local/cmcluster/pkg01/nfs.mon"
SERVICE_RESTART[0]="-r 0"
NFS Toolkit Configuration File for pkg01
This section shows the NFS Toolkit configuration file (hanfs.conf) for the package pkg01 on
this sample configuration:
XFS[0]="-o rw *:/hanfs/nfsu011"
QUOTA_MON=YES
LOCK_MIGRATION=NO
Package Configuration File for pkg02
This section shows the package configuration file (pkg02.conf) for the package pkg02 in this
sample configuration. The comments are not shown.
50 Sample Configurations