PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Bonding RHEL-5.6



nr8
11.07.11, 10:13
Hallo.

Ich bin grade dabei auf ein paar Server ein Bonding zu machen.

Im Grunde sehe ich dies als recht einfach an jedoch gefällt mir eine Sache nicht.
Zuerst hier meine Konfigs.

vim /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
USERCTL=no

vim /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
USERCTL=no

vim /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0
IPADDR=10.150.60.103
NETMASK=255.255.255.0
GATEWAY=10.150.60.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS=""

vim /etc/modprobe.d/bonding.conf

alias bond0 bonding

Das sind meine Configs.
Das was ich jetzt nicht verstehe ist dies hier:

cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.4.0-1 (October 7, 2008)

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

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 1c:df:0f:1d:90:75

Warum sehe ich hier nur eth0. Wenn ich den Server bzw. das Netzwerk neu starte änderert sich nichts. Manchmal ändert sich dies auch auf eth1 aber es sind nie beide zusammen.

Auch mit einem ifconfig eth0 bzw. 1 (halt die Karte die nicht da ist) kommt nichts zurück.
In diesem Fall

ifconfig eth1

eth1: error fetching interface information: Device not found

Kann mir jemand helfen warum dies so ist?
Danke.

just4uk
13.07.11, 08:59
Ich meine
eth1: error fetching interface information: Device not found sagt doch schon einiges!
Gibt es überhaupt ein zweites Netzwerkinterface?
Was sagt den
lscpi -vk zu dem Fall?

Gruß aus L.E.
Uwe

nr8
13.07.11, 09:41
Ja wir haben zwei Netzwerkkarten.


0b:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
Subsystem: Cisco Systems Inc Device 0065
Flags: bus master, fast devsel, latency 0, IRQ 58
Memory at b5960000 (32-bit, non-prefetchable) [size=128K]
Memory at b5940000 (32-bit, non-prefetchable) [size=128K]
I/O ports at 1020 [size=32]
Memory at b5a04000 (32-bit, non-prefetchable) [size=16K]
Expansion ROM at b8400000 [disabled] [size=128K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
Capabilities: [70] MSI-X: Enable+ Count=10 Masked-
Capabilities: [a0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 1c-df-0f-ff-ff-1d-90-74
Capabilities: [150] Alternative Routing-ID Interpretation (ARI)
Capabilities: [160] Single Root I/O Virtualization (SR-IOV)
Kernel driver in use: igb
Kernel modules: igb

0b:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
Subsystem: Cisco Systems Inc Device 0065
Flags: bus master, fast devsel, latency 0, IRQ 66
Memory at b5920000 (32-bit, non-prefetchable) [size=128K]
Memory at b5900000 (32-bit, non-prefetchable) [size=128K]
I/O ports at 1000 [size=32]
Memory at b5a00000 (32-bit, non-prefetchable) [size=16K]
Expansion ROM at b8420000 [disabled] [size=128K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
Capabilities: [70] MSI-X: Enable+ Count=10 Masked-
Capabilities: [a0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Device Serial Number 1c-df-0f-ff-ff-1d-90-74
Capabilities: [150] Alternative Routing-ID Interpretation (ARI)
Capabilities: [160] Single Root I/O Virtualization (SR-IOV)
Kernel driver in use: igb
Kernel modules: igb

Es handelt sich hier um mehrer Server und nur bei einem funktioniert das ganze so wie es soll. Bei allen anderen habe ich das Problem wie hier beschrieben.

EDIT: Hier noch eine weitere Meldung die vielleicht helfen kann

Bringing up interface bond0: igb device eth1 does not seem to be present, delaying initialization.

EIDT2:

ifconfig -a
__tmp627063702 Link encap:Ethernet HWaddr 1C:DF:0F:1D:AC:89
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:b5920000-b5940000

bond0 Link encap:Ethernet HWaddr 1C:DF:0F:1D:AC:88
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:4652 errors:0 dropped:0 overruns:0 frame:0
TX packets:658 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:387322 (378.2 KiB) TX bytes:100604 (98.2 KiB)

eth0 Link encap:Ethernet HWaddr 1C:DF:0F:1D:AC:88
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:4652 errors:0 dropped:0 overruns:0 frame:0
TX packets:660 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:387322 (378.2 KiB) TX bytes:101184 (98.8 KiB)
Memory:b5960000-b5980000