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

Jim Barber jim.barber at primaryhealthcare.com.au
Mon Nov 3 00:20:17 GMT 2014


> Am 31.10.2014 um 01:30 schrieb Jim Barber:
> > 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"

Hi.

I have made the change to my network configuration but there is no change in behaviour.
The result from the systemctl status command is still the same.

    $ 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 10.1.1.2/24
            gateway 10.1.1.1
            ethernet-wol g

    # This is an autoconfigured IPv6 interface
    iface eth0 inet6 auto

And:

    $ systemctl status -l usr-local-share.mount 
    ● usr-local-share.mount - /usr/local/share
       Loaded: loaded (/etc/fstab)
       Active: failed (Result: exit-code) since Mon 2014-11-03 08:12:37 AWST; 20s ago
        Where: /usr/local/share
         What: gecko:/usr/local/share
         Docs: man:fstab(5)
               man:systemd-fstab-generator(8)
      Process: 394 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)

    Nov 03 08:12:37 trex mount[394]: mount.nfs: Network is unreachable
    Nov 03 08:12:37 trex systemd[1]: usr-local-share.mount mount process exited, code=exited status=32
    Nov 03 08:12:37 trex systemd[1]: Failed to mount /usr/local/share.
    Nov 03 08:12:37 trex systemd[1]: Unit usr-local-share.mount entered failed state.

On my other i386 system that exhibits the same problem I was already using the 'auto' rather than 'allow-hotplug' directive in the /etc/network/interfaces file.

None of my NFS file systems are mounted after boot, but once logged in I can manually mount them.

Regards,

Jim.



More information about the Pkg-systemd-maintainers mailing list