Bug#739721: systemd: NFS shares are not automatically mounted during boot

Michael Biebl biebl at debian.org
Fri Oct 31 21:50:18 GMT 2014


Am 31.10.2014 um 01:30 schrieb Jim Barber:
> Package: systemd
> Version: 215-5+b1
> 
> Hi.
> 
> I have a similar problem, and I think it belongs in this bug report.
> On boot, NFS file systems used to work fine.
> It was after upgrading from initscripts version 2.88dsf-53.4 to 2.88dsf-57 that all my NFS mounts no longer mount on boot.
> I was going to report the bug against that package but the change log for it states:
> 
> Version 2.88dsf-55.1 says:
> 
>   * Skip the mountnfs hook when being triggered by the networking SysV init
>     script and instead use the systemd built-in mechanisms to mount remote
>     file systems.
>     This avoids a deadlock caused by the rpcbind SysV init script depending
>     on $network and the $network LSB facility being provided by the networking
>     SysV init script. (Closes: #746587)
> 
> So I figured it is likely to be systemd now...
> 
> Once I log in and run a 'mount -a' all NFS file systems are mounted just fine.
> 
> I have done a number of boots on this system and also another system and they consistently fail to mount NFS after the upgrade above.
> This system I am reporting about is an amd64 architecture box, and the other is running an i386 version of Debian.
> 
> Note that I have a couple of other NFS mounts too, all of which fail in the same way.
> Two of the mounts from come my main Linux server, and the other mount comes from a Synology NAS.
> 
> Looking at one of my filesystems I see:
> 
>    $ systemctl status -l usr-local-share.mount 
>    ● usr-local-share.mount - /usr/local/share
>       Loaded: loaded (/etc/fstab)
>       Active: failed (Result: exit-code) since Fri 2014-10-31 07:51:39 AWST; 5min ago
>        Where: /usr/local/share
>         What: gecko:/usr/local/share
>         Docs: man:fstab(5)
>               man:systemd-fstab-generator(8)
>      Process: 341 ExecMount=/bin/mount -n gecko:/usr/local/share /usr/local/share -t nfs -o _netdev,noatime,nolock,bg,rsize=8192,wsize=8192 (code=exited, status=32)
> 
>    Oct 31 07:51:39 trex systemd[1]: usr-local-share.mount mount process exited, code=exited status=32
>    Oct 31 07:51:39 trex mount[341]: mount.nfs: Network is unreachable
>    Oct 31 07:51:39 trex systemd[1]: Failed to mount /usr/local/share.
>    Oct 31 07:51:39 trex systemd[1]: Unit usr-local-share.mount entered failed state.
> 
> This seems to suggest my network wasn't ready.
> My network config on the host is very simple:
> 
>    $ 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
>    allow-hotplug eth0

Try changing that to "auto eth0"


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141031/9af8ea13/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list