A SERVICE OF

logo

130 IBM Certification Study Guide AIX HACMP
fi
/bin/rm -f /etc/sm.bak/$host
/bin/rm -f /etc/sm/$host
/bin/rm -f /etc/state
fi
######## Add for NFS Lock Removal (finish) ########
# Send a SIGKILL to all processes having open file
# descriptors within this logical volume to allow
# the unmount to succeed..
cl_nfskill -k -u $fs
fi
done
else
cl_echo 27 ’$PROGNAME: Bad number of arguments ’ $PROGNAME
exit 2
fi
# Make sure all processes have time to die
# Only wait if at least one filesystem is mounted
if [ "$MOUNTED" = "true" ]
then
sleep $SLEEP
fi
FILELIST=‘for i in $*; do /bin/echo $i; done | /bin/sort -r‘
for fs in $FILELIST
do
# Is the filesystem mounted?
# -s says only return status, -x says exact match
# we use awk instead of cut because mount outputs
# lots of leading blanks that confuse cut
/etc/mount | awk ’{ print $2 }’ | fgrep -s -x "$fs"
if [ $? -eq 0 ]
then
# At least one filesystem is mounted
until /etc/umount -f $fs
do
sleep 2
done
fi
done
######## Add for NFS Lock Removal (start) ########
if [ "$STOPPED" = "true" ]
then
startsrc -s rpc.statd
startsrc -s rpc.lockd
fi
######## Add for NFS Lock Removal (finish) ########
exit 0