This configuration has three servers and three MC/ServiceGuard
NFS packages. Each server is the primary node for one package and
an adoptive node for the other two packages. Figure 3-1 “Three-Server
Mutual Takeover” illustrates this configuration. Dotted lines indicate
which servers are adoptive nodes for the packages. Figure 3-2 “Three-Server
Mutual Takeover After One Server Fails” illustrates the configuration after
host basil fails.
Figure 3-2 “Three-Server
Mutual Takeover After One Server Fails” shows the three-server
mutual takeover configuration after host basil has failed and host sage has adopted pkg02. Dotted lines indicate which servers are adoptive
nodes for the packages.
Cluster
Configuration File for Three-Server Mutual Takeover |
 |
This section shows the cluster configuration file (cluster.conf) for this configuration example. The comments
are not shown.
CLUSTER_NAME MutTakOvr QS_HOST qs QS_POLLING_INTERVAL 300000000 NODE_NAME thyme NETWORK_INTERFACE eth0 HEARTBEAT_IP 192.100.112.146 NETWORK_INTERFACE eth1 NODE_NAME basil NETWORK_INTERFACE eth0 HEARTBEAT_IP 192.100.112.168 NODE_NAME sage NETWORK_INTERFACE eth0 HEARTBEAT_IP 192.100.112.184 NETWORK_INTERFACE eth1 NETWORK_INTERFACE eth2 HEARTBEAT_INTERVAL 1000000 NODE_TIMEOUT 5000000 AUTO_START_TIMEOUT 600000000 NETWORK_POLLING_INTERVAL 2000000 MAX_CONFIGURED_PACKAGES 4
|
Package
Configuration File for pkg01 |
 |
This section shows the package configuration file (nfs1.conf) for the package pkg01 in this sample configuration. The comments are
not shown.
PACKAGE_NAME pkg01 PACKAGE_TYPE FAILOVER FAILOVER_POLICY CONFIGURED_NODE FAILBACK_POLICY MANUAL NODE_NAME thyme NODE_NAME basil NODE_NAME sage AUTO_RUN YES NODE_FAIL_FAST_ENABLED NO RUN_SCRIPT /usr/local/cmcluster/pkg1/pkg1.conf RUN_SCRIPT_TIMEOUT NO_TIMEOUT HALT_SCRIPT /usr/local/cmcluster/pgk1/pkg1.conf HALT_SCRIPT_TIMEOUT NO_TIMEOUT SERVICE_NAME nfs1.monitor SERVICE_FAIL_FAST_ENABLED NO SERVICE_HALT_TIMEOUT 300 SUBNET 192.100.112.0
|
Package
Control Script for pkg01 |
 |
This section shows the package control script (pkg1.cntl) for the package pkg01 in this sample configuration. Only the user-configured part
of the script is shown; the executable part of the script and most
of the comments have been omitted.
PATH=/sbin:/usr/bin:/usr/sbin:/etc:/bin:usr/local/ cmcluster/bin RAIDTAB="/usr/local/cmcluster/conf/raidtab.sg" RAIDSTART="raidstart -c ${RAIDTAB}" RAIDSTOP="raidstop -c ${RAIDTAB}" VGCHANGE="vgchange -a y" # Default VG[0]="nfsu01" MD[0]="/dev/md0" LV[0]=/dev/nfsu01/lvol1; FS[0]=/hanfs/nfsu011; FS_TYPE[0]="ext2"; FS_MOUNT_OPT[0]="-o rw" # FS_UMOUNT_COUNT="" # FS_MOUNT_RETRY_COUNT="" IP[0]="192.100.112.243" SUBNET[0]="192.100.112.0" HA_NFS_SERVER="yes" #SERVICE_NAME[0]="" #SERVICE_CMD[0]="" #SERVICE_RESTART[0]=""
|
NFS
Control Script for pkg01 |
 |
This section shows the NFS control script (hanfs.sh) for the package pkg01 on this sample configuration on the the user-configured
part of the script is shown:
XFS[0]="-o rw *:/hanfs/nfsu011" NFS_SERVICE_NAME[0]="nfs1.monitor" NFS_SERVICE_CMD[0]="/usr/local/cmcluster/pkg1/nfs.mon" NFS_SERVICE_RESTART[0]="-r 0"
|
Package
Configuration File for pkg02 |
 |
