Comment 52 for bug 889423

Revision history for this message
arjarj (arjarj) wrote :

Hello,

After an upgrade from 10.04 to 12.04, our interfaces files stopped working for the 802.3ad interfaces. After converting the interfaces file to the new "format", the configuration seems to be correct, but I seem to be running into a timing issue or race condition again. I implemented most hints on this page, and the ones on https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/1015199 , but if the system starts up, the bond interfaces don't get their slaves (I've seen them come up with 0, 1 or 2 slave interfaces).
I'm trying to create bond1 and bond0, both with 2 physical interfaces. As suggested, the phyiscal interfaces are at the top, the bonds itself are defined at the bottom of the file.

It's a Dell PowerEdge R610, configured with 12 network interfaces, 4x broadcom bnx2 onboard, 2x4x igb Intel on quad nic boards. The used physical interfaces (eth0 through eth3) are mapped to the first 2 interfaces on both of the quad boards. I've tried playing with the pre-up sleep option as mentioned on comment 33 (https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/889423/comments/33), but to no avail. Could it be another timing issue, maybe due to the large amount of physical interfaces? If I run an "ifdown -a; ifup -a" from rc.local, all the interfaces come up just fine. The machine isn't in production yet, so I might be able to test or provide more logging if necessary.

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
    bond-master bond1
auto eth2
iface eth2 inet manual
    bond-master bond1
auto eth1
iface eth1 inet manual
    bond-master bond0
auto eth3
iface eth3 inet manual
    bond-master bond0

auto bond0
iface bond0 inet static
    address REDACTED
    netmask 255.255.255.224
    bond_mode 802.3ad # LACP
    bond_miimon 100
    bond_lacp_rate 1
    #xmit_hash_policy layer2+3
    bond_slaves none
iface bond0 inet6 static
    address REDACTED
    netmask 64
    #gateway REDACTED

auto bond1
iface bond1 inet static
    address REDACTED
    netmask 255.255.255.248
    gateway REDACTED
    bond_mode 802.3ad # LACP
    bond_miimon 100
    bond_lacp_rate 1
    #xmit_hash_policy layer2+3
    bond_slaves none

iface bond1 inet6 static
    address REDACTED
    netmask 64
    gateway REDACTED