IBM Data Server DB2 User Manual
Page 96

82
DB2 Deployment Guide
# -b base_install_path -c image_location
# -f level -f db2lib -f NOTSAMP -f install|update
# -l log_file -t trace_file
#
##############################################################
setopts="${setopts:-+x}"
set ${setopts?}
# clean variables
unset CMDOPTS FOPT
# command-line syntax
syntax()
{
echo "
 db2fp_install -N NFSpath -H hostA,hostB,...,hostN
 -b base_install_path -c image_location
 -f level -f db2lib -f NOTSAMP -f install|update
 -l log_file -t trace_file
"
}
# mount nfs onto remote machine
mountnfs()
{
set ${setopts?}
SKIP=0
# make a temporary mount point
${RCMD} mkdir $LOCALNFS
${RCMD} mount -o ro "$BASEHOST":"$NFSPATH" "$LOCALNFS"
rc=$?
# if mount fails, try once more
if [ $rc != 0 ]; then
 echo "Mount failed on machine $host. Will try again 2 seconds later."
 sleep 2
 echo "Trying mount again..."
 ${RCMD} mount -o ro "$BASEHOST":"$NFSPATH" "$LOCALNFS"
 rc=$?
 if [ $rc != 0 ]; then
 echo "Mount failed twice on machine $host. Will skip it."
 SKIP="1"
 # remove the temporary mount point
 ${RCMD} rmdir $LOCALNFS
 fi
fi
return $SKIP
}
