Serviceguard NFS Toolkit A.11.11.06, A.11.23.05 and A.11.31.05 Administrator's Guide HP-UX 11i v1, v2, and v3
Table Of Contents
- Serviceguard NFS Toolkit A.11.11.06, A.11.23.05 and A.11.31.05 Administrator's Guide
- Table of Contents
- 1 Overview of Serviceguard NFS
- Limitations of Serviceguard NFS
- Overview of Serviceguard NFS Toolkit A.11.31.05 with Serviceguard A.11.18 (or later) and Veritas Cluster File System Support
- Overview of the Serviceguard NFS Modular Package
- Overview of the NFS File Lock Migration Feature
- Overview of NFSv4 File Lock Migration Feature
- Overview of Serviceguard NFS with Serviceguard A.11.17 Support
- Integrating Support for Cluster File Systems into Serviceguard NFS Toolkit
- Overview of Cluster File Systems in Serviceguard NFS Toolkit
- Limitations and Issues with the current CFS implementation
- Supported Configurations
- How the Control and Monitor Scripts Work
- 2 Installing and Configuring Serviceguard NFS Legacy Package
- Installing Serviceguard NFS Legacy Package
- Before Creating a Serviceguard NFS Legacy Package
- Configuring a Serviceguard NFS Legacy Package
- Copying the Template Files
- Editing the Control Script (nfs.cntl)
- Editing the NFS Control Script (hanfs.sh)
- Editing the File Lock Migration Script (nfs.flm)
- Editing the NFS Monitor Script (nfs.mon)
- Editing the Package Configuration File (nfs.conf)
- Configuring Server-to-Server Cross-Mounts (Optional)
- Creating the Cluster Configuration File and Bringing Up the Cluster
- Configuring Serviceguard NFS Legacy Package over CFS Packages
- 3 Installing and Configuring Serviceguard NFS Modular Package
- Installing Serviceguard NFS Modular Package
- Before Creating a Serviceguard NFS Modular Package
- Configuring a Serviceguard NFS Modular Package
- Configuring Serviceguard NFS Modular Package over CFS Packages
- 4 Migration of Serviceguard NFS Legacy Package to Serviceguard NFS Modular Package
- 5 Sample Configurations for Legacy Package
- Example One - Three-Server Mutual Takeover
- Example Two - One Adoptive Node for Two Packages with File Lock Migration
- Cluster Configuration File for Adoptive Node for Two Packages with File Lock Migration
- Package Configuration File for pkg01
- NFS Control Scripts for pkg01
- NFS File Lock Migration and Monitor Scripts for pkg01
- Package Configuration File for pkg02
- NFS Control Scripts for pkg02
- NFS File Lock Migration and Monitor Scripts for pkg02
- Example Three - Three-Server Cascading Failover
- Example Four - Two Servers with NFS Cross-Mounts
- 6 Sample Configurations for Modular Package
- Index

Overview of the NFS File Lock Migration Feature
Serviceguard NFS introduced the “File Lock Migration” feature beginning with versions A.11.11.03
and A.11.23.02. The detailed information on this feature is as follows:
• Each HA/NFS package designates a unique holding directory located in one of the filesystems
associated with the package. In other words, an empty directory is created in one of the
filesystems that moves between servers as part of the package. This holding directory is a
configurable parameter and must be dedicated to hold the Status Monitor (SM) entries only.
• A new script, nfs.flm, periodically (default value is five seconds; you can change this
value by modifying the >PROPAGATE_INTERVAL parameter in the nfs.flm script) copies
SM entries from the /var/statmon/sm directory into the package holding directory. To
edit the nfs.flm script, see “Editing the File Lock Migration Script (nfs.flm)” (page 33).
• Upon package failover, the holding directory transitions from the primary node to the
adoptive node, because it resides in one of the filesystems configured as part of the HA/NFS
package.
Once the holding directory is on the adoptive node, the SM entries residing in the holding
directory are copied to the /var/statmon/sm directory on the adoptive node. This populates
the new server's SM directory with the entries from the primary server.
• After failover, the HA/NFS package IP address is configured on the adoptive node,
rpc.statd and rpc.lockd are killed and restarted. This killing and restarting of the
daemons triggers a crash recovery notification event, whereby rpc.statd sends crash
notification messages to all the clients listed in the /var/statmon/sm directory.
These crash recovery notification messages contain the relocatable hostname of the HA/NFS
package that was previously running on the primary node and is currently running on the
adoptive node.
• Any client that holds NFS file locks against files residing in the HA/NFS package (transitioned
between servers) sends reclaim requests to the adoptive node (where the exported filesystems
currently reside) and reclaims its locks.
• After rpc.statd sends the crash recovery notification messages, the SM entries in the
package holding directory are removed, and the nfs.flm script is started on the adoptive
node. The script once again copies each /var/statmon/sm file on the HA/NFS server into
the holding directory, every five seconds. Each file residing in the /var/statmon/sm
directory on the adoptive node following the package migration represents a client that
either reclaimed its locks after failover or has established new locks after failover.
NOTE: To enable the File Lock Migration feature, you need Serviceguard version A.11.15 or
above.
To ensure that the File Lock Migration feature functions properly on HP-UX 11i v1, install NFS
General Release and Performance patch, PHNE_26388 (or a superseding patch). For HP-UX 11i
v2 and HP-UX 11i v3, the feature functions properly without a patch.
Overview of NFSv4 File Lock Migration Feature
Serviceguard NFS introduces the “NFSv4 File Lock Migration” feature beginning with version
A.11.31.03. This feature is an extension to the current file lock migration feature that can only be
enabled in NFSv2 and v3 servers. A description of its operation and information on how to add
the NFSv4 feature to the current file lock migration scheme is as follows:
• At the same time each HA/NFS package designates a holding directory for NFSv2 and
NFSv3, a unique holding directory for NFSv4 must also be specified. This NFSv4 holding
Overview of the NFS File Lock Migration Feature 11