|
From: Serge L. <fi...@in...> - 2010-04-09 20:19:36
|
On 04/09/2010 12:54 PM, Bradlee Landis wrote: > I'm having some trouble with bonding. I don't know if these are bugs > with the /etc/init.d/network, or the bonding module, or what. > > First of all, the miimon sometimes stops working in all bonds. If you > look at /proc/net/bonding/bondX, it will sometimes say "100", but at > other times, it just goes to 0 so that it does not detect when the > link is non-existent. I'm not sure what causes it. That timer is a bonding module parameter and should not change without the module reloading. I guess the might if the network script does modprobe without parameters and it overwrites your settings in modprobe.conf. My configuration files is below and they are working. root@xxxxx:~ # cat /etc/sysconfig/nic/ifcfg-* DEVICE=bond0 ONBOOT=yes MODULE=bonding MODULE_OPTS='mode=1 miimon=100' BONDING_MASTER=yes BONDING_SLAVES='eth0 eth1' DHCP=no IP="10.3.2.134" NETMASK="255.255.255.0" BROADCAST="10.3.2.255" ROUTE="$ROUTE default/0.0.0.0:10.3.2.1" ----------------------------------------- DEVICE=eth0 ONBOOT=yes MODULE="tg3" DHCP=no IP='' NETMASK='' BROADCAST='' ----------------------------------------- DEVICE=eth1 ONBOOT=yes MODULE="tg3" DHCP=no IP='' NETMASK='' BROADCAST='' ----------------------------------------- > > -- /etc/modprobe.conf -- > alias bond0 bonding > options bond0 -o bond0 mode=0 miimon=100 > ... > -- EOF -- I'm not sure it's necessary, because bonding parameters are defined in network configuration file. > > Secondly, I have not completely tested this, but from what I see in > /etc/init.d/network, it looks like if ONBOOT=no, then the script does > absolutely nothing. It doesn't take the interface down when you do > /etc/init.d/network stop, it just leaves it. I personally think that > it should take down every single interface, even if a file does not > exist in /etc/sysconfig/nic/ for the device. > Probably you are right. But I'd tell that if network script doesn't bring up the network, it should not stop it either. With "ONBOOT=no" network script really ignore settings. > > > BTW, I am still using 1.4RC1, as I'm still waiting on LCD4Linux to be > put back in. Maybe these issues are no longer a problem, but you might > take a look at them. I use DL with bonding (mode 1 though) and it seems to be very stable. Serge |