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
Содержание AIX HACMP SG24-5131-00
Страница 2: ......
Страница 10: ...viii IBM Certification Study Guide AIX HACMP...
Страница 12: ...x IBM Certification Study Guide AIX HACMP...
Страница 14: ...xii IBM Certification Study Guide AIX HACMP...
Страница 18: ...xvi IBM Certification Study Guide AIX HACMP...
Страница 24: ...6 IBM Certification Study Guide AIX HACMP...
Страница 110: ...92 IBM Certification Study Guide AIX HACMP...
Страница 133: ...HACMP Installation and Cluster Definition 115...
Страница 134: ...116 IBM Certification Study Guide AIX HACMP...
Страница 160: ...142 IBM Certification Study Guide AIX HACMP...
Страница 200: ...182 IBM Certification Study Guide AIX HACMP...
Страница 216: ...198 IBM Certification Study Guide AIX HACMP...
Страница 222: ...204 IBM Certification Study Guide AIX HACMP...
Страница 226: ...208 IBM Certification Study Guide AIX HACMP...
Страница 232: ...214 IBM Certification Study Guide AIX HACMP...
Страница 240: ...Printed in the U S A SG24 5131 00 IBM Certification Study Guide AIX HACMP SG24 5131 00...