#!/bin/ksh # @(#)81 1.4 src/avs/fs/mmfs/samples/nfscluster/mmQuorumLossExit, mmfs, avs_rgpfs24, rgpfs240610b 3/1/06 10:12:33 ############################################################################## # # When properly installed, this script is invoked by the GPFS daemon during # quorum loss. # # You can also use this script to add any commands to clean up local state # before the GPFS daemon restarts. # # To activate the code: # # a) edit this script and make the appropriate changes # b) copy this script to /var/mmfs/etc/mmQuorumLossExit # c) ensure this script is executable (chmod +x /var/mmfs/etc/mmfsdown) # ############################################################################## # Process the parameters. status=$1 # Possible values are "active" or "down". if [ ! -f /var/mmfs/etc/nfsfuncs ]; then echo "$0: Can't find NFS functions in /var/mmfs/etc" exit 0 fi . /var/mmfs/etc/nfsfuncs # Wait before terminating mmfsd since this script is called synchronously from mmfsd killmmfs() { sleep 10 killall -9 mmfsd } nfsmonitor -e stop.nfs killmmfs & return