From LedHed's Wiki
Jump to: navigation, search
(Changing the Bond Mode of an existing Bond)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
== Changing XenServers Default Bond Mode ==
 
== Changing XenServers Default Bond Mode ==
 +
XenServer defaults to a bond mode of "balance-slb"
  
 +
'''Possible Bond Modes are:'''<br>
 +
balance-rr
 +
active-backup
 +
balance-xor
 +
broadcast
 +
802.3ad
 +
balance-tlb
 +
balance-alb
 +
balance-slb
  
 +
 +
From a console go to /opt/xensource/libexec<br>
 +
cd /opt/xensource/libexec
 +
 +
Search for "balance-slb"<br>
 +
grep -i balance-slb ./*
 +
 +
Edit any files that grep returned as a match.<br>
 +
sed -i 's/balance-slb/802.3ad/g' InterfaceReconfigureBridge.py InterfaceReconfigureVswitch.py
 +
 +
Now any new Bonds you create in XenCenter will have your newly selected Bond Mode.
  
 
== Changing the Bond Mode of an existing Bond ==
 
== Changing the Bond Mode of an existing Bond ==

Latest revision as of 04:10, 1 October 2010

Changing XenServers Default Bond Mode

XenServer defaults to a bond mode of "balance-slb"

Possible Bond Modes are:

balance-rr
active-backup
balance-xor
broadcast
802.3ad
balance-tlb
balance-alb
balance-slb


From a console go to /opt/xensource/libexec

cd /opt/xensource/libexec

Search for "balance-slb"

grep -i balance-slb ./*

Edit any files that grep returned as a match.

sed -i 's/balance-slb/802.3ad/g' InterfaceReconfigureBridge.py InterfaceReconfigureVswitch.py

Now any new Bonds you create in XenCenter will have your newly selected Bond Mode.

Changing the Bond Mode of an existing Bond

1) Get the host UUID

xe host-list

2) Get the PIF's UUID

xe pif-list host-uuid=<HOST_UUID>

3) Change the mode:

Possible Bond Modes:

balance-rr
active-backup
balance-xor
broadcast
802.3ad
balance-tlb
balance-alb
balance-slb
xe pif-param-set uuid=<PIF_UUID> other-config:bond-mode=<802.3ad>

Checking the state of a Bonded NIC

cat /proc/net/bonding/bond0

Reference

http://quorumsoft.com/kb/index.php/article/lacp-bond