HP Serviceguard Toolkit for NFS manual Packagename SG-NFS-XP-1, Packagetype Multinode

Page 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

10

Image 10
Contents Serviceguard NFS Toolkit Support for Cluster File System Starting a Serviceguard NFS failover package Integrating Support for CFS into Serviceguard NFS Toolkit Non-CFS Implementation with Package FailoverCurrent SG-NFS over VxFS Support CFS vs. Non-CFS ImplementationSG NFS Servers over VxFS High Availability Issues and Limitations with the Current CFS Implementation Prerequisites Multinodepackages Package Status State Autorun Cluster StatusNode Status State SG-CFS-DG-1Configuring a Serviceguard NFS export package SG NFS over CFS without file lockingPackagename SG-NFS-XP-1 # Failoverpolicy Configurednode # Failbackpolicy ManualRunscripttimeout Notimeout Packagetype MultinodeStarting a Serviceguard NFS export package Haltscripttimeout NotimeoutSG-NFS-XP-1 Configuring a Serviceguard NFS failover package Packagename SG-NFS1Starting a Serviceguard NFS failover package DEPENDENCYCONDITIONSG-NFS-XP-1=UP DependencylocationsamenodePackage Status State Autorun Node SG-NFS1 Package Status State Autorun Node SG-NFS2SG NFS over CFS with file locking NFSFILELOCKMIGRATION=1 Nfs2.conf file set these variables to Starting a Serviceguard NFS failover package Cluster1 up XFS Starting a Serviceguard NFS export package Configuring a Serviceguard NFS failover package Starting a Serviceguard NFS failover package Package Status State Autorun Node SG-NFS1 FILELOCKMIGRATION1 Starting a Serviceguard NFS failover package Thyme Running
Related manuals
Manual 93 pages 19.37 Kb Manual 93 pages 21.07 Kb