You are not logged in.

#1 2012-10-20 19:32:29

freebullets
Member
Registered: 2011-11-10
Posts: 31

systemd - NFS mounted before network is up

I just made the switch to pure systemd. Everything is running smoothly except that systemd is attempting to mount my NFS share before the network is up resulting in an added 60 seconds boot time. I tried adding _netdev to my fstab, but it didn't help. Anything I can try?

/etc/fstab:

archserver:/ /mnt/server/ nfs4 defaults,user,_netdev

Relevant journalctl lines:

Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> trying to start the modem manager...
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> monitoring kernel firmware directory '/lib/firmware'.
Oct 20 13:52:24 archdesktop NetworkManager[390]: <warn> Failed to open plugin directory /usr/lib/NetworkManager: Error opening directory '/usr/lib/NetworkManager': No such file or directory
Oct 20 13:52:24 archdesktop dbus-daemon[393]: dbus[393]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Oct 20 13:52:24 archdesktop dbus[393]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Oct 20 13:52:24 archdesktop dbus-daemon[393]: dbus[393]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.bluez.service' for details.
Oct 20 13:52:24 archdesktop dbus[393]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.bluez.service' for details.
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> WiFi enabled by radio killswitch; enabled by state file
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> WWAN enabled by radio killswitch; enabled by state file
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> WiMAX enabled by radio killswitch; enabled by state file
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> Networking is enabled by state file
Oct 20 13:52:24 archdesktop NetworkManager[390]: <warn> failed to allocate link cache: (-10) Operation not supported
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth1): carrier is OFF
Oct 20 13:52:24 archdesktop systemd[1]: Started Network Manager.
Oct 20 13:52:24 archdesktop systemd[1]: Starting Network.
Oct 20 13:52:24 archdesktop systemd[1]: Reached target Network.
Oct 20 13:52:24 archdesktop systemd[1]: Starting Remote File Systems (Pre).
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth1): new Ethernet device (driver: 'b44' ifindex: 3)
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth1): exported as /org/freedesktop/NetworkManager/Devices/0
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth1): now managed
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth1): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth1): bringing up device.
Oct 20 13:52:24 archdesktop systemd[1]: Reached target Remote File Systems (Pre).
Oct 20 13:52:24 archdesktop systemd[1]: Mounting /mnt/server...
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth1): preparing device.
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth1): deactivating device (reason 'managed') [2]
Oct 20 13:52:24 archdesktop kernel: IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> Added default wired connection 'Wired connection 1' for /sys/devices/pci0000:00/0000:00:10.0/0000:04:07.0/ssb0:0/net/eth1
Oct 20 13:52:24 archdesktop NetworkManager[390]: <warn> failed to allocate link cache: (-10) Operation not supported
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth0): carrier is OFF
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth0): new Ethernet device (driver: 'skge' ifindex: 2)
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/1
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth0): now managed
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth0): bringing up device.
Oct 20 13:52:24 archdesktop kernel: skge 0000:04:09.0: eth0: enabling interface
Oct 20 13:52:24 archdesktop kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth0): preparing device.
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> (eth0): deactivating device (reason 'managed') [2]
Oct 20 13:52:24 archdesktop NetworkManager[390]: <info> Added default wired connection 'Wired connection 2' for /sys/devices/pci0000:00/0000:00:10.0/0000:04:09.0/net/eth0
Oct 20 13:52:24 archdesktop NetworkManager[390]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
Oct 20 13:52:24 archdesktop NetworkManager[390]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
Oct 20 13:52:24 archdesktop kernel: NFS: Registering the id_resolver key type
Oct 20 13:52:24 archdesktop kernel: Key type id_resolver registered
Oct 20 13:52:24 archdesktop kernel: Key type id_legacy registered
Oct 20 13:52:25 archdesktop colord[408]: (colord:408): Cd-WARNING **: CdProfileStore: failed to add profile '/usr/share/color/icc/krita/README': failed to parse /usr/share/color/icc/krita/README
Oct 20 13:52:25 archdesktop dbus-daemon[393]: dbus[393]: [system] Activating via systemd: service name='org.freedesktop.colord-sane' unit='colord-sane.service'
Oct 20 13:52:25 archdesktop dbus[393]: [system] Activating via systemd: service name='org.freedesktop.colord-sane' unit='colord-sane.service'
Oct 20 13:52:25 archdesktop systemd[1]: Starting Daemon for monitoring attached scanners and registering them with colord...
Oct 20 13:52:25 archdesktop dbus-daemon[393]: dbus[393]: [system] Successfully activated service 'org.freedesktop.colord-sane'
Oct 20 13:52:25 archdesktop dbus[393]: [system] Successfully activated service 'org.freedesktop.colord-sane'
Oct 20 13:52:25 archdesktop systemd[1]: Started Daemon for monitoring attached scanners and registering them with colord.
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> (eth1): carrier now ON (device state 20)
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> (eth1): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Auto-activating connection 'Wired connection 1'.
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) starting connection 'Wired connection 1'
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> (eth1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) started...
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) starting...
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> (eth1): device state change: prepare -> config (reason 'none') [40 50 0]
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) successful.
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 2 of 5 (Device Configure) complete.
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> (eth1): device state change: config -> ip-config (reason 'none') [50 70 0]
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Beginning DHCPv4 transaction (timeout in 45 seconds)
Oct 20 13:52:28 archdesktop kernel: b44 ssb0:0: eth1: Link is up at 100 Mbps, full duplex
Oct 20 13:52:28 archdesktop kernel: b44 ssb0:0: eth1: Flow control is off for TX and off for RX
Oct 20 13:52:28 archdesktop kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> dhcpcd started with pid 427
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Beginning IP6 addrconf.
Oct 20 13:52:28 archdesktop dhcpcd[427]: version 5.6.2 starting
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
Oct 20 13:52:28 archdesktop dhcpcd[427]: eth1: sending IPv6 Router Solicitation
Oct 20 13:52:28 archdesktop NetworkManager[390]: <info> (eth1): DHCPv4 state changed nbi -> preinit
Oct 20 13:52:28 archdesktop dhcpcd[427]: eth1: sendmsg: Cannot assign requested address
Oct 20 13:52:28 archdesktop dhcpcd[427]: eth1: rebinding lease of 192.168.2.10
Oct 20 13:52:28 archdesktop dhcpcd[427]: eth1: acknowledged 192.168.2.10 from 192.168.2.1
Oct 20 13:52:28 archdesktop dhcpcd[427]: eth1: checking for 192.168.2.10
Oct 20 13:52:29 archdesktop avahi-daemon[387]: Registering new address record for fe80::213:72ff:fe35:dfd3 on eth1.*.
Oct 20 13:52:32 archdesktop dhcpcd[427]: eth1: sending IPv6 Router Solicitation
Oct 20 13:52:33 archdesktop dhcpcd[427]: eth1: leased 192.168.2.10 for infinity
Oct 20 13:52:33 archdesktop avahi-daemon[387]: Joining mDNS multicast group on interface eth1.IPv4 with address 192.168.2.10.
Oct 20 13:52:33 archdesktop avahi-daemon[387]: New relevant interface eth1.IPv4 for mDNS.
Oct 20 13:52:33 archdesktop avahi-daemon[387]: Registering new address record for 192.168.2.10 on eth1.IPv4.
Oct 20 13:52:33 archdesktop NetworkManager[390]: <info> (eth1): DHCPv4 state changed preinit -> bound
Oct 20 13:52:33 archdesktop NetworkManager[390]: <info>   address 192.168.2.10
Oct 20 13:52:33 archdesktop NetworkManager[390]: <info>   prefix 24 (255.255.255.0)
Oct 20 13:52:33 archdesktop NetworkManager[390]: <info>   gateway 192.168.2.1
Oct 20 13:52:33 archdesktop NetworkManager[390]: <info>   nameserver '192.168.2.1'
Oct 20 13:52:33 archdesktop NetworkManager[390]: <info>   domain name 'Belkin'
Oct 20 13:52:33 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Oct 20 13:52:33 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 5 of 5 (IPv4 Commit) started...
Oct 20 13:52:33 archdesktop avahi-daemon[387]: Withdrawing address record for 192.168.2.10 on eth1.
Oct 20 13:52:33 archdesktop avahi-daemon[387]: Leaving mDNS multicast group on interface eth1.IPv4 with address 192.168.2.10.
Oct 20 13:52:33 archdesktop avahi-daemon[387]: Interface eth1.IPv4 no longer relevant for mDNS.
Oct 20 13:52:33 archdesktop avahi-daemon[387]: Joining mDNS multicast group on interface eth1.IPv4 with address 192.168.2.10.
Oct 20 13:52:33 archdesktop avahi-daemon[387]: New relevant interface eth1.IPv4 for mDNS.
Oct 20 13:52:33 archdesktop avahi-daemon[387]: Registering new address record for 192.168.2.10 on eth1.IPv4.
Oct 20 13:52:34 archdesktop NetworkManager[390]: <info> (eth1): device state change: ip-config -> activated (reason 'none') [70 100 0]
Oct 20 13:52:34 archdesktop NetworkManager[390]: <info> Policy set 'Wired connection 1' (eth1) as default for IPv4 routing and DNS.
Oct 20 13:52:34 archdesktop NetworkManager[390]: <info> Activation (eth1) successful, device activated.
Oct 20 13:52:34 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 5 of 5 (IPv4 Commit) complete.
Oct 20 13:52:34 archdesktop dbus[393]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Oct 20 13:52:34 archdesktop dbus-daemon[393]: dbus[393]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Oct 20 13:52:34 archdesktop dbus-daemon[393]: dbus[393]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 20 13:52:34 archdesktop dbus[393]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 20 13:52:36 archdesktop dhcpcd[427]: eth1: sending IPv6 Router Solicitation
Oct 20 13:52:40 archdesktop dhcpcd[427]: eth1: sending IPv6 Router Solicitation
Oct 20 13:52:40 archdesktop dhcpcd[427]: eth1: no IPv6 Routers available
Oct 20 13:52:49 archdesktop NetworkManager[390]: <info> (eth1): IP6 addrconf timed out or failed.
Oct 20 13:52:49 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Oct 20 13:52:49 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) started...
Oct 20 13:52:49 archdesktop NetworkManager[390]: <info> Activation (eth1) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Oct 20 13:53:25 archdesktop systemd[1]: Mounted /mnt/server.
Oct 20 13:53:25 archdesktop systemd[1]: Starting Remote File Systems.
Oct 20 13:53:25 archdesktop systemd[1]: Reached target Remote File Systems.

Offline

#2 2012-10-20 22:51:58

ron9
Member
From: Norway
Registered: 2011-02-02
Posts: 119

Re: systemd - NFS mounted before network is up

You can try automount:

archserver:/ /mnt/server/ nfs4 defaults,user,noauto,x-systemd.automount 0 0

< huawei matebook 14 | archlinux | labwc | alacritty | pcman | falkon | zen-browser >

Offline

#3 2012-10-20 22:58:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: systemd - NFS mounted before network is up

@OP - Search before you post --> https://bbs.archlinux.org/viewtopic.php?id=151030

Offline

Board footer

Powered by FluxBB