Serviceguard NFS Toolkit A.11.11.06, A.11.23.05 and A.11.31.03 Administrator's Guide
# cmapplyconf -v -C /etc/cmcluster/cluster.conf
-P /etc/cmcluster/nfs/nfs-export.conf
4. Run the export package on a single server with the following command
# cmrunpkg -v SG-NFS-XP-1
5. You can verify the export package is running with the cmviewcl command. The output
should show the following
# cmviewcl
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
thyme up running
NODE STATUS STATE
basil up running
MULTI_NODE_PACKAGES
PACKAGE STATUS STATE AUTO_RUN SYSTEM
SG-CFS-pkg up running enabled yes
SG-CFS-DG-1 up running enabled no
SG-CFS-MP-1 up running enabled no
SG-CFS-MP-2 up running enabled no
SG-NFS-XP-1 up running enabled no
Configuring a Serviceguard NFS failover package
Configuring a Serviceguard NFS failover package for a CFS environment is similar to configuring
the package for a non-CFS environment. The main difference is that you must configure one
failover package for each server that exports CFS. Use the following procedure to configure a
failover package.
1. Copy the following scripts and make a spearate copy for each package (one package for
each server)
# cd /etc/cmcluster/nfs
# cmmakepkg -p /etc/cmcluster/nfs/nfs1.conf
# cmmakepkg -s /etc/cmcluster/nfs/nfs1.conf
# cp /opt/cmcluster/nfs/hanfs.sh hanfs.1.sh
# cp /opt/cmcluster/nfs/nfs.mon nfs1.mon
# cmmakepkg -p /etc/cmcluster/nfs/nfs2.conf
# cmmakepkg -s /etc/cmcluster/nfs/nfs2.conf
# cp /opt/cmcluster/nfs/hanfs.sh hanfs.2.sh
# cp /opt/cmcluster/nfs/nfs.mon nfs2.mon
2. Edit the nfs.cntl scripts (nfs1.cntl, nfs2.cntl). Specify the IP address for the package and the
subnet to which the IP address belongs.
IP[0]=15.13.114.243
SUBNET[0]=15.13.112.0
This IP address is the relocatable IP address for the package. NFS clients that mount the file
systems in the package will use this IP address to identify the server. You should configure
a name for this address in the DNS, NIS or LDAP database, or in the /etc/hosts file.
3. Set the HA_NFS_SCRIPT_EXTENSION to 1.sh in the nfs1.cntl file
HA_NFS_SCRIPT_EXTENSION = "1.sh"
This will set the NFS specific control script to be run by the package to hanfs.sh as we have
named it in the copy command above. Set this to "2.sh" in nfs2.cntl.
40 Installing and Configuring Serviceguard NFS