White Paper

10
# cp /opt/cmcluster/nfs/hanfs.sh hanfs.export.sh
3. Edit the nfs-export.cntl script and set the HA_NFS_SCRIPT_EXTENSION to
“export.sh”. Note that when you edit the configuration scripts referred to
throughout this document, you may have to uncomment the lines as you edit
them.
HA_NFS_SCRIPT_EXTENSION = “export.sh”
This will set the NFS specific control script to be run by the package to
hanfs.export.sh as we have named it in the copy command above. No other
changes are needed in this script.
4. Edit the hanfs.export.sh script to specify each NFS directory to be exported. In
this example these are the same as the CFS file systems that are mounted (you
could have CFS file systems mounted and not export them, or export only a
subdirectory of a mounted file system). Create a separate XFS[n] variable for
each directory to be exported. Specify the directory name and any export
options.
These directories must not be included in the /etc/exports file:
XFS[0]="/cfs1"
XFS[1]="/cfs2"
Caution:
Do not modify other variables or content in this script since doing so is not
supported.
5. Edit the nfs-export.conf file as follows:
a) Set the PACKAGE_NAME variable to SG-NFS-XP-1 (by default this variable is
set to FAILOVER):
PACKAGE_NAME SG-NFS-XP-1
b) Change the PACKAGE_TYPE from FAILOVER to MULTI_NODE:
PACKAGE_TYPE MULTI_NODE
c) Comment out the FAILOVER_POLICY and FAILBACK_POLICY variables since
this package will run on each server and will not failover if a server fails:
# FAILOVER_POLICY CONFIGURED_NODE
# FAILBACK_POLICY MANUAL
d) Add NODE_NAME variables for each server in the cluster that will run the
export package (the order of the servers does not matter):
NODE_NAME thyme
NODE_NAME basil
e) Set the RUN_SCRIPT and HALT_SCRIPT variables to the full path of the
control script, with no timeout:
RUN_SCRIPT /etc/cmcluster/nfs/nfs-export.cntl
RUN_SCRIPT_TIMEOUT NO_TIMEOUT