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
Summary of Contents for AIX HACMP SG24-5131-00
Page 2: ......
Page 10: ...viii IBM Certification Study Guide AIX HACMP...
Page 12: ...x IBM Certification Study Guide AIX HACMP...
Page 14: ...xii IBM Certification Study Guide AIX HACMP...
Page 18: ...xvi IBM Certification Study Guide AIX HACMP...
Page 24: ...6 IBM Certification Study Guide AIX HACMP...
Page 110: ...92 IBM Certification Study Guide AIX HACMP...
Page 133: ...HACMP Installation and Cluster Definition 115...
Page 134: ...116 IBM Certification Study Guide AIX HACMP...
Page 160: ...142 IBM Certification Study Guide AIX HACMP...
Page 200: ...182 IBM Certification Study Guide AIX HACMP...
Page 216: ...198 IBM Certification Study Guide AIX HACMP...
Page 222: ...204 IBM Certification Study Guide AIX HACMP...
Page 226: ...208 IBM Certification Study Guide AIX HACMP...
Page 232: ...214 IBM Certification Study Guide AIX HACMP...
Page 240: ...Printed in the U S A SG24 5131 00 IBM Certification Study Guide AIX HACMP SG24 5131 00...