Difference between revisions of "Changing LACP timeout"
From Lsdf
Line 9: | Line 9: | ||
<pre> |
<pre> |
||
− | 1. Backup ifcfg-bond0 file |
+ | 1. Backup ifcfg-bond0 file |
ssh_all "cp /etc/sysconfig/network-scripts/ifcfg-bond0 /etc/sysconfig/network-scripts/ifcfg-bond0.20141105" |
ssh_all "cp /etc/sysconfig/network-scripts/ifcfg-bond0 /etc/sysconfig/network-scripts/ifcfg-bond0.20141105" |
||
Line 16: | Line 16: | ||
ssh_all "sed -i 's/lacp_rate=1/lacp_rate=0/' /etc/sysconfig/network-scripts/ifcfg-bond0" |
ssh_all "sed -i 's/lacp_rate=1/lacp_rate=0/' /etc/sysconfig/network-scripts/ifcfg-bond0" |
||
− | 3. restart network |
+ | 3. restart all network interfaces used in the bonding |
+ | Since the interfaces used for the bond0 are different on cores and movers, be careful using ssh_all commands! |
||
+ | Example from hpssmvr04: |
||
− | ssh_all "ifdown bond0" |
||
+ | |||
− | ssh_all "ifup bond0" |
||
+ | [root@hpssmvr04 ~]# cat /proc/net/bonding/bond0 |grep 'Slave Interface' |
||
+ | Slave Interface: eth0 |
||
+ | Slave Interface: eth1 |
||
+ | Slave Interface: eth6 |
||
+ | Slave Interface: eth7 |
||
+ | |||
+ | |||
+ | So on hpssmvr04, issue the following commands: |
||
+ | ifdown bond0 |
||
+ | ifdown eth0 |
||
+ | ifdown eth1 |
||
+ | ifdown eth6 |
||
+ | ifdown eth7 |
||
+ | ifup eth0 |
||
+ | ifup eth1 |
||
+ | ifup eth6 |
||
+ | ifup eth7 |
||
+ | ifup bond0 |
||
+ | |||
+ | Only then the change in LACP rate will become active. |
||
</pre> |
</pre> |
Revision as of 16:53, 27 November 2014
How to change the LACP Timeout?
Here are Steps how to change the the LACP timeout from 3 sec to 30 sec as requested by the NET department at KIT-SCC.
With this change now all-HPSS Hosts have the same timeout setting as the SCC-Switches.
Changes done by Jonathan Hermann (IBM) on 5.11.2014.
1. Backup ifcfg-bond0 file ssh_all "cp /etc/sysconfig/network-scripts/ifcfg-bond0 /etc/sysconfig/network-scripts/ifcfg-bond0.20141105" 2. set lacp_rate=0 ssh_all "sed -i 's/lacp_rate=1/lacp_rate=0/' /etc/sysconfig/network-scripts/ifcfg-bond0" 3. restart all network interfaces used in the bonding Since the interfaces used for the bond0 are different on cores and movers, be careful using ssh_all commands! Example from hpssmvr04: [root@hpssmvr04 ~]# cat /proc/net/bonding/bond0 |grep 'Slave Interface' Slave Interface: eth0 Slave Interface: eth1 Slave Interface: eth6 Slave Interface: eth7 So on hpssmvr04, issue the following commands: ifdown bond0 ifdown eth0 ifdown eth1 ifdown eth6 ifdown eth7 ifup eth0 ifup eth1 ifup eth6 ifup eth7 ifup bond0 Only then the change in LACP rate will become active.