← Back to team overview

touch-packages team mailing list archive

[Bug 1523028] [NEW] Failed to mount NFS/remote filesystems from /etc/fstab on boot

 

Public bug reported:

Remote NFS filesystems defined in /etc/fstab are not mounted during the
boot process. Once the boot process is finished mounting from the
command line via mount or systemctl works just fine.

$ tail -2 /etc/fstab
# Media Library
disk.lan:/volume1/Library             /media/Library  nfs     rw,async,auto,nfsvers=3   0       0

$ systemctl status media-Library.mount
● media-Library.mount - /media/Library
   Loaded: loaded (/etc/fstab)
   Active: failed (Result: exit-code) since Fre 2015-12-04 15:16:55 CET; 10h ago
    Where: /media/Library
     What: disk.lan:/volume1/Library
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)

Dez 04 15:16:55 localhost systemd[1]: Mounting /media/Library...
Dez 04 15:16:55 localhost mount[730]: mount.nfs: Failed to resolve server disk.lan: Temporary failure in n...lution
Dez 04 15:16:55 localhost systemd[1]: media-Library.mount: Mount process exited, code=exited status=32
Dez 04 15:16:55 localhost systemd[1]: Failed to mount /media/Library.
Dez 04 15:16:55 localhost systemd[1]: media-Library.mount: Unit entered failed state.

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

$ 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.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: systemd 225-1ubuntu9
ProcVersionSignature: Ubuntu 4.2.0-19.23-generic 4.2.6
Uname: Linux 4.2.0-19-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: KDE
Date: Sat Dec  5 01:48:25 2015
InstallationDate: Installed on 2015-11-26 (8 days ago)
InstallationMedia: Kubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
MachineType: Shuttle Inc. SH55J
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-19-generic root=UUID=e751f86f-bb75-4ec0-bf6e-01b00a10945e ro quiet splash vt.handoff=7
SourcePackage: systemd
UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/01/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 080015
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: SH55J
dmi.board.vendor: Shuttle Inc.
dmi.board.version: V10
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr080015:bd09/01/2010:svnShuttleInc.:pnSH55J:pvrV10:rvnShuttleInc.:rnSH55J:rvrV10:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: SH55J
dmi.product.version: V10
dmi.sys.vendor: Shuttle Inc.

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug wily

-- 
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/1523028

Title:
  Failed to mount NFS/remote filesystems from /etc/fstab on boot

Status in systemd package in Ubuntu:
  New

Bug description:
  Remote NFS filesystems defined in /etc/fstab are not mounted during
  the boot process. Once the boot process is finished mounting from the
  command line via mount or systemctl works just fine.

  $ tail -2 /etc/fstab
  # Media Library
  disk.lan:/volume1/Library             /media/Library  nfs     rw,async,auto,nfsvers=3   0       0

  $ systemctl status media-Library.mount
  ● media-Library.mount - /media/Library
     Loaded: loaded (/etc/fstab)
     Active: failed (Result: exit-code) since Fre 2015-12-04 15:16:55 CET; 10h ago
      Where: /media/Library
       What: disk.lan:/volume1/Library
       Docs: man:fstab(5)
             man:systemd-fstab-generator(8)

  Dez 04 15:16:55 localhost systemd[1]: Mounting /media/Library...
  Dez 04 15:16:55 localhost mount[730]: mount.nfs: Failed to resolve server disk.lan: Temporary failure in n...lution
  Dez 04 15:16:55 localhost systemd[1]: media-Library.mount: Mount process exited, code=exited status=32
  Dez 04 15:16:55 localhost systemd[1]: Failed to mount /media/Library.
  Dez 04 15:16:55 localhost systemd[1]: media-Library.mount: Unit entered failed state.

  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

  $ 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.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: systemd 225-1ubuntu9
  ProcVersionSignature: Ubuntu 4.2.0-19.23-generic 4.2.6
  Uname: Linux 4.2.0-19-generic x86_64
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Sat Dec  5 01:48:25 2015
  InstallationDate: Installed on 2015-11-26 (8 days ago)
  InstallationMedia: Kubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  MachineType: Shuttle Inc. SH55J
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-19-generic root=UUID=e751f86f-bb75-4ec0-bf6e-01b00a10945e ro quiet splash vt.handoff=7
  SourcePackage: systemd
  UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 09/01/2010
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 080015
  dmi.board.asset.tag: To Be Filled By O.E.M.
  dmi.board.name: SH55J
  dmi.board.vendor: Shuttle Inc.
  dmi.board.version: V10
  dmi.chassis.asset.tag: To Be Filled By O.E.M.
  dmi.chassis.type: 3
  dmi.chassis.vendor: To Be Filled By O.E.M.
  dmi.chassis.version: To Be Filled By O.E.M.
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr080015:bd09/01/2010:svnShuttleInc.:pnSH55J:pvrV10:rvnShuttleInc.:rnSH55J:rvrV10:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
  dmi.product.name: SH55J
  dmi.product.version: V10
  dmi.sys.vendor: Shuttle Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1523028/+subscriptions


Follow ups