Re: [systemd-devel] Setting bonding parameters

2014-07-15 Thread poma

On 14.07.2014 12:28, Tom Gundersen wrote:



We will not change the settings of pre-existing bonds created by
someone else (bond0 is created by the kernel when the module is
loaded). I added this to the man-page.

Using an unused bond name should make this work.

Please let us know if it does not.

Cheers,

Tom



I see, thanks!

man: systemd.netdev - make it clear that we do not touch preexisting netdevs
http://cgit.freedesktop.org/systemd/systemd/commit/?id=7c1cff4

It works with original ifnames,
https://bugzilla.redhat.com/attachment.cgi?id=918064

BTW why is bond Oper State unknown?


poma


___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Setting bonding parameters

2014-07-14 Thread Tom Gundersen
On Sun, Jul 13, 2014 at 8:33 PM, poma pomidorabelis...@gmail.com wrote:
 On 26.06.2014 15:30, Lukáš Nykrýn wrote:

 poma píše v Pá 20. 06. 2014 v 13:36 +0200:

 On 20.06.2014 13:31, Tom Gundersen wrote:

 On Thu, Jun 19, 2014 at 1:37 PM, Vladimir Elisseev vo...@vovan.nl
 wrote:

 Simple question: is there a way to set bridge parameters (bridge
 forward delay, bridge hello time, etc) using systemd networking units?


 This is still on the TODO. Last I heard Lukas was looking into this,
 so maybe we'll get that soon :)

 Cheers,

 Tom


 Ping.
 Simple question: was Lukas looking into bonding params also? :)


 poma


 I have started with bonding params, but it's not looking promising.
 Except mode all calls end with something like Could not append
 IFLA_BOND_PRIMARY_RESELEC attribute: Operation not supported, even on
 latest kernel which is in rawhide.
 And setting mode does not show any error, but does not work either.
 If anybody wants to look at it, here is my patch for mode
 http://pastebin.com/qz1XQ9DA

 and here is a earlier version which tried to setup everything.
 http://pastebin.com/dzsDQqYF

 Lukas




 Yep, ain't workin,
 http://cgit.freedesktop.org/systemd/systemd/commit/?id=fe8ac65

 systemd-215-4.git3864c28.20140711.fc21.x86_64

 man 5 systemd.netdev
 ...
 [BOND] SECTION OPTIONS
 The [Bond] section accepts the following key:

 Mode=
 Specifies one of the bonding policies. The default is balance-rr
 (round robin).

 balance-rractive-backupbalance-xorbroadcast802.3adbalance-tlbbalance-alb


 /etc/systemd/network/bond0mode.netdev
 [NetDev]
 Name=bond0

We will not change the settings of pre-existing bonds created by
someone else (bond0 is created by the kernel when the module is
loaded). I added this to the man-page.

Using an unused bond name should make this work.

Please let us know if it does not.

Cheers,

Tom

 Kind=bond

 [Bond]
 Mode=active-backup


 bondctl detail bond0
 Bonding Master: bond0
  Oper State: up
  Slaves: enp3s0 enp1s9
  Active Slave:
  Mode:   balance-rr 0
  Monitor:No monitoring enabled


 poma


 ___
 systemd-devel mailing list
 systemd-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/systemd-devel
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Setting bonding parameters

2014-07-13 Thread poma

On 26.06.2014 15:30, Lukáš Nykrýn wrote:

poma píše v Pá 20. 06. 2014 v 13:36 +0200:

On 20.06.2014 13:31, Tom Gundersen wrote:

On Thu, Jun 19, 2014 at 1:37 PM, Vladimir Elisseev vo...@vovan.nl wrote:

Simple question: is there a way to set bridge parameters (bridge forward delay, 
bridge hello time, etc) using systemd networking units?


This is still on the TODO. Last I heard Lukas was looking into this,
so maybe we'll get that soon :)

Cheers,

Tom


Ping.
Simple question: was Lukas looking into bonding params also? :)


poma


I have started with bonding params, but it's not looking promising.
Except mode all calls end with something like Could not append
IFLA_BOND_PRIMARY_RESELEC attribute: Operation not supported, even on
latest kernel which is in rawhide.
And setting mode does not show any error, but does not work either.
If anybody wants to look at it, here is my patch for mode
http://pastebin.com/qz1XQ9DA

and here is a earlier version which tried to setup everything.
http://pastebin.com/dzsDQqYF

Lukas





Yep, ain't workin,
http://cgit.freedesktop.org/systemd/systemd/commit/?id=fe8ac65

systemd-215-4.git3864c28.20140711.fc21.x86_64

man 5 systemd.netdev
...
[BOND] SECTION OPTIONS
The [Bond] section accepts the following key:

Mode=
Specifies one of the bonding policies. The default is balance-rr 
(round robin).

balance-rractive-backupbalance-xorbroadcast802.3adbalance-tlbbalance-alb


/etc/systemd/network/bond0mode.netdev
[NetDev]
Name=bond0
Kind=bond

[Bond]
Mode=active-backup


bondctl detail bond0
Bonding Master: bond0
 Oper State: up
 Slaves: enp3s0 enp1s9
 Active Slave:
 Mode:   balance-rr 0
 Monitor:No monitoring enabled


poma


___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel