[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On 23/07/18 15:15, mr meowski wrote:
On 22/07/18 19:54, Julian Hall wrote:I don't understand 'Network unreachable' as it dooesn't mount when the NAS and network are both up and ready. That's obviously the problem though. JulianI have tried telling Network Manager not to do anything until the network is up, no joy. Then I found a site with instructions for putting that in the mount file. media-julian-DEMETER.mount now looks like this: [Unit] Description=DEMETER After=network-online.target Wants=network-online.target [Mount] What=192.168.1.3:/volume1/DEMETER Where=/media/julian/DEMETER Type=nfs Options=_netdev,auto [Install] WantedBy=multi-user.target The website didn't specify which section to put the After and Wants line, so I don't know if they're correct but just in the wrong place.Hang on a sec, the last thing you want to do is start muddying the waters by (further) randomly modifying unit files with stuff you don't understand... that's probably what has got you into this mess in the first place. We can look deeper into what's going wrong with systemd-analyze but it looks as if either your network is coming up too late or another rogue process is tying up the mount point too early. Or most likely your network is badly configured and you're using parts of NetworkManager _and_ another conflicting tool that are conflicting on startup - this stuff can be deceptively complicated.
Fair enough.
Firstly, revert your media-julian-DEMETER.mount unit to the original state after removing the new stanzas and then double check for any other little random edits you might have made over time to other unit files and forgotten about them. They will sink you otherwise. You don't need or want to add network-online arguments here either - the _netdev mount option specifically takes care of that and tells the system to ensure that networked filesystems are actually available before attempting to mount.
Done that.
After a clean boot what do the following commands tell you? systemctl --failed
julian@Cerce ~ $ systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● media-julian-DEMETER.mount loaded failed failed DEMETER ● media-julian-HESTIA.mount loaded failed failed HESTIA ● media-julian-PERSEPHONE.mount loaded failed failed PERSEPHONE ● systemd-modules-load.service loaded failed failed Load Kernel Modules LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 4 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'.
systemctl status NetworkManager-wait-online.service
julian@Cerce ~ $ systemctl status NetworkManager-wait-online.service ● NetworkManager-wait-online.service - Network Manager Wait OnlineLoaded: loaded (/lib/systemd/system/NetworkManager-wait-online.service; enabl
Active: active (exited) since Mon 2018-07-23 17:43:41 BST; 4min 9s ago Docs: man:nm-online(1)Process: 1078 ExecStart=/usr/bin/nm-online -s -q --timeout=30 (code=exited, st
Main PID: 1078 (code=exited, status=0/SUCCESS) CGroup: /system.slice/NetworkManager-wait-online.service Jul 23 17:43:35 Cerce systemd[1]: Starting Network Manager Wait Online... Jul 23 17:43:41 Cerce systemd[1]: Started Network Manager Wait Online. lines 1-10/10 (END)...skipping... ● NetworkManager-wait-online.service - Network Manager Wait OnlineLoaded: loaded (/lib/systemd/system/NetworkManager-wait-online.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2018-07-23 17:43:41 BST; 4min 9s ago Docs: man:nm-online(1)Process: 1078 ExecStart=/usr/bin/nm-online -s -q --timeout=30 (code=exited, status=0/SUCCESS)
Main PID: 1078 (code=exited, status=0/SUCCESS) CGroup: /system.slice/NetworkManager-wait-online.service Jul 23 17:43:35 Cerce systemd[1]: Starting Network Manager Wait Online... Jul 23 17:43:41 Cerce systemd[1]: Started Network Manager Wait Online.
systemctl --type=service | grep -i net
julian@Cerce ~ $ systemctl --type=service | grep -i net networking.service loaded active exited Raise network interfacesNetworkManager-wait-online.service loaded active exited Network Manager Wait Online
NetworkManager.service loaded active running Network Manager Kind regards, Julian -- The Mailing List for the Devon & Cornwall LUG https://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq