Installing and Configuring MC/ServiceGuard NFS
Configuring an MC/ServiceGuard NFS Package
Hewlett-Packard recommends that you execute the nfs_xmnt script from the command line after the package is active on the primary node. However, you can configure the nfs_xmnt script to be executed by the NFS control script in the customer_defined_run_cmds function.
function customer_defined_run_cmds
{
/etc/cmcluster/nfs/nfs1_xmnt start
remsh sage /etc/cmcluster/nfs/nfs1_xmnt start
}
The second line in the function invokes remsh to run the nfs_xmnt script on remote host sage.
Running the nfs_xmnt script from the NFS control script guarantees that the package is active before the mount command executes. It prevents cross-mounted servers from becoming deadlocked while each server hangs on the mount command, waiting for the other server’s package to become active. However, if the package fails to activate, or if the remsh command fails, the file systems will not be mounted, and no error will be returned. The only way to be sure the file systems are mounted successfully is to run the nfs_xmnt script manually on each host where the file systems should be mounted.
For an example of a configuration with cross-mounted servers, see “Example Four - Two Servers with NFS Cross-Mounts” on page 82.