touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #122567
[Bug 1515446] Re: NFS shares in FSTAB no longer mount at boot
This bug has not been tagged before as 'wily' and unfortunately I have
created a duplicate bug report of this one, not being able to find it
earlier.
A few more observations from my original bug report:
It looks like the network is not up when the mounting is done however
systemd dependencies as well as unit files generated from /etc/fstab
seem to be OK
$ tail -2 /etc/fstab
# Media Library
disk.lan:/volume1/Library /media/Library nfs rw,async,auto,nfsvers=3 0 0
$ systemd-analyze dot media-Library.mount
digraph systemd {
"remote-fs.target"->"media-Library.mount" [color="green"];
"remote-fs.target"->"media-Library.mount" [color="black"];
"media-Library.mount"->"network-online.target" [color="green"];
"media-Library.mount"->"remote-fs-pre.target" [color="green"];
"media-Library.mount"->"systemd-journald.socket" [color="green"];
"media-Library.mount"->"system.slice" [color="green"];
"media-Library.mount"->"network.target" [color="green"];
"media-Library.mount"->"-.mount" [color="green"];
"media-Library.mount"->"-.mount" [color="black"];
"media-Library.mount"->"system.slice" [color="grey66"];
"media-Library.mount"->"network-online.target" [color="grey66"];
"media-Library.mount"->"umount.target" [color="red"];
"umount.target"->"media-Library.mount" [color="green"];
"umount.target"->"media-Library.mount" [color="red"];
}
Color legend: black = Requires
dark blue = Requisite
dark grey = Wants
red = Conflicts
green = After
Despite the correct dependency between "media-Library.mount" and the
"network-online.target" looking at the journal log reveals that the
network is not yet started when the "network-online.target" is reached.
$ journalctl --boot _COMM=systemd _COMM=NetworkManager
Dez 04 15:16:55 localhost systemd[1]: Starting Hostname Service...
Dez 04 15:16:55 localhost systemd[1]: Started Hostname Service.
Dez 04 15:16:55 localhost NetworkManager[693]: <info> NetworkManager (version 1.0.4) is starting...
Dez 04 15:16:55 localhost NetworkManager[693]: <info> Read config: /etc/NetworkManager/NetworkManager.conf
Dez 04 15:16:55 localhost systemd[1]: Started Network Manager.
Dez 04 15:16:55 localhost NetworkManager[693]: <info> VPN: loaded org.freedesktop.NetworkManager.pptp
Dez 04 15:16:55 localhost systemd[1]: Reached target Network.
Dez 04 15:16:55 localhost NetworkManager[693]: <info> DNS: loaded plugin dnsmasq
Dez 04 15:16:55 localhost systemd[1]: Reached target Network is Online.
Dez 04 15:16:55 localhost systemd[1]: Mounting /media/Library...
Dez 04 15:16:55 localhost systemd[1]: Starting /etc/rc.local Compatibility...
Dez 04 15:16:55 localhost NetworkManager[693]: <info> init!
Dez 04 15:16:55 localhost NetworkManager[693]: <info> update_system_hostname
Dez 04 15:16:55 localhost systemd[1]: Started /etc/rc.local Compatibility.
Dez 04 15:16:55 localhost NetworkManager[693]: <info> interface-parser: parsing file /etc/network/interfaces
Dez 04 15:16:55 localhost systemd[1]: Started Authenticate and Authorize Users to Run Privileged Tasks.
Dez 04 15:16:55 localhost NetworkManager[693]: <info> interface-parser: finished parsing file /etc/network/inter
Dez 04 15:16:55 localhost NetworkManager[693]: <info> management mode: unmanaged
Dez 04 15:16:55 localhost NetworkManager[693]: <info> devices added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:0
Dez 04 15:16:55 localhost NetworkManager[693]: <info> device added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:02
Dez 04 15:16:55 localhost NetworkManager[693]: <info> devices added (path: /sys/devices/virtual/net/lo, iface: lo)
Dez 04 15:16:55 localhost NetworkManager[693]: <info> device added (path: /sys/devices/virtual/net/lo, iface: lo): no
Dez 04 15:16:55 localhost NetworkManager[693]: <info> end _init.
The interesting sequence cut from the log above
...
Dez 04 15:16:55 localhost systemd[1]: Reached target Network is Online.
Dez 04 15:16:55 localhost systemd[1]: Mounting /media/Library...
...
Dez 04 15:16:55 localhost NetworkManager[693]: <info> init!
...
Dez 04 15:16:55 localhost NetworkManager[693]: <info> end _init.
--
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:
Confirmed
Status in systemd package in Ubuntu:
Confirmed
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