From c5cbd459110ac55691ebf92d90b247dedefe1754 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 23 Feb 2010 15:15:32 +0000 Subject: [PATCH] add logger call for errors so we can detect them on the MN git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5263 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatdsklspost | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 079cd3750..67bcf55fc 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -93,6 +93,7 @@ else # for statelite mode SIP=`cut -d= -f2 /opt/xcat/xcatinfo`; else echo "xCAT management server IP can't be determined.\nexiting..."; + logger -t xCAT "xcatdsklspost:xCAT management server IP can't be determined.\nexiting..."; exit; fi fi @@ -143,6 +144,7 @@ fi if [ $downloaded -eq 0 ]; then hn=`hostname` echo "Cannot download the postscripts from the xCAT server for node $hn" + logger -t xCAT "xcatdsklspost:Cannot download the postscripts from the xCAT server for node $hn" exit fi @@ -173,11 +175,13 @@ else # for statelite mode if [ "$TRIES" = "$MAX" ] then echo "can't mount $SIP:/install/postscripts. I give up... ">/dev/console + logger -t xCAT "xcatdsklspost:Can't mount $SIP:/install/postscripts. exiting... " exit fi TRIES=`expr $TRIES + 1` S=`expr $RANDOM % 20` echo "Can't mount $SIP:/install/postscripts... Sleeping $S seconds then trying again" >/dev/console + logger -t xCAT "xcatdsklspost:Can't mount $SIP:/install/postscripts... Sleeping $S seconds then trying again" sleep $S done