lkml.org 
[lkml]   [2001]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectChannel bonding kernel crash, workaround
Hi, 

Up to the latests kernels (-> 2.4.2) channel bonding crashes the kernel
(aille...) when turning it off (e.g. at reboot).

Here is a way to avoid this, which might help gourous to track the bug.
Suppose ifconfig says:

bond0 Link encap:Ethernet HWaddr 00:40:05:A1:C4:13
inet addr:192.168.2.64 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:823297 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

eth0 Link encap:Ethernet HWaddr 00:40:05:A1:C4:13
inet addr:192.168.2.64 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:487424 errors:0 dropped:0 overruns:0 frame:0
TX packets:411649 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:19 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:40:05:A1:C4:13
inet addr:192.168.2.64 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:487526 errors:0 dropped:0 overruns:0 frame:0
TX packets:411648 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:18 Base address:0xb800

then the exact sequence:

ifconfig eth0 down
ifconfig eth1 down
ifconfig bond0 down
ifconfig eth0 down
ifconfig eth1 down

turns off bond0 without crash. This was tested on several computers with
all kernel 2.4.2, SMP Pentium II and tulip 21140 and/or 21142/3 NICs.

Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:17    [from the cache]
©2003-2011 Jasper Spaans