From d8831260931dcd6ce08914ede8b83c36235a071d Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 29 Apr 2010 11:48:28 +0000 Subject: [PATCH] Wait for the driver initialized before active the adapter git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/ib/scripts/configiba.1port | 1 + xCAT-server/share/xcat/ib/scripts/configiba.2ports | 1 + 2 files changed, 2 insertions(+) diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.1port b/xCAT-server/share/xcat/ib/scripts/configiba.1port index cab95db64..f08777b9b 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.1port +++ b/xCAT-server/share/xcat/ib/scripts/configiba.1port @@ -83,6 +83,7 @@ foreach my $num ( @nums ) { my $openibd_start_cmd = "/sbin/service openibd start"; runcmd($openibd_start_cmd); + sleep(5); runcmd("ifup $nic"); system("logger -t xcat 'configiba: successfully configured $nic.'"); } elsif ( $PLTFRM eq "AIX" ) { diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.2ports b/xCAT-server/share/xcat/ib/scripts/configiba.2ports index 47819caef..1d6c330b2 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.2ports +++ b/xCAT-server/share/xcat/ib/scripts/configiba.2ports @@ -85,6 +85,7 @@ foreach my $num ( @nums ) { my $openibd_start_cmd = "/sbin/service openibd start"; runcmd($openibd_start_cmd); + sleep(5); runcmd("ifup $nic"); system("logger -t xcat 'configiba: successfully configured $nic.'"); } elsif ( $PLTFRM eq "AIX" ) {