In the gui in 1.6 there is a bonding box that reads
Bonding options
If bonding is "master", specify the bonding options here.
In this case the interface is the master so what do we mean by bonding options ?
If i were manually doing this i would offer things like
options bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=$GATEWAY
Are we meaning the same type of thing?
thanks
Yes, as you specified, these are the bonding "options" for "bond0":
mode=1 primary=eth0 arp_interval=60 arp_ip_target=$GATEWAY
That is what you would put in the options field.
On Mon, Mar 23, 2009 at 8:19 AM, Tom Brown tom@ng23.net wrote:
In the gui in 1.6 there is a bonding box that reads
Bonding options
If bonding is "master", specify the bonding options here.
In this case the interface is the master so what do we mean by bonding options ?
If i were manually doing this i would offer things like
options bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=$GATEWAY
Are we meaning the same type of thing?
thanks
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
On Mon, 23 Mar 2009 12:19:15 +0000, Tom Brown tom@ng23.net wrote:
In the gui in 1.6 there is a bonding box that reads
Bonding options
If bonding is "master", specify the bonding options here.
In this case the interface is the master so what do we mean by bonding options ?
If i were manually doing this i would offer things like
options bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=$GATEWAY
Are we meaning the same type of thing?
thanks
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Yes. That box is used to specify bonding options in modprobe.conf
Tom Brown wrote:
Yes. That box is used to specify bonding options in modprobe.conf
i dont seem to quite be able to get this going - in the ks this is what is shown
echo "# Cobbler generated non-physical interface" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DEVICE=eth0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 cat >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 << EOF BONDING_OPTS="bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1" EOF echo "ONPARENT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "BOOTPROTO=static" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "IPADDR=192.168.11.4" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "NETMASK=255.255.255.0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DNS1=<<inherit>>" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 # End configuration for eth0
and
echo "DEVICE=eth1" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "HWADDR=00:16:3E:5B:BB:05" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "ONBOOT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "SLAVE=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "MASTER=eth0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "HOTPLUG=no" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "BOOTPROTO=none" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "DNS1=<<inherit>>" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 # End configuration for eth1
and modprobe.conf looks like
options bonding max_bonds=1 alias eth1 xennet alias eth0 bonding
my system report for this machine is as follows
# cobbler system report virt02 system : virt02 profile : CentOS-5.2-xen-x86_64 comment : created : Thu Mar 12 11:00:37 2009 gateway : 192.168.11.1 hostname : virt02.linux.lab.xxxxxxxx.com image : kernel options : {'ip': '192.168.11.4', 'netmask': '255.255.255.0', 'acpi': 'False', 'dns': '192.168.11.1', 'gateway': '192.168.11.1'} kernel options post : {} kickstart : <<inherit>> ks metadata : {'nameserver': '192.168.11.1'} mgmt classes : [] modified : Mon Mar 23 12:32:52 2009 name servers : ['<<inherit>>'] name servers search : ['<<inherit>>'] netboot enabled? : True owners : ['admin'] server : <<inherit>> template files : {} virt cpus : <<inherit>> virt file size : <<inherit>> virt path : <<inherit>> virt ram : <<inherit>> virt type : <<inherit>> power type : ipmitool power address : power user : power password : power id : interface : eth0 mac address : 00:16:3E:59:16:91 bonding : master bonding_master : bonding_opts : bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1 is static? : True ip address : 192.168.11.4 subnet : 255.255.255.0 static routes : [] dns name : virt02.linux.lab.xxxxxxxx.com dhcp tag : virt bridge : xenbr0 interface : eth1 mac address : 00:16:3e:5b:bb:05 bonding : slave bonding_master : eth0 bonding_opts : is static? : True ip address : subnet : static routes : [] dns name : dhcp tag : virt bridge : xenbr0
am i missing something blindingly obvious ??
thanks
Tom Brown wrote:
Tom Brown wrote:
Yes. That box is used to specify bonding options in modprobe.conf
i dont seem to quite be able to get this going - in the ks this is what is shown
echo "# Cobbler generated non-physical interface" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DEVICE=eth0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 cat >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 << EOF BONDING_OPTS="bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1" EOF echo "ONPARENT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "BOOTPROTO=static" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "IPADDR=192.168.11.4" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "NETMASK=255.255.255.0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DNS1=<<inherit>>" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 # End configuration for eth0
and
echo "DEVICE=eth1" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "HWADDR=00:16:3E:5B:BB:05" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "ONBOOT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "SLAVE=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "MASTER=eth0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "HOTPLUG=no" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "BOOTPROTO=none" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "DNS1=<<inherit>>" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 # End configuration for eth1
and modprobe.conf looks like
options bonding max_bonds=1 alias eth1 xennet alias eth0 bonding
my system report for this machine is as follows
# cobbler system report virt02 system : virt02 profile : CentOS-5.2-xen-x86_64 comment : created : Thu Mar 12 11:00:37 2009 gateway : 192.168.11.1 hostname : virt02.linux.lab.xxxxxxxx.com image : kernel options : {'ip': '192.168.11.4', 'netmask': '255.255.255.0', 'acpi': 'False', 'dns': '192.168.11.1', 'gateway': '192.168.11.1'} kernel options post : {} kickstart : <<inherit>> ks metadata : {'nameserver': '192.168.11.1'} mgmt classes : [] modified : Mon Mar 23 12:32:52 2009 name servers : ['<<inherit>>'] name servers search : ['<<inherit>>'] netboot enabled? : True owners : ['admin'] server : <<inherit>> template files : {} virt cpus : <<inherit>> virt file size : <<inherit>> virt path : <<inherit>> virt ram : <<inherit>> virt type : <<inherit>> power type : ipmitool power address : power user : power password : power id : interface : eth0 mac address : 00:16:3E:59:16:91 bonding : master bonding_master : bonding_opts : bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1 is static? : True ip address : 192.168.11.4 subnet : 255.255.255.0 static routes : [] dns name : virt02.linux.lab.xxxxxxxx.com dhcp tag : virt bridge : xenbr0 interface : eth1 mac address : 00:16:3e:5b:bb:05 bonding : slave bonding_master : eth0 bonding_opts : is static? : True ip address : subnet : static routes : [] dns name : dhcp tag : virt bridge : xenbr0
am i missing something blindingly obvious ??
thanks
i should mention that this was done with the web gui so perhaps the CLI is better for this sort of thing?
thanks
You'll want to set your eth0 and eth1 to bonding "slave", and create a new interface "bond0", which you set to master, and set your bonding options on. You should then be good to go.
-Jasper
Jasper Capel wrote:
You'll want to set your eth0 and eth1 to bonding "slave", and create a new interface "bond0", which you set to master, and set your bonding options on. You should then be good to go.
not quite ....
usr/lib/python2.4/site-packages/pykickstart/parser.py", line 1124, in readKickstart
self.readKickstart (args[1]) <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen File "/usr/lib/python2.4/site-packages/pykickstart/parser.py", line 1071, in readKickstart
fh = open(file)
IOError: [Errno 2] No such file or directory: '/tmp/pre_install_network_config' install exited abnormally [1/1]
sending termination signals...done
sending kill signals...done disabling swap... unmounting filesystems... /mnt/runtime done
disabling /dev/loop0 /proc done /dev/pts done /sys done
/tmp/ramfs done
/selinux done you may safely reboot your system
thats the traceback from the console
and this is the system report for the network on that box
interface : bond0 mac address : bonding : master bonding_master : bonding_opts : mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1 is static? : True ip address : 192.168.11.4 subnet : 255.255.255.0 static routes : [] dns name : dhcp tag : virt bridge : xenbr0 interface : eth0 mac address : 00:16:3E:59:16:91 bonding : slave bonding_master : bonding_opts : is static? : True ip address : subnet : static routes : [] dns name : dhcp tag : virt bridge : xenbr0 interface : eth1 mac address : 00:16:3e:5b:bb:05 bonding : slave bonding_master : eth0 bonding_opts : is static? : True ip address : subnet : static routes : [] dns name : dhcp tag : virt bridge : xenbr0
which looks OK i think
usr/lib/python2.4/site-packages/pykickstart/parser.py", line 1124, in readKickstart
self.readKickstart (args[1]) <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen File "/usr/lib/python2.4/site-packages/pykickstart/parser.py", line 1071, in readKickstart
fh = open(file)
IOError: [Errno 2] No such file or directory: '/tmp/pre_install_network_config' install exited abnormally [1/1]
sending termination signals...done
sending kill signals...done disabling swap... unmounting filesystems... /mnt/runtime done
disabling /dev/loop0 /proc done /dev/pts done /sys done
/tmp/ramfs done
/selinux done you may safely reboot your system
not sure what happened but i retried this install and it worked this time so will investigate more but so far looks better
thanks
You'll want to set your eth0 and eth1 to bonding "slave", and create a new interface "bond0", which you set to master, and set your bonding options on. You should then be good to go.
looking better i think
# cat ifcfg-bond0 ifcfg-eth* :::::::::::::: ifcfg-bond0 :::::::::::::: # Cobbler generated non-physical interface DEVICE=bond0 BONDING_OPTS="mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1" ONPARENT=yes BOOTPROTO=static IPADDR=192.168.11.4 NETMASK=255.255.255.0 DNS1=<<inherit>> :::::::::::::: ifcfg-eth0 :::::::::::::: DEVICE=eth0 HWADDR=00:16:3E:59:16:91 ONBOOT=yes SLAVE=yes MASTER=bond0 HOTPLUG=no BOOTPROTO=none DNS1=<<inherit>> :::::::::::::: ifcfg-eth1 :::::::::::::: DEVICE=eth1 HWADDR=00:16:3E:5B:BB:05 ONBOOT=yes SLAVE=yes MASTER=bond0 HOTPLUG=no BOOTPROTO=none DNS1=<<inherit>>
networking does not work though and i wonder at the moment bond0 does not have a mac set but eth0 and eth1 do - Should i attach a mac of eth0 to bond0 and remove mac's from the other interfaces or should i leave it so bon0 has no mac in cobbler and let it inherit from eth0 or eth1 ?
thanks
The mac addresses are in the correct places, bond0 should not have a mac as it is not an actual physical interface. Your ifcfg-bond0 should have an ONBOOT=yes so that the init script knows to start it on startup.
The DNS1=<<inherit>> line looks like a bug also that should be reported.
On Mon, Mar 23, 2009 at 10:59 AM, Tom Brown tom@ng23.net wrote:
You'll want to set your eth0 and eth1 to bonding "slave", and create a new interface "bond0", which you set to master, and set your bonding options on. You should then be good to go.
looking better i think
# cat ifcfg-bond0 ifcfg-eth* :::::::::::::: ifcfg-bond0 :::::::::::::: # Cobbler generated non-physical interface DEVICE=bond0 BONDING_OPTS="mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1" ONPARENT=yes BOOTPROTO=static IPADDR=192.168.11.4 NETMASK=255.255.255.0 DNS1=<<inherit>> :::::::::::::: ifcfg-eth0 :::::::::::::: DEVICE=eth0 HWADDR=00:16:3E:59:16:91 ONBOOT=yes SLAVE=yes MASTER=bond0 HOTPLUG=no BOOTPROTO=none DNS1=<<inherit>> :::::::::::::: ifcfg-eth1 :::::::::::::: DEVICE=eth1 HWADDR=00:16:3E:5B:BB:05 ONBOOT=yes SLAVE=yes MASTER=bond0 HOTPLUG=no BOOTPROTO=none DNS1=<<inherit>>
networking does not work though and i wonder at the moment bond0 does not have a mac set but eth0 and eth1 do - Should i attach a mac of eth0 to bond0 and remove mac's from the other interfaces or should i leave it so bon0 has no mac in cobbler and let it inherit from eth0 or eth1 ?
thanks _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
On Mon, 23 Mar 2009 12:54:20 +0000, Tom Brown tom@ng23.net wrote:
Tom Brown wrote:
Yes. That box is used to specify bonding options in modprobe.conf
i dont seem to quite be able to get this going - in the ks this is what is shown
echo "# Cobbler generated non-physical interface" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DEVICE=eth0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 cat >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 << EOF BONDING_OPTS="bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1" EOF echo "ONPARENT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "BOOTPROTO=static" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "IPADDR=192.168.11.4" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "NETMASK=255.255.255.0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DNS1=<<inherit>>" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 # End configuration for eth0
and
echo "DEVICE=eth1" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "HWADDR=00:16:3E:5B:BB:05" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "ONBOOT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "SLAVE=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "MASTER=eth0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "HOTPLUG=no" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "BOOTPROTO=none" >>
/etc/sysconfig/network-scripts/cobbler/ifcfg-eth1
echo "DNS1=<<inherit>>" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 # End configuration for eth1
and modprobe.conf looks like
options bonding max_bonds=1 alias eth1 xennet alias eth0 bonding
my system report for this machine is as follows
# cobbler system report virt02 system : virt02 profile : CentOS-5.2-xen-x86_64 comment : created : Thu Mar 12 11:00:37 2009 gateway : 192.168.11.1 hostname : virt02.linux.lab.xxxxxxxx.com image : kernel options : {'ip': '192.168.11.4', 'netmask': '255.255.255.0', 'acpi': 'False', 'dns': '192.168.11.1', 'gateway': '192.168.11.1'} kernel options post : {} kickstart : <<inherit>> ks metadata : {'nameserver': '192.168.11.1'} mgmt classes : [] modified : Mon Mar 23 12:32:52 2009 name servers : ['<<inherit>>'] name servers search : ['<<inherit>>'] netboot enabled? : True owners : ['admin'] server : <<inherit>> template files : {} virt cpus : <<inherit>> virt file size : <<inherit>> virt path : <<inherit>> virt ram : <<inherit>> virt type : <<inherit>> power type : ipmitool power address : power user : power password : power id : interface : eth0 mac address : 00:16:3E:59:16:91 bonding : master bonding_master : bonding_opts : bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1 is static? : True ip address : 192.168.11.4 subnet : 255.255.255.0 static routes : [] dns name : virt02.linux.lab.xxxxxxxx.com dhcp tag : virt bridge : xenbr0 interface : eth1 mac address : 00:16:3e:5b:bb:05 bonding : slave bonding_master : eth0 bonding_opts : is static? : True ip address : subnet : static routes : [] dns name : dhcp tag : virt bridge : xenbr0
am i missing something blindingly obvious ??
thanks
I think that was my fault :/ It looks like the post network configuration script puts the BONDING_OPTS variable in each interface, not in modprobe.conf (that's where I assumed it went, as that's how I always configure it on systems).
After building a system, you should be able to verify the settings it's using by looking at /proc/net/bonding/bond#
Leave out the "bond0" and you will be fine. Cobbler puts the bonding opts in the interface config file instead of in the modprobe.conf
On Mon, Mar 23, 2009 at 8:59 AM, James Cammarata jimi@sngx.net wrote:
On Mon, 23 Mar 2009 12:54:20 +0000, Tom Brown tom@ng23.net wrote:
Tom Brown wrote:
Yes. That box is used to specify bonding options in modprobe.conf
i dont seem to quite be able to get this going - in the ks this is what is shown
echo "# Cobbler generated non-physical interface" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DEVICE=eth0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 cat >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 << EOF BONDING_OPTS="bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1" EOF echo "ONPARENT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "BOOTPROTO=static" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "IPADDR=192.168.11.4" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "NETMASK=255.255.255.0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 echo "DNS1=<<inherit>>" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth0 # End configuration for eth0
and
echo "DEVICE=eth1" > /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "HWADDR=00:16:3E:5B:BB:05" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "ONBOOT=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "SLAVE=yes" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "MASTER=eth0" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "HOTPLUG=no" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 echo "BOOTPROTO=none" >>
/etc/sysconfig/network-scripts/cobbler/ifcfg-eth1
echo "DNS1=<<inherit>>" >> /etc/sysconfig/network-scripts/cobbler/ifcfg-eth1 # End configuration for eth1
and modprobe.conf looks like
options bonding max_bonds=1 alias eth1 xennet alias eth0 bonding
my system report for this machine is as follows
# cobbler system report virt02 system : virt02 profile : CentOS-5.2-xen-x86_64 comment : created : Thu Mar 12 11:00:37 2009 gateway : 192.168.11.1 hostname : virt02.linux.lab.xxxxxxxx.com image : kernel options : {'ip': '192.168.11.4', 'netmask': '255.255.255.0', 'acpi': 'False', 'dns': '192.168.11.1', 'gateway': '192.168.11.1'} kernel options post : {} kickstart : <<inherit>> ks metadata : {'nameserver': '192.168.11.1'} mgmt classes : [] modified : Mon Mar 23 12:32:52 2009 name servers : ['<<inherit>>'] name servers search : ['<<inherit>>'] netboot enabled? : True owners : ['admin'] server : <<inherit>> template files : {} virt cpus : <<inherit>> virt file size : <<inherit>> virt path : <<inherit>> virt ram : <<inherit>> virt type : <<inherit>> power type : ipmitool power address : power user : power password : power id : interface : eth0 mac address : 00:16:3E:59:16:91 bonding : master bonding_master : bonding_opts : bond0 mode=1 primary=eth0 arp_interval=60 arp_ip_target=192.168.11.1 is static? : True ip address : 192.168.11.4 subnet : 255.255.255.0 static routes : [] dns name : virt02.linux.lab.xxxxxxxx.com dhcp tag : virt bridge : xenbr0 interface : eth1 mac address : 00:16:3e:5b:bb:05 bonding : slave bonding_master : eth0 bonding_opts : is static? : True ip address : subnet : static routes : [] dns name : dhcp tag : virt bridge : xenbr0
am i missing something blindingly obvious ??
thanks
I think that was my fault :/ It looks like the post network configuration script puts the BONDING_OPTS variable in each interface, not in modprobe.conf (that's where I assumed it went, as that's how I always configure it on systems).
After building a system, you should be able to verify the settings it's using by looking at /proc/net/bonding/bond#
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler@lists.fedorahosted.org