Serviceguard NFS Toolkit A.11.31.02, A.11.11.06, and A.11.23.05 Administrator's Guide
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 rpc.statd, rpc.lockd, nfsd, rpc.mountd, rpc.pcnfsd,
and nfs.flm processes. You can monitor any or all of these processes as follows:
• To monitor the rpc.statd, rpc.lockd, and nfsd processes, you must set the
NFS_SERVER variable to 1 in the /etc/rc.config.d/nfsconf file. If one nfsd
process dies or is killed, the package fails over, even if other nfsd processes are
running.
• To monitor the rpc.mountd process, you must set the START_MOUNTD variable
to 1 in the /etc/rc.config.d/nfsconf file. To monitor the rpc.mountd
process, you must start it when the system boots up, not by inetd.
• To monitor the rpc.pcnfsd process, you must set the PCNFS_SERVER variable
to 1 in the /etc/rc.config.d/nfsconf file.
• To monitor the nfs.flm process, you must enable the File Lock Migration feature.
Monitor this process with the ps command, not with the rpcinfo command. If
you enable the File Lock Migration feature, ensure that the monitor script name
is unique for each package (for example, nfs1.mon).
20 Overview of Serviceguard NFS