[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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.

Matt


-- Package-specific info:
-- /proc/cmdline
root=/dev/md0 ro

-- /proc/filesystems
	cramfs
	ext3

-- lsmod
Module                  Size  Used by
button                  6672  0 
ac                      5188  0 
battery                 9636  0 
ipv6                  226272  30 
nls_iso8859_1           4256  1 
cifs                  190684  1 
dm_snapshot            15552  0 
dm_mirror              19152  0 
dm_mod                 50232  2 dm_snapshot,dm_mirror
loop                   15048  0 
i2c_i801                7468  0 
i2c_core               19680  1 i2c_i801
parport_pc             32132  0 
parport                33256  1 parport_pc
psmouse                35016  0 
serio_raw               6660  0 
evdev                   9088  0 
floppy                 53156  0 
pcspkr                  3072  0 
rtc                    12372  0 
ext3                  119240  4 
jbd                    52456  1 ext3
mbcache                 8356  1 ext3
raid1                  21056  5 
md_mod                 70388  6 raid1
ide_generic             1408  0 [permanent]
sd_mod                 19040  12 
ata_piix               13896  10 
libata                 89396  1 ata_piix
scsi_mod              124168  2 sd_mod,libata
generic                 4868  0 [permanent]
ide_core              110504  2 ide_generic,generic
ehci_hcd               28136  0 
uhci_hcd               21164  0 
e1000                 108832  0 
usbcore               112644  3 ehci_hcd,uhci_hcd
thermal                13608  0 
processor              28840  1 thermal
fan                     4804  0 
bonding                71528  0 

-- 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



Reply to: