Your message dated Fri, 21 Feb 2025 15:18:03 +0000
with message-id <[email protected]>
and subject line Re: Network filesystems not mounted at boot
has caused the Debian Bug report #540291,
regarding initscripts: fails to mount NFS shares at boot
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
540291: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540291
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
It is impossible to disentagle these reports which have been lumped together but
have incomplete information and may not have had the same underlying cause

I think that recent if-up.d/nfsroot works as advertised.

Please note that you must use auto (rather than allow-hotplug) for the relevant
/etc/network/interfaces.

ASYNCMOUNTNFS=no in rcS(5) is useful if you boot with nfsroot or ip on the
kernel command line. That will become the default in these cases when the patch
in #434570 is uploaded.

So, I am going to close all of these remaining reports.

If there are still outstanding issues, please open new issues and we can start
again with a clean slate.

Thanks

Mark

--- End Message ---

Reply via email to