[SOLVED] OVS Bond active-backup: Configure it to automatically go back?

kit-of4710

New Member
Mar 8, 2023
8
1
3
We want our Proxmox nodes to have two connections to our network via two different switches, one 10G fiber link and one 1G copper link. Configuring them as "active-backup" and setting the slaves in the correct order (10G, then 1G) is nearly what we want: After boot, OVS uses the 10G as active and, if that fails, it immediately switches to the 1G backup.

However, when the 10G connection is restored, it does not automatically go back to using it (checked via throughput statistics of the switches & waited for at least 10 minutes). We need to "force" it by "failing" the 1G manually (remove the 1G copper cable for a short time or disabling the port via the switch).

I didn't find anything about if there is an option to configure OVS to go back to the first, "primary" link. Does anyone of you know how to do that?
 
no, neither the Proxmox UI exposed this setting nor do I find any documentation for this setting.

Can I use this in the OVS options field?

For reference: the UI I mean:
1681209893931.png
 
i think yes. you can check it in the in the /etc/network/interfaces
 
Last edited:
  • setting bond-primary enp1s0f1 fails without any error message, UI just wont apply it
  • setting bond-primary=enp1s0f1 does let me apply it, but I see this log message in journalctl: ovs-vsctl[83455]: ovs|00002|db_ctl_base|ERR|Port does not contain a column whose name matches "bond-primary"
  • setting bond_primary=enp1s0f1 does issue nearly the same error message: ovs-vsctl[83455]: ovs|00002|db_ctl_base|ERR|Port does not contain a column whose name matches "bond_primary"
You're sure this works for the "OVS Bond"? Can you maybe share a working /etc/network/interfaces file with this configuration set? Maybe it's then possible to extrapolate how this might be configured using the UI.

For reference: I've found another forum post, which resulted in a field added for an primary slave link, but sadly that's for the "Linux Bond" and not the "OVS Bond": https://forum.proxmox.com/threads/set-primary-slave-for-bond.67627/
 
  • Like
Reactions: kit-of4710

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!