Serviceguard NFS Toolkit A.11.11.06, A.11.23.05 and A.11.31.08 Administrator's Guide (October 2011)
1. Create the nfs.conf file for each package with the cmmakepkg command. You must create
one package for each server.
# cd /etc/cmcluster/nfs_modular
# cmmakepkg -m sg/all -m nfs/hanfs /etc/cmcluster/nfs_modular/nfs1.conf
# cmmakepkg -m sg/all -m nfs/hanfs /etc/cmcluster/nfs_modular/nfs2.conf
2. Edit the nfs.conf files (nfs1.conf, nfs2.conf) as follows:
a. Specify the IP address for the package and the subnet to which the IP address belongs:
ip_subnet 15.13.112.0
ip_address 15.13.114.243
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 must configure
a name for this IP address in the DNS, NIS, or LDAP database, or in the /etc/ hosts
file.
b. By default the service_name is enabled and is set to nfs.monitor. To monitor NFS services,
change nfs.monitor to a unique name for each package.
service_name nfs1.monitor
service_cmd "$SGCONF/scripts/nfs/nfs_upcc.mon"
service_restart none
service_fail_fast_enabled no
service_halt_timeout 0
In the nfs2.conf file, set service_name to nfs2.monitor. If you do not want to monitor NFS
services, comment out the service_name, service_cmd, service_restart,
service_fail_fast_enabled and service_halt_timeout variables.
c. Specify the package name.
package_name SG-NFS1
In the nfs2.conf file, set the package_name to SG-NFS2.
d. The package_type should be the default value (failover).
e. Set the node_name variables for each node that can run the package. The first node_name
must specify the primary node, followed by adoptive node(s) in the order in which they
will be tried.
node_name thyme
node_name basil
f. Set the dependency_name, dependency_condition, and dependency_location variables
so that the failover package can run only if the export package is already running.
dependency_name SG-NFS-XP-1-dep
dependency_condition SG-NFS-XP-1=up
dependency_location same_node
Starting a Serviceguard NFS failover package
Use the following procedure to start a failover package.
1. Verify the cluster and package configuration files on each server.
# cmcheckconf -k -v –C /etc/cmcluster/cluster.conf –P /etc/cmcluster/nfs_modular/nfs1.conf –P
/etc/cmcluster/nfs_modular/nfs2.conf
2. Verify and apply the cluster package configuration files on a single server.
# cmapplyconf –v –C /etc/cmcluster/cluster.conf –P /etc/cmcluster/nfs_modular/nfs1.conf –P
/etc/cmcluster/nfs_modular/nfs2.conf
56 Installing and Configuring Serviceguard NFS Modular Package