LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-28-2008, 02:04 PM   #1
bajones
LQ Newbie
 
Registered: May 2008
Posts: 27

Rep: Reputation: 15
kickstart with bonded interface


Does anyone have any suggestions as far as how to write a kickstart file that will create a bonded interface? The sample kickstart files that I have all include a static IP address, i.e.

network --device eth0 --bootproto static --ip 10.10.10.10

I haven't been able to find anything that shows how to write a kickstart file that will create a bond0 interface from eth0 and eth1.
 
Old 07-28-2008, 02:19 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
I don't think it's supported. Why would you want to bond during the kickstart? It's not technically going to speed up the connection if you know how bond works on Ethernet devices in Linux.

I mean, if you're really worried one NIC will fail during the installation, then you might want to buy better hardware.

A typical kickstart installation for me only takes like 10-20 minutes, depending on what I install and postscripts.
 
Old 07-28-2008, 03:45 PM   #3
bajones
LQ Newbie
 
Registered: May 2008
Posts: 27

Original Poster
Rep: Reputation: 15
I want the kickstart script to create the bonded interface, so that the newly built server will have a bonded interface when it is running. My understanding is that I should be able to completely configure the new server via the kickstart script, except I don't know how to write the kickstart script to do this.
 
Old 07-28-2008, 03:57 PM   #4
GeekBoi
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
Try the post script

This would need to be done in a post script that anaconda calls after the system has been installed and before the reboot is forced to boot the new system. You would need to cat the bonding module configuration info into either /etc/modules.conf or /etc/modprobe.conf depending on the version of RedHat/CentOS you are installing. Then an /etc/sysconfig/network-scripts/ifcfg-bond0 file will need to be created with your desired info. This will be more tricky as you need to set an IP in here that is unique. Then you need to have the script change or over write /etc/sysconfig/network-scripts/ifcfg-eth0 and ifcfg-eth1 so that they point to the bond interface as the master.

All in all it has been easier for us to just manually create each bond on our servers than to try and program this out in a script.

Charlie
 
Old 07-28-2008, 03:58 PM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by bajones View Post
I want the kickstart script to create the bonded interface, so that the newly built server will have a bonded interface when it is running. My understanding is that I should be able to completely configure the new server via the kickstart script, except I don't know how to write the kickstart script to do this.
I think you'd want to achieve this with some post install scripts as nothing I've found supports creating bonded ethernet during the actual kickstart.
 
Old 07-29-2008, 11:30 AM   #6
bajones
LQ Newbie
 
Registered: May 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by trickykid View Post
I think you'd want to achieve this with some post install scripts as nothing I've found supports creating bonded ethernet during the actual kickstart.
thanks, that makes sense. I was thinking that I needed to set up the network stuff before getting to the post install scripts.
 
Old 07-29-2008, 11:43 AM   #7
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by bajones View Post
thanks, that makes sense. I was thinking that I needed to set up the network stuff before getting to the post install scripts.
Well, you can, it just doesn't support configuring bonded interfaces during the kickstart unless you run scripts in the post scripts.

You're probably better off just using DHCP to kickstart and let your post scripts do the bonding magic.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does IPSec work with bonded interfaces? xnomad Linux - Networking 1 12-17-2007 02:20 AM
Losing packets on bonded ethernet channels Mugsy69 Linux - Networking 2 10-20-2007 10:16 PM
bonded interfaces 2x slower than one bedge Linux - Networking 1 03-06-2007 04:55 PM
system locks up when bringing down bonded network interface BrianK Linux - Hardware 1 02-20-2007 10:09 PM
2 dynamic address cable modems, bonded matthewlking Linux - Networking 6 04-19-2006 10:18 AM


All times are GMT -5. The time now is 12:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration