Bonding Debian 9 (Strech): Irgendwie keine Performance oder Redundanz.

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
User avatar
Proteus
Posts: 289
Joined: 2013-04-14 05:08
Location: Holzgerlingen

Bonding Debian 9 (Strech): Irgendwie keine Performance oder Redundanz.

Post by Proteus »

Hallo,

wo liegt mein Fehler? ( Außer der, der vor dem PC sitzt! :) )
Ich weiß nicht wie es heißt, was vorher eth0 und eth1 hieß, heißt bei Debian 9 eno#, Gerätebasierend? (UDEV irgendwas?)

Code: Select all

[    0.822660] tg3 0000:03:00.0 eth0: Tigon3 [partno(N/A) rev 5720000] (PCI Express) MAC address 00:fd:45:fc:0a:64
[    0.822661] tg3 0000:03:00.0 eth0: attached PHY is 5720C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    0.822662] tg3 0000:03:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[    0.822663] tg3 0000:03:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit]
[    0.824891] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x3f impl RAID mode
[    0.824894] ahci 0000:00:1f.2: flags: 64bit ncq sntf ilck stag pm led clo pmp pio slum part ems apst
[    0.862628] tg3 0000:03:00.1 eth1: Tigon3 [partno(N/A) rev 5720000] (PCI Express) MAC address 00:fd:45:fc:0a:65
[    0.862629] tg3 0000:03:00.1 eth1: attached PHY is 5720C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    0.862630] tg3 0000:03:00.1 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]
[    0.862631] tg3 0000:03:00.1 eth1: dma_rwctrl[00000001] dma_mask[64-bit]
[    0.863409] tg3 0000:03:00.1 eno2: renamed from eth1
[    0.878392] tg3 0000:03:00.0 eno1: renamed from eth0

Code: Select all

auto eno1
	iface eno1 inet manual
	iface eno1 inet6 manual
	bond-master bond0

auto eno2
	iface eno2 inet manual
	iface eno2 inet6 manual
	bond-master bond0

auto bond0
	iface bond0 inet static
	address 192.168.178.2
	netmask 255.255.255.0
	broadcast 192.168.178.255
	gateway 192.168.178.1
	bond_mode 802.3ad

iface bond0 inet6 static
	pre-up /sbin/modprobe -q ipv6 ; /bin/true
	address 2002:2eed:d79a:0:2fd:45ff:fefc:a64
	netmask 64
	bond_mode 802.3ad

Code: Select all

ifconfig
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.178.2  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::2fd:45ff:fefc:a64  prefixlen 64  scopeid 0x20<link>
        inet6 2002:2eed:d79a:0:2fd:45ff:fefc:a64  prefixlen 64  scopeid 0x0<global>
        ether 00:fd:45:fc:0a:64  txqueuelen 1000  (Ethernet)
        RX packets 5220067  bytes 7813240430 (7.2 GiB)
        RX errors 0  dropped 1330  overruns 0  frame 0
        TX packets 1480957  bytes 129456639 (123.4 MiB)
        TX errors 0  dropped 41 overruns 0  carrier 0  collisions 0

eno1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether 00:fd:45:fc:0a:64  txqueuelen 1000  (Ethernet)
        RX packets 2607019  bytes 3904457608 (3.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 740540  bytes 64890372 (61.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16

eno2: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether 00:fd:45:fc:0a:64  txqueuelen 1000  (Ethernet)
        RX packets 2613048  bytes 3908782822 (3.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 740417  bytes 64566267 (61.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Lokale Schleife)
        RX packets 2602072  bytes 62590070764 (58.2 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2602072  bytes 62590070764 (58.2 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Eigentlich sollte es so gehen?

Code: Select all

auto bond0
	iface bond0 inet static
	address 192.168.178.2
	netmask 255.255.255.0
	broadcast 192.168.178.255
	gateway 192.168.178.1
        slave eno1 eno2
	bond_mode 802.3ad
Aber mit der slave funktioniert es leider nicht.

Code: Select all

ethtool bond0
Settings for bond0:
        Supported ports: [ ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 2000Mb/s
        Duplex: Full
        Port: Other
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Link detected: yes

Code: Select all

ethtool eno1
Settings for eno1:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: off
        Supports Wake-on: g
        Wake-on: g
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: yes

Code: Select all

ethtool eno2
Settings for eno2:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 2
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: off
        Supports Wake-on: g
        Wake-on: g
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: yes
Mein Switch unterstützt nur 802.1p/DSCP daher habe ich auf Portbasierend umgestellt. Ich verspüre beim Daten auf den Server schieben irgendwie keine Performance oder eine gewissen Redundanz.
LG
Proti

"Die Kamera wird bei hohen ISO Werten aber rauschen. Nichts ahnend hielt er sich die Kamera ans Ohr!"
User avatar
Proteus
Posts: 289
Joined: 2013-04-14 05:08
Location: Holzgerlingen

Re: Bonding Debian 9 (Strech): Irgendwie keine Performance oder Redundanz.

Post by Proteus »

So habe ich es jetzt gemacht. Vielleicht hat jemand noch Ideen was man verbessern kann?

Code: Select all

# The loopback network interface
auto lo
iface lo inet loopback

auto eno1
	iface eno1 inet manual
	iface eno1 inet6 manual
	bond-master bond0

auto eno2
	iface eno2 inet manual
	iface eno2 inet6 manual
	bond-master bond0

auto bond0
	iface bond0 inet static
	address 192.168.178.2
	netmask 255.255.255.0
	broadcast 192.168.178.255
	gateway 192.168.178.1
	dns-nameservers 192.168.178.1
        dns-search fritz.box
	bond_mode 802.3ad

iface bond0 inet6 static
	pre-up /sbin/modprobe -q ipv6 ; /bin/true
	address 2002:2eed:d79a:0:2fd:45ff:fefc:a64
	netmask 64
	dns-nameservers fd00::ca0e:14ff:fe8a:b028
        dns-search fritz.box
	bond_mode 802.3ad

Code: Select all

root@server:~# ifconfig
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.178.2  netmask 255.255.255.0  broadcast 192.168.178.255
        inet6 fe80::2fd:45ff:fefc:a64  prefixlen 64  scopeid 0x20<link>
        inet6 2002:2eed:d79a:0:2fd:45ff:fefc:a64  prefixlen 64  scopeid 0x0<global>
        ether 00:fd:45:fc:0a:64  txqueuelen 1000  (Ethernet)
        RX packets 38721349  bytes 58025619346 (54.0 GiB)
        RX errors 0  dropped 2062  overruns 0  frame 0
        TX packets 11190868  bytes 1432502345 (1.3 GiB)
        TX errors 0  dropped 10 overruns 0  carrier 0  collisions 0

eno1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether 00:fd:45:fc:0a:64  txqueuelen 1000  (Ethernet)
        RX packets 19352265  bytes 29055866836 (27.0 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5598630  bytes 716592367 (683.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16

eno2: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether 00:fd:45:fc:0a:64  txqueuelen 1000  (Ethernet)
        RX packets 19369084  bytes 28969752510 (26.9 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5592238  bytes 715909978 (682.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Lokale Schleife)
        RX packets 31  bytes 2400 (2.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 31  bytes 2400 (2.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Code: Select all

ethtool bond0
Settings for bond0:
        Supported ports: [ ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 2000Mb/s
        Duplex: Full
        Port: Other
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Link detected: yes
LG
Proti

"Die Kamera wird bei hohen ISO Werten aber rauschen. Nichts ahnend hielt er sich die Kamera ans Ohr!"