Serviceguard NFS Toolkit A.11.11.06, A.11.23.05 and A.11.31.08 Administrator's Guide (October 2011)
Serviceguard NFS Modular Package over CFS Packages without File Locking
Each active server in the cluster needs to run an export multi-node package and an NFS failover
package. An export multi-node package is a package that runs on each server in the cluster and
exports all the cluster file systems. Each standby server (i.e. a server that is an adoptive node for
NFS failover packages) needs to have an export multi-node package running to be able to become
active in the event of a failover. Figure 11 (page 34) shows an example Serviceguard over CFS
configuration with two servers, each with an NFS failover package and a multi-node export
package.
Configuring a Serviceguard NFS export package
There should only be one NFS export multi-node package per cluster. This package will run on
each server in the cluster.
NOTE: All steps in this section must be completed on a single server.
1. Create the nfs-export.conf file with the cmmakepkg command.
# cd /etc/cmcluster/nfs_modular
# cmmakepkg -m sg/multi_node_all -m nfs/hanfs /etc/cmcluster/nfs_modular/nfs-export.conf
This command creates the package configuration file by including the parameters from the
modules all and hanfs, where,
all refers to a set of standard Serviceguard modules.
hanfs refers to the HA-NFS module.
2. Edit the nfs-export.conf file as follows:
a. Specify each NFS directory to be exported. In this example, these NFS directories are
the same as the CFS file systems that are mounted (you could have CFS file systems
mounted and not export them, or export only a subdirectory of a mounted file system).
b. Add an XFS variable for each NFS directory to be exported. Specify the directory name
and any export options. These directories must not be included in the /etc/exports
file.
For nfs-export.conf generated on HP Serviceguard A.11.18:
XFS “/cfs1”
XFS “/cfs2”
For nfs-export.conf generated on HP Serviceguard A.11.19:
nfs/hanfs_export/XFS “/cfs1”
nfs/hanfs_export/XFS “/cfs2”
c. Set the package_name variable to SG-NFS-XP-1 (by default this variable is set to
FAILOVER).
package_name SG-NFS-XP-1
d. Add node_name variables for each server in the cluster that will run the export package
(the order of the servers does not matter).
node_name thyme
node_name basil
e. Set the dependency_name, dependency_condition, and dependency_location variables
so that the export package will only run if the Serviceguard CFS multi-node packages
are already running. Since there are two CFS file systems in this example, there are also
two CFS multi-node packages.
dependency_name SG-CFS-MP-1-dep
dependency_condition SG-CFS-MP-1=up
dependency_location same_node
54 Installing and Configuring Serviceguard NFS Modular Package