Serviceguard NFS Toolkit A.11.11.06, A.11.23.05 and A.11.31.03 Administrator's Guide
• Initiates the NFS monitor script to check periodically on the health of NFS services, if you
have configured your NFS package to use the monitor script.
• Exports each file system associated with the package so that it can later be NFS-mounted
by clients.
• Assigns a package IP address to the LAN card on the current node.
After this sequence, the NFS server is active, and clients can NFS-mount the exported file systems
associated with the package.
Starting File Lock Migration
If you call the control script with the file_lock_migration parameter after enabling the File
Lock Migration feature, the control script does the following:
• Populates the /var/statmon/sm directory with the Status Monitor entries from the
configured holding directory of the package, and subsequently removes the entries from
the holding directory.
• Kills any running copy of the NFS File Lock Recovery synchronization script.
• Halts the rpc.statd and rpc.lockd daemons to release file locks so that file systems can
be unmounted. If the server is also an NFS client, it loses the NFS file locks obtained by
client-side processes when these daemons are killed.
• Restarts the rpc.statd and rpc.lockd daemons so that these daemons can manage file
locks for other NFS packages running on the server. Restarting these daemons also triggers
a crash recovery notification event, whereby rpc.statd sends crash notification messages
to all clients listed in the /var/statmon/sm directory.
• Starts the File Lock Migration synchronization script, which periodically copies the /var/
statmon/sm directory entries to the holding directory.
Halting the NFS Services
When called with the stop parameter, the control script does the following:
• Removes the package IP address from the LAN card on the current node.
• Un-exports all file systems associated with the package so that they can no longer be
NFS-mounted by clients.
• Halts the monitor process.
• Halts the File Lock Migration synchronization script if you enable the File Lock Migration
feature (available on 11i v1 and 11i v2).
• Halts the rpc.statd and rpc.lockd daemons to release file locks so that file systems can
be unmounted. If the server is also an NFS client, it loses the NFS file locks obtained by
client-side processes when these daemons are killed.
• Restarts the rpc.statd and rpc.lockd daemons so that these daemons can manage file
locks for other NFS packages running on the server.
• Unmounts each file system associated with the package.
• Deactivates each volume group associated with the package.
After this sequence, the NFS package is inactive on the current node and may start up on an
alternate node or be restarted later on the same node.
Monitoring the NFS Services
The monitor script /etc/cmcluster/nfs/nfs.mon works by periodically checking the status
of NFS services using the rpcinfo command. If any service fails to respond, the script exits,
causing a switch to an adoptive node. The monitor script provides the ability to monitor the
20 Overview of Serviceguard NFS