Managing Serviceguard NFS for Linux, March 2009
1. Except for the variables listed below, use the default values for the variables in the package
configuration file, or change them as needed.
For instructions on modifying the default values, see the Managing HP Serviceguard for Linux
manual, or read the comments in the package configuration file.
2. Set the PACKAGE_NAME variable. For example:
PACKAGE_NAME pkg01
Each package must have a unique name.
3. Create a NODE_NAME variable for each node that will run the package. The first NODE_NAME
should specify the primary node. All the NODE_NAME variables following the primary node
should specify the adoptive nodes, in the order in which they will be tried. For example:
NODE_NAME thyme
NODE_NAME basil
NODE_NAME sage
4. Set the RUN_SCRIPT and HALT_SCRIPT variables to the full path name of the control script.
You do not have to specify a timeout for either script. For example:
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
5. If you want to run the NFS monitor script, set the SERVICE_NAME variable. For example:
SERVICE_NAME nfs1.monitor
Each package must have a unique service name. The SERVICE_NAME variable in the package
configuration file must match the SERVICE_NAME variable in the package control script.
If you do not wish to run the NFS monitor script, comment out the SERVICE_NAME variable.
For example:
SERVICE_NAME nfs1.monitor
If your NFS package configuration file specifies AUTO_RUN as YES, the package switches
to the next adoptive node in the event of a node or package failure. The NFS monitor script
causes the package to fail over if any of the monitored NFS services fail.
6. Set the SUBNET variable to the subnet that is monitored for the package. For example:
SUBNET 192.100.112.0
Editing the Package Control Scripts (pkg.cntl)
The following steps describe the required modifications to the Package Control Scripts. Make
one Package Control Script for each package.
NOTE: The following procedures assume your environment is Red Hat. If your environment
is SLES, replace all occurrences of /usr/local with /opt.
1. Create a separate VG[n] variable for each volume group. For example:
VG[0]=vg01
VG[1]=vg02
2. Create a separate LV[n], FS[n], FS_TYPE[n] and FS_MOUNT_OPT[n]variable for
each volume group and file system that will be mounted on the server. For example:
LV[0]=/dev/vg01/lvol1;FS[0]=/ha_root; FS_TYPE[0]=ext3;FS_MOUNT_OPT[0]=”-o rw”
LV[1]=/dev/vg01/lvol2;FS[1]=/users/scaf; FS_TYPE[1]=ext3;FS_MOUNT_OPT[1]=”-o rw”
LV[2]=/dev/vg02/lvol1;FS[2]=/ha_data; FS_TYPE[2]=ext3;FS_MOUNT_OPT[2]=”-o ro”
This example defines the variable for three NFS mounted file systems, ha_root,
users/scaf and ha_data.
Copying the Template Files 23