Autofailback on network bond?


Recommended Posts

I have a active-backup (1) bond setup on my UnRAID (6.9.2) server between a 10G and 1G adapter.  I want the 10G adapter, if it has a link, to always be the active partner.   Was seeing a whole bunch of traffic out of my 1G switch from UnRAID and logged in to find this:

 

root@unraid:/proc/net/bonding# cat bond0 
Ethernet Channel Bonding Driver: v5.10.28-Unraid

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 90:e2:ba:2e:ee:bc
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 2
Permanent HW addr: 00:d8:61:37:1e:13
Slave queue ID: 0

 

I bounced the interface on eth1 and, as expected, UnRAID failed back to the 10G link and everything looks good:

 

root@unraid:/proc/net/bonding# cat bond0 
Ethernet Channel Bonding Driver: v5.10.28-Unraid

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 90:e2:ba:2e:ee:bc
Slave queue ID: 0

Slave Interface: eth1
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 3
Permanent HW addr: 00:d8:61:37:1e:13
Slave queue ID: 0

 

 

Question is, how to I make it so that if the 10G NIC has a link, it will use that as the primary at all times?  In the GUI, bonding members of bond0 show as "eth0, eth1".  I set eth0 to be the 10G NIC, I thought UnRAID always preferred the lower number, so I set eth0 to the 10G NIC using "Interface Rules".

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.