Update the options ib_ehca lock_hcalls=0 setting in modprobe.conf and net.ipv4.conf..arp_filter in /etc/sysctl.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6531 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ab9ac37852
commit
5ea3254f9d
@ -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";
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user