Bug#870633: ifenslave: Option bond-mode does not work

2018-02-06 Thread bkw+1517636960
Wanted to follow up.  I can confirm that the following content in 
/etc/modprobe.d/bonding.conf works (for me).  If it isn't clear to 
others reading this, enp0s20f0 is the name of primary network interface.


alias bond0 bonding
options bonding mode=active-backup miimon=100 primary=enp0s20f0

In /etc/network/interfaces, I have commented (disabled):

bond-mode active-backup
bond-miimon 100



Bug#870633: ifenslave: Option bond-mode does not work

2018-02-02 Thread bkw+1517636960
Can somebody confirm that the workaround mentioned in the Ubuntu bug 
report is the approved way to do this?  If I'm reading that page 
correctly, I need to move my bond options out of the interfaces file and 
place them in /etc/modprobe.d/bonding.conf, like this:


"options bonding mode=active-backup miimon=100"

Is this correct?



Bug#870633: ifenslave: Option bond-mode does not work

2017-12-06 Thread Александр Чумаков
I also have same issue.
In /etc/network/interfaces I've set mode 802.3ad
/proc/net/bonding/bond0 shows me roubd-robin mode

Same issue was fixed in ifenslave-2.6 (Ubuntu)
https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1280366


Bug#870633: ifenslave: Option bond-mode does not work

2017-08-03 Thread Anton Dunaev
Package: ifenslave
Version: 2.9
Followup-For: Bug #870633

reportbug program failed to attach /proc/net/bonding/bond0 file. So I include 
it here:



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.11.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ifenslave depends on:
ii  ifupdown  0.8.21
ii  iproute2  4.9.0-1

Versions of packages ifenslave recommends:
pn  net-tools  

ifenslave suggests no packages.

-- no debconf information
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 50
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: enp0s8
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:30:48:78:b4:f4
Slave queue ID: 0

Slave Interface: enp0s9
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 1
Permanent HW addr: 00:30:48:78:b4:f5
Slave queue ID: 0


Bug#870633: ifenslave: Option bond-mode does not work

2017-08-03 Thread Anton Dunaev
Package: ifenslave
Version: 2.9
Severity: normal

Dear Maintainer, option bond-mode does not work.

As one can see from journalctl kernel refuses to change mode of interface 
operation
"because the bond device device has slaves".



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.11.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ifenslave depends on:
ii  ifupdown  0.8.21
ii  iproute2  4.9.0-1

Versions of packages ifenslave recommends:
pn  net-tools  

ifenslave suggests no packages.

-- no debconf information


bond0
Description: inode/empty
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

#source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto bond0
iface bond0 inet dhcp
bond-slaves none
bond-mode   balance-tlb
bond-miimon 50

allow-hotplug enp0s8
iface enp0s8 inet manual
bond-master bond0

allow-hotplug enp0s9
iface enp0s9 inet manual
bond-master bond0
-- Logs begin at Thu 2017-08-03 19:17:03 MSK, end at Thu 2017-08-03 19:25:02 
MSK. --
Aug 03 19:17:03 thalassa kernel: Linux version 4.11.0-1-amd64 
(debian-ker...@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) 
) #1 SMP Debian 4.11.6-1 (2017-06-19)
Aug 03 19:17:03 thalassa kernel: Command line: placeholder 
root=/dev/mapper/ddf1_4c534920202020201055471147111e781 ro
Aug 03 19:17:03 thalassa kernel: x86/fpu: x87 FPU will use FXSAVE
Aug 03 19:17:03 thalassa kernel: Released 0 page(s)
Aug 03 19:17:03 thalassa kernel: e820: BIOS-provided physical RAM map:
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0x-0x00098fff] usable
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0x00099400-0x000f] reserved
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0x0010-0xdff9] usable
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0xdffae000-0xdffa] usable
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0xdffb-0xdffbdfff] ACPI data
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0xdffbe000-0xdffe] ACPI NVS
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0xdfff-0xdfff] reserved
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0xfec0-0xfec00fff] reserved
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0xfee0-0xfeef] reserved
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0xff70-0x] reserved
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0x0001-0x00041fff] usable
Aug 03 19:17:03 thalassa kernel: Xen: [mem 
0x00fd-0x00ff] reserved
Aug 03 19:17:03 thalassa kernel: NX (Execute Disable) protection: active
Aug 03 19:17:03 thalassa kernel: SMBIOS 2.4 present.
Aug 03 19:17:03 thalassa kernel: DMI: Supermicro H8DMR-82/H8DMR-82, BIOS 080014 
 09/24/2009
Aug 03 19:17:03 thalassa kernel: Hypervisor detected: Xen
Aug 03 19:17:03 thalassa kernel: e820: update [mem 0x-0x0fff] 
usable ==> reserved
Aug 03 19:17:03 thalassa kernel: e820: remove [mem 0x000a-0x000f] usable
Aug 03 19:17:03 thalassa kernel: AGP: No AGP bridge found
Aug 03 19:17:03 thalassa kernel: e820: last_pfn = 0x42 max_arch_pfn = 
0x4
Aug 03 19:17:03 thalassa kernel: MTRR: Disabled
Aug 03 19:17:03 thalassa kernel: x86/PAT: MTRRs disabled, skipping PAT 
initialization too.
Aug 03 19:17:03 thalassa kernel: x86/PAT: Configuration [0-7]: WB  WT  UC- UC  
WC  WP  UC  UC  
Aug 03 19:17:03 thalassa kernel: e820: last_pfn = 0xdffb0 max_arch_pfn = 
0x4
Aug 03 19:17:03 thalassa kernel: Base memory trampoline at [88093000] 
93000 size 24576
Aug 03 19:17:03 thalassa kernel: BRK [0x01f41000, 0x01f41fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f42000, 0x01f42fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f43000, 0x01f43fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f44000, 0x01f44fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f45000, 0x01f45fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f46000, 0x01f46fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f47000, 0x01f47fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f48000, 0x01f48fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f49000, 0x01f49fff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f4a000, 0x01f4afff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f4b000, 0x01f4bfff] PGTABLE
Aug 03 19:17:03 thalassa kernel: BRK [0x01f4c000, 0x01f4cfff] PGTABLE
Aug 03 19:17:03 thalassa kernel: RAMDISK: [mem 0x0400-0x053d4fff]
Aug 03 19:17:03 thalassa kernel: ACPI: Early table