HP Serviceguard Linux NFS-Toolkit-A.03.03.00 User Guide (696981-001, June 2012)

4 Using HP Serviceguard toolkit for NFS
After installing the HP Serviceguard Toolkit for NFS on Linux, you can use this toolkit to:
Deploy NFS as the package in a Serviceguard environment on Linux
Manage the NFS toolkit packages
Deploying NFS toolkit packages
You can deploy NFS toolkit packages using either legacy or modular style of packaging.
NOTE: HP recommends that you configure HP Serviceguard toolkit for NFS as modular packages.
Configuring a legacy NFS package
To configure a NFS package using legacy style of packaging:
1. Create a directory for the package on all the package nodes using the following command:
# mkdir ${SGCONF}/NFS
2. cd to the package directory.
3. Copy all the scripts and hanfs.conf file from /usr/local/cmcluster/nfstoolkit
directory to ${SGCONF}/NFS/.
4. To create the package configuration file and the package control script, run the following
commands:
To create the package configuration file:
# cmmakepkg -p pkg.conf
To create the package control script:
# cmmakepkg -s pkg.cntl
5. Edit the package configuration file (pkg.conf)
a. Set the PACKAGE_NAME variable.
For example: PACKAGE_NAME pkg01
Each package must have a unique name.
b. Initialize the NODE_NAME variable for each node that will run the package. The first
NODE_NAME must specify the primary node. All the NODE_NAME variables following the
primary node must specify the adoptive nodes, in the order in which they will be tried.
For example:
NODE_NAME: thyme
NODE_NAME: basil
NODE_NAME: sage
c. Set the RUN_SCRIPT and HALT_SCRIPT variables by specifying the full path name of
the control script. These scripts do not require a timeout value.
For example:
ExampleAttribute
${SGCONF}/NFS/pkg.cntlRUN_SCRIPT
NO_TIMEOUTRUN_SCRIPT_TIMEOUT
Deploying NFS toolkit packages 11