2 nodes (hostname: node1, node2) with installed Solaris 10 01/06, patches, Sun Cluster, NFS agent for Sun Cluster, VxFS Both nodes are connected to the FC SAN storage, 8 storage LUNs are mapped to each node.
Configure SVM On both nodes Create the 25MB partition on the boot disk (s7) Create the SVM database replica metadb -afc 3 c0d0s7 (c0t0d0s7 on sparc)
On one node (node1) - Create disk sets : metaset -s nfs1 -a -h node1 node2 metaset -s nfs1 -t -f metaset -s nfs1 -a /dev/did/rdsk/d2 /dev/did/rdsk/d3 /dev/did/rdsk/d4 /dev/did/rdsk/d5 metainit -s nfs1 d1 4 1 /dev/did/rdsk/d2s0 1 /dev/did/rdsk/d3s0 1 /dev/did/rdsk/d4s0 1 /dev/did/rdsk/d5s0 metastat -s nfs1 -p >> /etc/lvm/md.tab
On both nodes - Create the directories mkdir -p /global/nfs1 mkdir -p /global/nfs2
- Add the mount entries to the vfstab file cat >> /etc/vfstab << EOF /dev/md/nfs1/dsk/d1 /dev/md/nfs1/rdsk/d1 /global/nfs1 vxfs 2 no noatime /dev/md/nfs2/dsk/d1 /dev/md/nfs2/rdsk/d1 /global/nfs2 vxfs 2 no noatime EOF (mount-at-boot "no" because we'll use the HAStoragePlus resource type)
On one node (node1) - Mount metavolumes and create the PathPrefix directories mount /global/nfs1 mount /global/nfs2 mkdir -p /global/nfs1/share mkdir -p /global/nfs2/share
Configure HA NFS On one node (node1) - Register resource types : scrgadm -a -t SUNW.HAStoragePlus scrgadm -a -t SUNW.nfs
- Create failover resource groups : scrgadm -a -g nfs-rg1 -h node1,node2 -y PathPrefix=/global/nfs1 -y Failback=true scrgadm -a -g nfs-rg2 -h node2,node1 -y PathPrefix=/global/nfs2 -y Failback=true
- Add logical hostname resources to the resource groups : scrgadm -a -j nfs-lh-rs1 -L -g nfs-rg1 -l log-name1 scrgadm -a -j nfs-lh-rs2 -L -g nfs-rg2 -l log-name2
- Change the probe interval for each NFS resource to a different value so each probe runs at at different time (see InfoDoc 84817) : scrgadm -c -j share1 -y Thorough_probe_interval=130 scrgadm -c -j share2 -y Thorough_probe_interval=140
- Change the number of NFS threads - on each node edit the file /opt/SUNWscnfs/bin/nfs_start_daemons - instead of DEFAULT_NFSDCMD="/usr/lib/nfs/nfsd -a 16" put DEFAULT_NFSDCMD="/usr/lib/nfs/nfsd -a 1024"