[Beowulf] Channel bonding

Joe Landman landman at scalableinformatics.com
Tue Apr 24 18:32:15 EDT 2007


Folks:

   Quick utility to help with the construction of channel bonds in 
Linux.  Sorely lacking in documentation.

Grab it from here 
http://downloads.scalableinformatics.com/downloads/mkchbond.pl
and run it like this:

./mkchbond.pl --ip=10.1.1.1 --netmask=255.255.0.0 --network=10.1.0.0 
--broadcast=10.1.255.255 --eth=eth2,eth3

(note: use the --write option to force it to write the files, it will 
back up any existing files first).


[root at crunch-r ~]# ./mkchbond.pl --ip=10.1.1.1 --netmask=255.255.0.0 
--network=10.1.0.0 --broadcast=10.1.255.255 --eth=eth2,eth3
mkchbond.pl: v0.9 Create channel bonds easily
by Joe Landman (http://scalableinformatics.com)
This software is Copyright (c) 2005-2007 by Scalable Informatics
and licensed under GPL v2.0 only.  You may freely distribute this
software under the terms and conditions of the GPL 2.0 license.
You may not alter, remove, or prevent printing of the copyright
notice and information.

---- Would append the following to file '/etc/modprobe.conf' up to EOM -----
alias bond0 bonding
options bonding mode=6 miimon=100 downdelay=300 updelay=300 max_bonds=2
---- EOM -----

---- Would write the following to file 
'/etc/sysconfig/network-scripts/ifcfg-bond0' up to EOM ----
DEVICE=bond0
IPADDR=10.1.1.1
NETMASK=255.255.0.0
NETWORK=10.1.0.0
BROADCAST=10.1.255.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
---- EOM ----

---- Would write the following to file 
'/etc/sysconfig/network-scripts/ifcfg-eth2' up to EOM ----
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
---- EOM ----

---- Would write the following to file 
'/etc/sysconfig/network-scripts/ifcfg-eth3' up to EOM ----
DEVICE=eth3
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
MASTER=bond0
SLAVE=yes
---- EOM ----

Why do this?  Because I don't like to build these files by hand each 
time I want to set it up.

Note also, we found a problem with channel bond modes 5 and 6 under 
heavy load on a few machines.  If you can reproduce it (bond module 
kernel crash), please let me know.  Would like to report it to 
LKML/others if it is real (and not just hardware cracking under intense 
load: 4 IOzones blasting 32 GB each on our JackRabbit units interface).

Joe
-- 

Joseph Landman, Ph.D
Founder and CEO
Scalable Informatics LLC,
email: landman at scalableinformatics.com
web  : http://www.scalableinformatics.com
phone: +1 734 786 8423
fax  : +1 734 786 8452 or +1 866 888 3112
cell : +1 734 612 4615

_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf

!DSPAM:462e852324331745845678!



More information about the Beowulf mailing list