Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to configure our servers to boot with an NFS-root with two bonded interfaces.

I managed to successfully set up the NFS-root with one network interface using a NFS-root enabled initrd and the following kernel parameters

root=/dev/nfs nfsroot=192.168.1.1:/nfsroot/ubuntu ip=dhcp initrd=initrd.img

I found information on how to setup bonding with NFS-root in a blog post.

As I'm using Ubuntu I had to add the bonding module to the end of /etc/initramfs-tools/modules. I build a new initrd and used the kernel parameters

root=/dev/nfs nfsroot=192.168.1.1:/nfsroot/ubuntu biosdevname=0 bond=bond0:eth0,eth1:mode=4:miimon=100:lacp-rate=1:slaves=none:xmit_hash_policy=layer3+4 ip=bond0:dhcp initrd=initrd.img

When I boot the server I get a kernel panic which is shown right after the message

ipconfig: can't parse IP address 'bond0'

Can anyone help me solve this issue?

The relevant part of the boot log can be found in this gist.

Update:

After a deep dive into the Ubuntu boot process, I figured out that there are currently two different approaches for creating initial ramdisks. Ubuntu uses the initramfs-tools and RedHat uses the newer dracut tool. The blog post I referenced is written for Fedora and the boot parameters listed for dracut are not usable for Ubuntu. As I couldn't figure out how to handle bonded interfaces with the initramfs-tools, I used dracut on Ubuntu and wrote up my findings in the blog post Installing and configuring dracut to boot Ubuntu 12.10 from an NFS-root over a VLAN tagged network using bonded interfaces.

share|improve this question
add comment

2 Answers

replace

ip=bond0:dhcp

with

ip=bootp

share|improve this answer
add comment

Try changing ip=bond0:dhcp to ip=:::::bond0:dhcp

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.