HP Serviceguard Toolkit for NFS on Linux User Guide (May 2013)
Table Of Contents
- HP Serviceguard Toolkit for NFS on Linux User Guide
- Contents
- 1 Overview
- 2 Supported configuration
- 3 Installing and uninstalling HP Serviceguard toolkit for NFS
- 4 Using HP Serviceguard toolkit for NFS
- 5 File lock migration
- 6 Troubleshooting
- 7 Support and other resources
- A Sample configuration file for legacy style of packaging
- B Sample configuration file for modular style of packaging
- Glossary
- Index
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 a toolkit 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.
• Legacy style of packaging for NFS toolkit is not supported in Metro Cluster environment.
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 $SGROOT/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: node1
NODE_NAME: node2
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