A bonding's primary setting in /etc/sysconfig/network-scripts/ifcfg-bond0 is not effective
Environment
Red Hat Enterprise Linux 5.2
Issue
A bonding's primary setting in /etc/sysconfig/network-scripts/ifcfg-bond0 is not effective.
Setting BONDING_OPTS as below, you may see "Primary Slave: None" on /proc/net/bonding/bond0.
For example:
# grep BONDING_OPTS /etc/sysconfig/network-scripts/ifcfg-bond0
BONDING_OPTS='mode=1 miimon=100 primary=eth0'
# cat /proc/net/bonding/bond0
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None <----- here
Currently Active Slave: eth3
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: XX:XX:XX:XX:XX:XX
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: XX:XX:XX:XX:XX:XX
Resolution
Updating to kernel version 2.6.18-164.6.1 or later version or newer resolves this issue. If you use kernel-2.6.18-164.6.1.el5 or older, you need to set the bonding option in /etc/modprobe.conf:
options bonding mode=1 miimon=100 primary=eth0
Comments
For more information on this kernel update, refer to http://rhn.redhat.com/errata/RHSA-2009-1548.html
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.