HP Serviceguard Linux NFS-Toolkit-A.03.03.00 User Guide (696981-001, June 2012)
ExampleAttribute
${SGCONF}/NFS/pkg.cntlHALT_SCRIPT
NO_TIMEOUTHALT_SCRIPT_TIMEOUT
d. To run the NFS monitor script, set the SERVICE_NAME variable in the pkg.conf file.
For example:
SERVICE_NAME nfs1.monitor
Each package must have a unique service name. In the legacy style of packaging the
SERVICE_NAME variable in the package configuration file must be same as the
SERVICE_NAME variable in the NFS control script.
If you set AUTO_RUN to YES in the package configuration file, 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. Edit the package control scripts (pkg.cntl).
a. Create a separate VG[n] variable for each volume group. For example:
VG[0]=vg01
VG[1]=vg02
b. 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:
NOTE: This example defines the variable for three NFS mounted file systems, ha_root,
users/scaf, and ha_data.
LV[0]=/dev/vg01/lvol1;FS[0]=/ha_root;
FS_TYPE[0]=ext2;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]=ext4;FS_MOUNT_OPT[2]=”-o rw”
NOTE: If the FS_TYPE [*] is ext4 on RHEL 6, then you must use noauto_da_alloc
mount option, if the application does not support using ext4 with the default
auto_da_allloc option.
c. Specify the IP address for the package and the address of the subnet to which the IP
address belongs.
The IP address you specify is the re-locatable IP address for the package. Configure a
name for this address in the DNS or NIS database, and in the /etc/hosts file. NFS
client nodes that mount the file systems in the package use this IP address to identify the
server.
d. Specify that this package uses the high availability NFS server by uncommenting the
HA_APP_SERVER variable. Uncomment the following line:
HA_APP_SERVER=“pre-IP”
e. Set SERVICE_CMD[0] as ${SGCONF}/NFS/nfs.mon for nfs.mon for nfs monitoring.
f. If two packages have the same adoptive node, and you want to prevent a shared adoptive
node from adopting both packages at once, specify the cmmodpkg command with the
package control option (-d) in the customer_defined_run_cmds file.
function customer_defined_run_cmds
{
12 Using HP Serviceguard toolkit for NFS