From 79fb92a58d83fa9184ce6106bd0c0a579a07b227 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 9 Apr 2009 10:57:30 +0000 Subject: [PATCH] BUG:2743588. start openibd service after install the packages so that node don't need to restart the system git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3151 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/ib/scripts/configiba.1port | 5 +++++ xCAT-server/share/xcat/ib/scripts/configiba.2ports | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.1port b/xCAT-server/share/xcat/ib/scripts/configiba.1port index f6a676526..998118d5f 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.1port +++ b/xCAT-server/share/xcat/ib/scripts/configiba.1port @@ -58,6 +58,7 @@ foreach my $num ( @nums ) { } my $openibd_cmd = "/sbin/chkconfig --level 2345 openibd on"; runcmd($openibd_cmd); + # Write the info to the ifcfg file my $dir; if ( $OS_name eq 'suse') @@ -77,6 +78,10 @@ foreach my $num ( @nums ) { print FILE "ONBOOT=yes\n" if ( $OS_name eq 'redhat'); print FILE "STARTMODE=auto\n" if ( $OS_name eq 'suse'); close FILE; + + my $openibd_start_cmd = "/sbin/service openibd start"; + runcmd($openibd_start_cmd); + 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 f1a241762..fa6a4d761 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.2ports +++ b/xCAT-server/share/xcat/ib/scripts/configiba.2ports @@ -77,6 +77,10 @@ foreach my $num ( @nums ) { print FILE "ONBOOT=yes\n" if ( $OS_name eq 'redhat'); print FILE "STARTMODE=auto\n" if ( $OS_name eq 'suse'); close FILE; + + my $openibd_start_cmd = "/sbin/service openibd start"; + runcmd($openibd_start_cmd); + runcmd("ifup $nic"); system("logger -t xcat 'configiba: successfully configured $nic.'"); } elsif ( $PLTFRM eq "AIX" ) {