2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-01 10:25:33 +00:00

makentp -a returns NTP maynot be synchronized on servicenode

This commit is contained in:
Casandra Qiu
2017-01-17 14:02:12 -05:00
parent 4c72fee543
commit 13566de2a7

View File

@ -126,9 +126,9 @@ if [ $OS_TYPE = Linux ]; then
output=`eval $cmd 2>&1`
rc=$?
if [ "$rc" != "0" ] || (pmatch "$output" "*Time could not*");then
echo "$cmd failed, NTP maynot be synchronized, please wait for NTP synchronized then run updatenode nodename -P setupntp"
echo "$cmd failed, NTP may not be synchronized on server node"
echo "please wait for NTP synchronized, may take at least 15 mins"
logger -t xcat "$cmd failed"
exit 1
fi
else
logger -t xcat "ntpdate -t5 $master "