[Pkg-sysvinit-devel] Bug#540291: initscripts: fails to mount NFS shares at boot

Steve Wray steve.wray at cwa.co.nz
Thu Aug 6 22:10:23 UTC 2009


Package: initscripts
Version: 2.86.ds1-61
Severity: important


The /etc/network/if-up.d/mountnfs script appears not to give enough time after
bringing up interfaces before attempting to mount NFS shares.

At boot, messages to the effect 'no route to host' are seen.

After boot, ifdown/ifup operations mount NFS shares.

After boot mount -a will mount NFS shares.

I resolved the issue by putting a 'sleep 10' at two points in the mountnfs script thus

        if [ "$NETFS" ]
        then
                sleep 10
                mount -a -t$NETFS
        fi
        if [ "$NETDEV" ]; then
                sleep 10
                mount -a -O _netdev
        fi

The server in question is a Xen domU virtual machine.

Its Xen configuration looks like this:

kernel      = '/boot/vmlinuz-2.6.26-1-xen-686'
ramdisk     = '/boot/initrd.img-2.6.26-1-xen-686'
memory      = '256'
root        = '/dev/sda2 ro'
disk        = [
                  'phy:/dev/volumes/tec-web1-swap,sda1,w',
                  'phy:/dev/volumes/tec-web1-disk,sda2,w',
              ]
name        = 'tec-web1'
vif         = [ 'rate=20MB/s,ip=192.168.50.10,mac=00:16:3E:34:A4:70,bridge=br2' ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

The network connection to the NFS server is via Xen bridging.


-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-xen-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages initscripts depends on:
ii  debianutils                  2.30        Miscellaneous utilities specific t
ii  e2fsprogs                    1.41.3-1    ext2/ext3/ext4 file system utiliti
ii  libc6                        2.7-18      GNU C Library: Shared libraries
ii  lsb-base                     3.2-20      Linux Standard Base 3.2 init scrip
ii  mount                        2.13.1.1-1  Tools for mounting and manipulatin
ii  sysvinit-utils               2.86.ds1-61 System-V-like utilities

Versions of packages initscripts recommends:
pn  psmisc                        <none>     (no description available)

initscripts suggests no packages.

-- no debconf information





More information about the Pkg-sysvinit-devel mailing list