|
From: Motycka J. <mai...@vc...> - 2011-03-29 06:49:37
|
Thank you very much for this quick workaround. It is functional for me too. I have made submission of a bug to the DL bugtrack system. Jiri Motycka -------- Original Message -------- Subject: Re: [Devil-Linux-discuss] multiple bonds devices From: Serge Leschinsky <ser...@gm...> To: dev...@li... Date: 03/29/2011 07:14 AM > Hello Motycka, > > It looks like it's not possible to configure it by network scripts. I'm not sure > that it's clear how to fix - we need some time to think. > > As a workaround (ugly, I know) you can change the mode for already created bond, > i.e. > for bond0 - MODULE_OPTS="max_bonds=2 mode=2 miimon=100" > > --------------------------------------------------- > root@dl1:/shm/etc/sysconfig/nic # grep -v "^#" ifcfg-bond0 > DHCP=no > ONBOOT=yes > DEVICE=bond0 > MODULE=bonding > BONDING_MASTER=yes > BONDING_SLAVES='eth0 eth1' > MODULE_OPTS='max_bonds=2 mode=2 miimon=100' > > --------------------------------------------------- > > then add the line to the end of ifcfg-bond1: > > echo "4"> /sys/devices/virtual/net/bond1/bonding/mode > > --------------------------------------------------- > root@dl1:/shm/etc/sysconfig/nic # grep -v "^#" ifcfg-bond1 > DHCP=no > ONBOOT=yes > DEVICE=bond1 > MODULE=bonding > BONDING_MASTER=yes > BONDING_SLAVES='eth2 eth3' > MODULE_OPTS='' > > echo "4"> /sys/devices/virtual/net/bond1/bonding/mode > --------------------------------------------------- > > > The result: > > root@dl1:/shm/etc/sysconfig/nic # for i in 0 1 ; do echo bond$i ; cat > /proc/net/bonding/bond$i | grep "Bonding Mode"; done > bond0 > Bonding Mode: load balancing (xor) > bond1 > Bonding Mode: IEEE 802.3ad Dynamic link aggregation > > > Could you please also submit a bug to not forget about proper fixing? > > > Serge > > > On 03/28/2011 07:04 AM, Motycka Jiri wrote: >> Hello. >> >> Do you knouw, if is possible to start up multiple bond devices with >> diffedent modules parameters? >> For example bond0 in mode XOR and bond1 in mode 802.3ad. >> >> I was only be able to startup 2 bond devices with same config. Bond0 >> ifcfg-file startup two devices (MODULE_OPTS="max_bonds=2 mode=2 >> miimon=100), but in ifcfg-bond1 config file MODULE_OPTS="mode=4 >> miimon=100" had no effect :(. >> >> Is there any possibility how to configure it? >> >> Thank you. >> Jiri Motycka >> >> >> ------------------------------------------------------------------------------ >> Enable your software for Intel(R) Active Management Technology to meet the >> growing manageability and security demands of your customers. Businesses >> are taking advantage of Intel(R) vPro (TM) technology - will your software >> be a part of the solution? Download the Intel(R) Manageability Checker >> today! http://p.sf.net/sfu/intel-dev2devmar >> _______________________________________________ >> Devil-linux-discuss mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss >> > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Devil-linux-discuss mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss |
|
From: Motycka J. <mai...@vc...> - 2011-04-18 08:41:04
|
Hello.
I have tested this patch and it is ok for me.
I have tested it on this setup:
2 bond devices (bond0, bond1) each with 2 slaves.
bond0 OPTS: max_bonds=2 mode=2 miimon=100
bond1 OPTS: mode=4 miimon=100
And after system stats up, I have this in proc:
/proc/net/bonding/bond0:
Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:04:76:15:ef:c1
Slave Interface: eth2
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:04:76:15:8b:e6
/proc/net/bonding/bond1:
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: slow
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 2
Actor Key: 9
Partner Key: 3
Partner Mac Address: 00:1c:c5:a3:92:e0
Slave Interface: eth3
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:04:76:15:ef:bc
Aggregator ID: 1
Slave Interface: eth4
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:50:da:19:85:e2
Aggregator ID: 1
Thanks.
Jiri
-------- Original Message --------
Subject: Re: [Devil-Linux-discuss] multiple bonds devices
From: Serge Leschinsky <ser...@gm...>
To: dev...@li...
CC: Motycka Jiri <mai...@vc...>
Date: 04/15/2011 10:39 AM
> Jiri,
>
> could you please test/check the attached patch?
>
> Thanks,
> Serge
>
> On 03/28/2011 11:49 PM, Motycka Jiri wrote:
>> Thank you very much for this quick workaround. It is functional for
>> me too.
>> I have made submission of a bug to the DL bugtrack system.
>>
>> Jiri Motycka
|
|
From: Serge L. <ser...@gm...> - 2011-04-15 08:39:34
Attachments:
multiple_bonds.patch
|
Jiri, could you please test/check the attached patch? Thanks, Serge On 03/28/2011 11:49 PM, Motycka Jiri wrote: > Thank you very much for this quick workaround. It is functional for me too. > I have made submission of a bug to the DL bugtrack system. > > Jiri Motycka |