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 FIRST_CLUSTER_LOCK_VG /dev/nfsu01 NODE_NAME thyme NETWORK_INTERFACE lan0 HEARTBEAT_IP 15.13.119.146 NETWORK_INTERFACE lan1 FIRST_CLUSTER_LOCK_PV /dev/dsk/c0t1d0 NODE_NAME basil NETWORK_INTERFACE lan0 HEARTBEAT_IP 15.13.113.168 FIRST_CLUSTER_LOCK_PV /dev/dsk/c1t1d0 NODE_NAME sage NETWORK_INTERFACE lan0 HEARTBEAT_IP 15.13.115.184 NETWORK_INTERFACE lan1 NETWORK_INTERFACE lan2 NETWORK_INTERFACE lan3 FIRST_CLUSTER_LOCK_PV /dev/dsk/c0t1d0 HEARTBEAT_INTERVAL 1000000 NODE_TIMEOUT 2000000 AUTO_START_TIMEOUT 600000000 NETWORK_POLLING_INTERVAL 2000000 VOLUME_GROUP /dev/nfsu01 VOLUME_GROUP /dev/nfsu02 VOLUME_GROUP /dev/nfsu03 |
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 NODE_NAME thyme NODE_NAME basil NODE_NAME sage RUN_SCRIPT /etc/cmcluster/nfs/nfs1.cntl RUN_SCRIPT_TIMEOUT NO_TIMEOUT HALT_SCRIPT /etc/cmcluster/nfs/nfs1.cntl HALT_SCRIPT_TIMEOUT NO_TIMEOUT SERVICE_NAME nfs1.monitor SERVICE_FAIL_FAST_ENABLED NO SERVICE_HALT_TIMEOUT 300 SUBNET 15.13.112.0 PKG_SWITCHING_ENABLED YES NET_SWITCHING_ENABLED YES NODE_FAIL_FAST_ENABLED NO |
NFS Control Script for pkg01 |
 |
This section shows the NFS control script (nfs1.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 #VGCHANGE="vgchange -a e -q n" #VGCHANGE="vgchange -a y" VGCHANGE="vgchange -a e" # Default VG[0]=nfsu01 LV[0]=/dev/nfsu01/lvol1; FS[0]=/hanfs/nfsu011 XFS[0]=/hanfs/nfsu011 IP[0]=15.13.114.243 SUBNET[0]=15.13.112.0 NFS_SERVICE_NAME[0]="nfs1.monitor" NFS_SERVICE_CMD[0]="/etc/cmcluster/nfs/nfs.mon" #NFS_SERVICE_RESTART[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 NODE_NAME basil NODE_NAME sage NODE_NAME thyme RUN_SCRIPT /etc/cmcluster/nfs/nfs2.cntl RUN_SCRIPT_TIMEOUT NO_TIMEOUT HALT_SCRIPT /etc/cmcluster/nfs/nfs2.cntl HALT_SCRIPT_TIMEOUT NO_TIMEOUT SERVICE_NAME nfs2.monitor SERVICE_FAIL_FAST_ENABLED NO SERVICE_HALT_TIMEOUT 300 SUBNET 15.13.112.0 PKG_SWITCHING_ENABLED YES NET_SWITCHING_ENABLED YES NODE_FAIL_FAST_ENABLED NO |
NFS Control Script for pkg02 |
 |
This section shows the NFS control script (nfs2.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 #VGCHANGE="vgchange -a e -q n" #VGCHANGE="vgchange -a y" VGCHANGE="vgchange -a e" # Default VG[0]=nfsu02 LV[0]=/dev/nfsu02/lvol1; FS[0]=/hanfs/nfsu021 XFS[0]=/hanfs/nfsu021 IP[0]=15.13.112.244 SUBNET[0]=15.13.112.0 NFS_SERVICE_NAME[0]="nfs2.monitor" NFS_SERVICE_CMD[0]="/etc/cmcluster/nfs/nfs.mon" #NFS_SERVICE_RESTART[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 NODE_NAME sage NODE_NAME thyme NODE_NAME basil RUN_SCRIPT /etc/cmcluster/nfs/nfs3.cntl RUN_SCRIPT_TIMEOUT NO_TIMEOUT HALT_SCRIPT /etc/cmcluster/nfs/nfs3.cntl HALT_SCRIPT_TIMEOUT NO_TIMEOUT SERVICE_NAME nfs3.monitor SERVICE_FAIL_FAST_ENABLED NO SERVICE_HALT_TIMEOUT 300 SUBNET 15.13.112.0 PKG_SWITCHING_ENABLED YES NET_SWITCHING_ENABLED YES NODE_FAIL_FAST_ENABLED NO |
NFS Control Script for pkg03 |
 |
This section shows the NFS control script (nfs3.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 #VGCHANGE="vgchange -a e -q n" #VGCHANGE="vgchange -a y" VGCHANGE="vgchange -a e" # Default VG[0]=nfsu03 LV[0]=/dev/nfsu03/lvol1; FS[0]=/hanfs/nfsu031 XFS[0]=/hanfs/nfsu031 IP[0]=15.13.114.245 SUBNET[0]=15.13.112.0 NFS_SERVICE_NAME[0]="nfs3.monitor" NFS_SERVICE_CMD[0]="/etc/cmcluster/nfs/nfs.mon" #NFS_SERVICE_RESTART[0]= |