Bug#495946: initramfs-tools: potential race condition between nfsmounts in fstab and network interfaces
Package: initramfs-tools
Version: 0.85i
Severity: important
On a server with three e1000-based cards, I have configured eth0 and
then bond0 which uses eth1 and eth2.
I have an NFS share that requires mounting on boot and uses the network
attached to the bonded interface.
If eth0 is listed first in the /etc/network/interfaces file, the system
tries to mount the share before bond0 is brought up and times out as a
result (although the timeout appears to be 7 minutes, not 180 seconds).
If I place the "auto bond0" statement as the first statement in the
file, the system works without issue.
This issue can be replicated using SAMBA in place of NFS and is present
after a base install with only a few more packages (such as ifenslave)
installed.
I realise that this may not be an initramfs issue, however I am unable
to track it down any further. Please feel free to move to a more
appropriate package if you think it may be required.
-- kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages initramfs-tools depends on:
ii busybox 1:1.1.3-4 Tiny utilities for small and embed
ii cpio 2.6-18.1+etch1 GNU cpio -- a program to manage ar
ii klibc-utils 1.4.34-2 small statically-linked utilities
ii module-init-tools 3.3-pre4-2 tools for managing Linux kernel mo
ii udev 0.105-4 /dev/ and hotplug management daemo
initramfs-tools recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
08-21-2008, 02:44 PM
maximilian attems
Bug#495946: initramfs-tools: potential race condition between nfsmounts in fstab and network interfaces
On Thu, Aug 21, 2008 at 03:16:06PM +0100, Matthew Macdonald-Wallace wrote:
> Package: initramfs-tools
> Version: 0.85i
> Severity: important
>
>
> On a server with three e1000-based cards, I have configured eth0 and
> then bond0 which uses eth1 and eth2.
>
> I have an NFS share that requires mounting on boot and uses the network
> attached to the bonded interface.
>
> If eth0 is listed first in the /etc/network/interfaces file, the system
> tries to mount the share before bond0 is brought up and times out as a
> result (although the timeout appears to be 7 minutes, not 180 seconds).
>
> If I place the "auto bond0" statement as the first statement in the
> file, the system works without issue.
>
> This issue can be replicated using SAMBA in place of NFS and is present
> after a base install with only a few more packages (such as ifenslave)
> installed.
>
> I realise that this may not be an initramfs issue, however I am unable
> to track it down any further. Please feel free to move to a more
> appropriate package if you think it may be required.
>
> Matt
please file relevant info, like
cat /etc/network/interfaces
cat /etc/udev/rules.d/70-persistent-net.rules
and relevant nfs setup.
--
maks
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
08-22-2008, 08:55 AM
Matthew Macdonald-Wallace
Bug#495946: initramfs-tools: potential race condition between nfsmounts in fstab and network interfaces
On Thu, 21 Aug 2008 16:44:53 +0200
maximilian attems <max@stro.at> wrote:
> please file relevant info, like
> cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 172.16.24.102
netmask 255.255.255.0
network 172.16.24.0
broadcast 172.16.24.255
gateway 172.16.24.1
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules
file. #
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.
# /etc/exports: the access control list for filesystems which may be
exported # to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
10.27.1.254 (the address that the client connects to) is provided by
Heartbeat and is a virtual IP split across bond0 on the NFS server and
another interface on another NFS server.
Please let me know if you require any further information, thanks for
the help.
M.
--
|Matthew Macdonald-Wallace
|Tiger Computing Ltd
|"The Linux Specialists"
|
|Tel: 0330 088 1511
|Web: http://www.tiger-computing.co.uk
|
|Registered in England. Company number: 3389961
|Registered address: Wyastone Business Park,
| Wyastone Leys, Monmouth, NP25 3SR
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org