Managing Serviceguard NFS for Linux, March 2009
— NFS file lock migration script, nfs.flm
— Toolkit interface script, toolkit.sh
This script is invoked by <pkg>.cntl which invokes the hanfs.sh.
— Lock migration script lock_migration.sh
This script starts lock migration process in Modular packages
— Toolkit module script tkit_module.sh
Script used in Modular packages to invoke toolkit.sh
— Toolkit configuration generation script. tkit_gen.sh
The script which generates toolkit configuration file on cmapplyconf
— Attribute Definition File (ADF) nfs.1 and it’s softlink named nfs
This file is used to generate package configuration file by Serviceguard.
How the Control Scripts work in Legacy Packages
As with all legacy Serviceguard packages, the package control scripts start and stop the NFS
package and determine how the package will operate once it becomes available on a particular
node. Each control script contains two sets of code that operate depending on whether the script
is called with the start parameter or the stop parameter.
A template package control script pkg.cntl can be generated by using cmmakepkg -s
pkg.cntl. The template script hanfs.sh is provided in /usr/local/cmcluster/
nfstoolkit directory for Red Hat environments, and /opt/cmcluster/nfstoolkit for
SLES environments.
For more information on Modular packaging, see the Modular package support in Serviceguard for
Linux and ECM Toolkits whitepaper available at: http://docs.hp.com-> High Availability.
For information on how to modify this package control script template file for your own packages,
refer to “Editing the Package Control Scripts (pkg.cntl)” (page 23) and “Editing the NFS
Configuration File (hanfs.conf)” (page 24) .
Starting the NFS Services
When called with the start parameter, the package control script does the following:
• Activate the volume group or volume groups associated with the package.
• Mount each file system associated with the package.
• Invoke toolkit.sh to run the NFS start script.
• The NFS script hanfs.sh, exports each file system associated with the package so that it
can later be NFS-mounted by clients.
• The NFS script initiates the NFS monitor script to check periodically on the health of NFS
services, if you have configured your NFS package to use the monitor script.
• Assign a package IP address to the LAN card on the current node.
After this sequence, the NFS server is active, and clients can NFS-mount the exported file systems
associated with the package.
14 Serviceguard NFS for LINUX Introduction