diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.1port b/xCAT-server/share/xcat/ib/scripts/configiba.1port index d79aaa0b1..945802e3b 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.1port +++ b/xCAT-server/share/xcat/ib/scripts/configiba.1port @@ -53,6 +53,11 @@ foreach my $num ( @nums ) { print "Unsupported to config IB on this OS!\n"; exit; } + if ( -f "/etc/sysctl.conf" ) + { + runcmd("echo 'net.ipv4.conf.$nic.arp_filter=1' >> /etc/sysctl.conf"); + runcmd("echo 'net.ipv4.conf.$nic.arp_ignore=1' >> /etc/sysctl.conf"); + } if ( -f "/etc/infiniband/openib.conf" ) { runcmd("/usr/bin/sed -i 's/SDP_LOAD=yes/SDP_LOAD=no/g' /etc/infiniband/openib.conf"); @@ -106,8 +111,11 @@ if ( $PLTFRM eq "Linux" ) { if ( $OS_name eq 'suse') { runcmd("echo 'options ib_ehca nr_ports=1' >> /etc/modprobe.conf"); + runcmd("echo 'options ib_ehca lock_hcalls=0' >> /etc/modprobe.conf"); } + runcmd("sysctl -p"); + my $openibd_cmd = "/sbin/chkconfig --level 2345 openibd on"; runcmd($openibd_cmd); my $openibd_start_cmd = "/sbin/service openibd restart"; diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.2ports b/xCAT-server/share/xcat/ib/scripts/configiba.2ports index d2520a1d0..a6777382e 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.2ports +++ b/xCAT-server/share/xcat/ib/scripts/configiba.2ports @@ -53,6 +53,11 @@ foreach my $num ( @nums ) { print "Unsupported to config IB on this OS!\n"; exit; } + if ( -f "/etc/sysctl.conf" ) + { + runcmd("echo 'net.ipv4.conf.$nic.arp_filter=1' >> /etc/sysctl.conf"); + runcmd("echo 'net.ipv4.conf.$nic.arp_ignore=1' >> /etc/sysctl.conf"); + } if ( -f "/etc/infiniband/openib.conf" ) { runcmd("/usr/bin/sed -i 's/SDP_LOAD=yes/SDP_LOAD=no/g' /etc/infiniband/openib.conf"); @@ -60,6 +65,7 @@ foreach my $num ( @nums ) { if ( -f "/etc/modprobe.conf" ) { runcmd("sed -i 's/options\ ib_ehca\ nr_ports=1//g' /etc/modprobe.conf"); + runcmd("sed -i 's/options\ ib_ehca\ lock_hcalls=0//g' /etc/modprobe.conf"); } # Write the info to the ifcfg file my $dir; @@ -108,6 +114,9 @@ foreach my $num ( @nums ) { } if ( $PLTFRM eq "Linux" ) { + + runcmd("sysctl -p"); + my $openibd_cmd = "/sbin/chkconfig --level 2345 openibd on"; runcmd($openibd_cmd); my $openibd_start_cmd = "/sbin/service openibd restart";