2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 03:50:08 +00:00

Fix github issue #5500. Do not restart service openibd in the installation stage (#5723)

This commit is contained in:
Gᴏɴɢ Jie 2018-10-31 17:33:25 +08:00 committed by Bin Xu
parent affa429493
commit 0e6365d8c6

View File

@ -331,11 +331,13 @@ EOF
env -i "PATH=${PATH}" /tmp/ofed/mountpoint/mlnxofedinstall "${MLNXOFED_OPTS[@]}"
#force openibd load all modules in need, restart again
sleep 1
service openibd restart
if [ "$?" != "0" ] ;then
echo "[Error] service openibd restart failed."
exit 1
if [ "$NODESETSTATE" = "boot" ]; then
sleep 1
service openibd restart
if [ "$?" != "0" ]; then
echo "[Error] service openibd restart failed."
exit 1
fi
fi
fi