nfs no longer mounted at boot with systemd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
In Progress
|
High
|
Martin Pitt |
Bug Description
I updated my vivid laptop today, and now boot with systemd by default.
Unfortunately, my nfs mount no longer mounts at boot.
From syslog:
Mar 9 14:38:20 mdlinux mount[866]: mount.nfs: Network is unreachable
Mar 9 14:38:20 mdlinux systemd[1]: mnt-server.mount mount process exited, code=exited status=32
Mar 9 14:38:20 mdlinux systemd[1]: Failed to mount /mnt/server.
Mar 9 14:38:20 mdlinux systemd[1]: Dependency failed for Remote File Systems.
Mar 9 14:38:20 mdlinux systemd[1]: Job remote-
Mar 9 14:38:20 mdlinux systemd[1]: Unit mnt-server.mount entered failed state.
This is happening before my network interfaces are ready:
Mar 9 14:38:21 mdlinux NetworkManager[
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: nfs-common 1:1.2.8-9ubuntu6
ProcVersionSign
Uname: Linux 3.19.0-7-generic x86_64
ApportVersion: 2.16.2-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 9 14:45:48 2015
InstallationDate: Installed on 2013-11-26 (467 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: nfs-utils
UpgradeStatus: Upgraded to vivid on 2015-03-07 (2 days ago)
I've seen this as well on my desktop. For me it was not a regression vs. upstart (there are bug reports about nfs mounts similarly not being mounted at boot under upstart in Ubuntu 14.10 and later), which is why I did not consider this a blocker for switching by default.
Looking at the systemd mount generator output on my system, I see entries such as: generator/ srv.mount fstab-generator
$ cat /run/systemd/
# Automatically generated by systemd-
[Unit] /etc/fstab man:fstab( 5) man:systemd- fstab-generator (8) remote- fs.target
SourcePath=
Documentation=
Before=
[Mount] soft,intr, async,nolock, sec=krb5i, proto=tcp
What=<server>:/
Where=/srv
Type=nfs4
Options=
$
This is notably lacking any dependency information requiring the network to be up before trying (and failing) to start the unit.
Reassigning to systemd.