From 0e6365d8c6c8dcc99c7976f7898d025a4b56bec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=E1=B4=8F=C9=B4=C9=A2=20Jie?= Date: Wed, 31 Oct 2018 17:33:25 +0800 Subject: [PATCH] Fix github issue #5500. Do not restart service openibd in the installation stage (#5723) --- .../xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 index f6ee043c7..e16445aac 100755 --- a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 +++ b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 @@ -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