← Back to team overview

touch-packages team mailing list archive

[Bug 1515446] Re: NFS shares in FSTAB no longer mount at boot

 

Opening a task on systemd as well for this.

When called early in boot, mount.nfs may fail because of any number of
problems with the network.  In this case, it appears it's being called
by systemd before /etc/resolv.conf has been set up, resulting in a
temporary DNS failure.  There is no way for mount.nfs to work when
invoked at this point in the boot.

So either systemd needs to more finely control the timing of the mount
call so that it definitely happens only after the network is up
(including /etc/resolv.conf configuration), or it needs to handle
retrying the mount in the case of a temporary failure.  (The latter is
what mountall did in Ubuntu 14.10 and earlier.)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1515446

Title:
  NFS shares in FSTAB no longer mount at boot

Status in nfs-utils package in Ubuntu:
  New
Status in systemd package in Ubuntu:
  New

Bug description:
  After a fresh install of 15.10, nfs shares no longer mount on boot.
  I'm using the same line to mount as I did in 14.04 prior:

  <server>:/share  /mnt/share  ntfs4  _netdev, auto 0 0

  This line worked just fine in 14.04, and 14.10 on my laptop, to mount
  the shares at boot.

  Manual mounting after boot works fine.  Systemctl shows a name
  resolution failure (see below)

  lsb_release -rd
  Description:    Ubuntu 15.10
  Release:        15.10

  lsb_release -rd
  Description:    Ubuntu 15.10
  Release:        15.10
  bjwest@razorback:~$ apt-cache policy nfs-common
  nfs-common:
    Installed: 1:1.2.8-9ubuntu10
    Candidate: 1:1.2.8-9ubuntu10
    Version table:

   *** 1:1.2.8-9ubuntu10 0
          500 http://us.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
          100 /var/lib/dpkg/status

  systemctl status mnt-share.mount
  ● mnt-share.mount - /mnt/share
     Loaded: loaded (/etc/fstab)
     Active: failed (Result: exit-code) since Wed 2015-11-11 18:58:13 CST; 2min 15s ago
      Where: /mnt/share
       What: hog:/share
       Docs: man:fstab(5)
             man:systemd-fstab-generator(8)
    Process: 731 ExecMount=/bin/mount hog:/share /mnt/share -t nfs4 -o _netdev (code=exited, status=32)

  Nov 11 18:58:13 razorback systemd[1]: Mounting /mnt/share...
  Nov 11 18:58:13 razorback mount[731]: mount.nfs4: Failed to resolve server hog: Temporary failure in name resolution
  Nov 11 18:58:13 razorback systemd[1]: mnt-share.mount: Mount process exited, code=exited status=32
  Nov 11 18:58:13 razorback systemd[1]: Failed to mount /mnt/share.
  Nov 11 18:58:13 razorback systemd[1]: mnt-share.mount: Unit entered failed state.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1515446/+subscriptions