Managing Serviceguard NFS for Linux, March 2009
AUTO_START_TIMEOUT 600000000
NETWORK_POLLING_INTERVAL 2000000
MAX_CONFIGURED_PACKAGES 4
Sample Configuration for Legacy Packages
Configuration files of two legacy packages are described in this 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 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
MONITORED SUBNET 192.100.112.0
MONITORED_SUBNET_ACCESS FULL
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"
To prevent a shared adoptive node from adopting both packages together, disable the package
by specifying the cmmodpkg command with the package control option (-d) in the
customer_defined_run_cmds. For example:
function customer_defined_run_cmds
{
cmmodpkg -d -n `hostname` pkg02 &
}
42 Sample Configurations