forcing specific bonding slave network interface to be used as primary

sometimes after few lan failovers linux decides to use different bonding slave than i’d like it to. solution – remove from the bond interface acting as undesired master and then re-add it:

echo -eth1 > /sys/class/net/bond0/bonding/slaves
sleep 1
echo +eth1 > /sys/class/net/bond0/bonding/slaves

… and nagios stops nagging.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

(Spamcheck Enabled)