Hello,
I have a problem with selecting different primary
devices for active-backup-mode with multiple bonds:
/etc/modprobe.conf
alias eth0 e1000
alias eth1 e1000
alias eth2 e1000
alias eth3 e1000
alias eth4 e1000
alias eth5 e1000
alias eth6 tg3
alias eth7 tg3
options e1000 Speed=100,100,1000,1000,1000,1000
Duplex=2,2,2,2,2,2
alias scsi_hostadapter cciss
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
alias bond0 bonding
#options bond0 -o bonding0 primary=eth2 miimon=100
mode=1 max_bonds=3
#options bond0 miimon=100 mode=1 primary=eth2
options bond0 miimon=100 mode=1 max_bonds=3 primary=eth2
alias bond1 bonding
options bond1 -o bonding1 primary=eth4 miimon=100 mode=1
alias bond2 bonding
options bond2 -o bonding2 primary=eth5 miimon=100 mode=1
cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v2.6.0 (January 14, 2004)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth2
Currently Active Slave: eth2
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:11:0a:53:66:98
cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v2.6.0 (January 14, 2004)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth2
Currently Active Slave: eth4
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth4
MII Status: up
Link Failure Count: 2
Permanent HW addr: 00:11:0a:53:64:92
cat /proc/net/bonding/bond2
Ethernet Channel Bonding Driver: v2.6.0 (January 14, 2004)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth2
Currently Active Slave: eth5
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth5
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:11:0a:53:64:93
The primary slave is always the same device (eth2) but
this is only available for bond0.
The same happens with parameter mode. The first setting
(e.g. module load) of arbitrary parameters is used the for
all successive bonding devices.
BTW, whats the correct notation:
options bond1 -o bonding1 primary=eth4 miimon=100 mode=1
or
options bond1 -o bond1 primary=eth4 miimon=100 mode=1
I have seen both...
I'm using RedHat4 (Kernel 2.6.9-5.0.5.ELsmp)
René
|