
######## Add for NFS Lock Removal (start) ########
######## Add for NFS Lock Removal (finish) ########
###############################################################################
#
#Name: cl_deactivate_nfs
#Given a list of
#any that are currently mounted.
#
#Arguments: list of filesystems.
###############################################################################
PROGNAME="$0" MOUNTED="false"
######## Add for NFS Lock Removal (start) ########
STOPPED="false"
######## Add for NFS Lock Removal (finish) ########
SLEEP="2"
if [ "$VERBOSE_LOGGING" = "high" ] then
set
fi set
if [ $#
FILELIST=‘for i in $*; do /bin/echo $i; done /bin/sort
do
#Is the filesystem mounted?
#
#we use awk instead of cut because mount outputs
#lots of leading blanks that confuse cut
/etc/mount awk ’{ print $2 }’ fgrep
then
#At least one filesystem is mounted MOUNTED="true"
#This filesystem is mounted
######## Add for NFS Lock Removal (start) ########
#Determine the host which is making the filesystem
#available
#This will clear any outstanding locks against the
#failed node, not preserve their state, and is thus
#considered a forceful move.
host=‘/etc/mountgrep nfsgrep "$fs"awk ’{ print $1 }’‘ if [
then
if [ "$STOPPED" = "false" ] then
stopsrc
Cluster Customization 129