Managing Serviceguard NFS for Linux, March 2009
# cmmakepkg -m tkit/nfs/nfs pkg.conf
NOTE: For more information about creating Modular packaging, see the Modular package
support in Serviceguard for Linux and ECM Toolkits white paper available at: http://docs.hp.com
-> High Availability.
4. Create a directory for your package files, for example:
# mkdir /usr/local/cmcluster/<pkg_name>
5. Issue the following command to copy the Serviceguard NFS template files to the newly
created package directory:
# cp /usr/local/cmcluster/nfstoolkit/* \
/usr/local/cmcluster/<pkg_name>
Copying the Template Files
If you will run only one Serviceguard NFS package in your Serviceguard cluster, technically you
do not have to copy the template files. Though, it is recommended that you keep your template
file in its original form for future use. If you will run multiple Serviceguard NFS packages, each
package must have its own package directory, package configuration file and control scripts.
For each Serviceguard NFS package you plan to run, make a copy of all the package files including
the package configuration file (pkg.conf), package control script (pkg.cntl), toolkit interface
script (toolkit.sh), NFS Control Script (hanfs.sh), NFS configuration file (hanfs.conf),
NFS monitor script (nfs.mon) and NFS file lock migration synchronization script (nfs.flm).
You can rename the package control script with a package specific identification, such as
pkg01.conf and pkg01.cntl.
NOTE: pkg.cntl, toolkit.sh , hanfs.conf, nfs.mon, nfs.flm and hanfs.sh should
be in the same directory. Do not rename hanfs.conf, hanfs.sh,toolkit.sh,
nfs.flm,nfs.1, nfs, tkit_module.sh, tkit_gen.sh, lock_migration.sh and
nfs.mon. These file names are hard coded in the control scripts.
Before Creating an Serviceguard NFS Package
Before creating a Serviceguard NFS package, perform the following tasks:
NOTE: The following procedures assume your environment is Red Hat. If your environment
is SLES, replace all occurrences of "/usr/local" with /opt.
1. Select the NFS Server package during Red Hat Linux installation and verify that the NFS is
properly installed.
After Red Hat installation is complete, check for the NFS utility to verify NFS installation:
• Verify the NFS utility, run the command:
# rpm –qa | grep nfs
If the output contains nfs-utils-<release_version> , the utility is installed.
2. Set up your Serviceguard cluster according to the instructions in the Managing HP Serviceguard
for Linux user’s guide.
3. Configure the disk hardware for high availability. Data disks associated with Serviceguard
NFS must be external disks. All the nodes that support the Serviceguard NFS package must
have access to the external disks. For most disks this means they must be attached to a shared
bus that is connected to all nodes which support the package. The disk on which NFS volume
is configured can be either a single lun or a split site RAID 1 array, which provides a level
of disaster tolerance to the NFS volume. This can be achieved by setting up a Serviceguard
Copying the Template Files 21