This section shows the package configuration file (nfs2.conf) for the package pkg02 in this sample configuration. The comments are
not shown.
PACKAGE_NAME pkg02 PACKAGE_TYPE FAILOVER FAILOVER_POLICY CONFIGURED_NODE FAILBACK_POLICY MANUAL NODE_NAME basil NODE_NAME sage NODE_NAME thyme AUTO_RUN YES NODE_FAIL_FAST_ENABLED NO RUN_SCRIPT /usr/local/cmcluster/pkg2/pkg2.conf RUN_SCRIPT_TIMEOUT NO_TIMEOUT HALT_SCRIPT /usr/local/cmcluster/pgk2/pkg2.conf HALT_SCRIPT_TIMEOUT NO_TIMEOUT SERVICE_NAME nfs2.monitor SERVICE_FAIL_FAST_ENABLED NO SERVICE_HALT_TIMEOUT 300 SUBNET 192.100.112.0
|
Package
Control Script for pkg02 |
 |
This section shows the package control script (pkg2.cntl) for the package pkg02 in this sample configuration. Only the user-configured part
of the script is shown; the executable part of the script and most
of the comments have been omitted.
PATH=/sbin:/usr/bin:/usr/sbin:/etc:/bin:usr/local/ cmcluster/bin RAIDTAB="/usr/local/cmcluster/conf/raidtab.sg" RAIDSTART="raidstart -c ${RAIDTAB}" RAIDSTOP="raidstop -c ${RAIDTAB}" VGCHANGE="vgchange -a y" # Default VG[0]="nfsu02" MD[0]="/dev/md1" LV[0]=/dev/ngsu02/lvol1; FS[0]=/hanfs/nfsu021; FS_TYPE[0]="ext2"; FS_MOUNT_OPT[0]="-o rw" # FS_UMOUNT_COUNT="" # FS_MOUNT_RETRY_COUNT="" IP[0]="192.100.112.244" SUBNET[0]="192.100.112.0" HA_NFS_SERVER="yes" #SERVICE_NAME[0]="" #SERVICE_CMD[0]="" #SERVICE_RESTART[0]="" |
NFS
Control Script for pkg02 |
 |
This section shows the NFS control script (hanfs.sh) for the package pkg02 on this sample configuration on the the user-configured
part of the script is shown:
XFS[0]="-o rw *:/hanfs/nfsu021" NFS_SERVICE_NAME[0]="nfs2.monitor" NFS_SERVICE_CMD[0]="/usr/local/cmcluster/pkg2/nfs.mon" NFS_SERVICE_RESTART[0]="-r 0"
|
Package
Configuration File for pkg03 |
 |
This section shows the package configuration file (nfs3.conf) for the package pkg03 in this sample configuration. The comments are
not shown.
PACKAGE_NAME pkg03 PACKAGE_TYPE FAILOVER FAILOVER_POLICY CONFIGURED_NODE FAILBACK_POLICY MANUAL NODE_NAME sage NODE_NAME thyme NODE_NAME basil AUTO_RUN YES NODE_FAIL_FAST_ENABLED NO RUN_SCRIPT /usr/local/cmcluster/pkg3/pkg3.conf RUN_SCRIPT_TIMEOUT NO_TIMEOUT HALT_SCRIPT /usr/local/cmcluster/pgk3/pkg3.conf HALT_SCRIPT_TIMEOUT NO_TIMEOUT SERVICE_NAME nfs3.monitor SERVICE_FAIL_FAST_ENABLED NO SERVICE_HALT_TIMEOUT 300 SUBNET 192.100.112.0
|
Package
Control Script for pkg03 |
 |
This section shows the NFS control script (pkg3.cntl) for the package pkg03 in this sample configuration. Only the user-configured
part of the script is shown; the executable part of the script and
most of the comments have been omitted.
PATH=/sbin:/usr/bin:/usr/sbin:/etc:/bin:usr/local/ cmcluster/bin RAIDTAB="/usr/local/cmcluster/conf/raidtab.sg" RAIDSTART="raidstart -c ${RAIDTAB}" RAIDSTOP="raidstop -c ${RAIDTAB}" VGCHANGE="vgchange -a y" # Default VG[0]="nfsu03" MD[0]="/dev/md2" LV[0]=/dev/ngsu03/lvol1; FS[0]=/hanfs/nfsu031; FS_TYPE[0]="ext2"; FS_MOUNT_OPT[0]="-o rw" # FS_UMOUNT_COUNT="" # FS_MOUNT_RETRY_COUNT="" IP[0]="192.100.112.245" SUBNET[0]="192.100.112.0" HA_NFS_SERVER="yes" #SERVICE_NAME[0]="" #SERVICE_CMD[0]="" #SERVICE_RESTART[0]=""
|
NFS
Control Script for pkg03 |
 |
This section shows the NFS control script (hanfs.sh) for the package pkg03 on this sample configuration on the the user-configured
part of the script is shown:
XFS[0]="-o rw *:/hanfs/nfsu031" NFS_SERVICE_NAME[0]="nfs3.monitor" NFS_SERVICE_CMD[0]="/usr/local/cmcluster/pkg3/nfs.mon" NFS_SERVICE_RESTART[0]="-r 0"
|