You are not logged in.

#1 2015-11-04 09:41:47

txus
Member
Registered: 2008-01-23
Posts: 78

[Solved] NetworkManager stops before Remote Filesystems unmounting

Hi @all,

as per thread title, the NetworkManager service stops before the Remote Filesystems unmounting begins. Is this the intended behaviour? If so, why? (Honestly curious, not criticizing!) If not, should I file a bug here, or do you have any suggestions on where to go ask next?

Background: I have an NFS share (defined in fstab as suggested here, but before you jump and tell me about x-systemd.automount: already tried that), and when it is mounted, the system can't shutdown or reboot because it hangs just in the end trying to unmount it in the background while having no network connection. Since I am doing no black magic with scripting or convoluted options in fstab, and having tried many variations of mounting options, I would guess it should work just fine, but it doesn't, and since systemd and the units are usually pretty smart about when they start and stop and on what they depend, the only thing I hadn't though of until now is that it wouldn't unmount because the network was not configured anymore.

Thank you!

Edit: The background problem is solved. The culprit was (and still is by default, until the next version hits the repos) wpa_supplicant. See here: https://github.com/systemd/systemd/issu … -144779025

Last edited by txus (2015-11-17 12:40:02)

Offline

#2 2015-11-04 10:12:25

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [Solved] NetworkManager stops before Remote Filesystems unmounting

txus wrote:

the NetworkManager service stops before the Remote Filesystems unmounting begins.

How do you see this? https://bbs.archlinux.org/viewtopic.php?id=57855

Assuming confirmation of the above, you need to provide information about your configuration. Output of the following commands (after substituting the part beween angle brackets) would be a good start.

$ systemctl status NetworkManager-wait-online.service
$ systemctl cat <mount unit for your NFS share>

Some reading material: http://www.freedesktop.org/wiki/Softwar … orkTarget/

Offline

#3 2015-11-04 12:29:49

txus
Member
Registered: 2008-01-23
Posts: 78

Re: [Solved] NetworkManager stops before Remote Filesystems unmounting

Raynman wrote:
txus wrote:

the NetworkManager service stops before the Remote Filesystems unmounting begins.

How do you see this? https://bbs.archlinux.org/viewtopic.php?id=57855

Assuming confirmation of the above, you need to provide information about your configuration. Output of the following commands (after substituting the part beween angle brackets) would be a good start.

$ systemctl status NetworkManager-wait-online.service
$ systemctl cat <mount unit for your NFS share>

Some reading material: http://www.freedesktop.org/wiki/Softwar … orkTarget/

As for the first part, sorry for not mentioning it explicitly. I see this just by looking at the console at shut down: you can easily see that systemd stops NetworkManager before "stopping" Remote Filesystems (figuring out what service that is and what it does was next on my list). And offtopic, regarding your link: I had a specific question, this wasn't a "[Whatever] doesn't work!" thread. If you want to go deeper and need more information, I'm happy to provide it, but please, don't try to push me to the newbie corner, I find that quite rude. Thanks!

As for the second part, regarding my background problem, NetworkManager-wait-online is not enabled, so I'll try that too. Anyway, this and reading some documentation about the network and network-online targets, and how systemd manages mounts and network shares, has given me some ideas, so thank you very much for that!

Offline

#4 2015-11-04 19:05:28

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,362

Re: [Solved] NetworkManager stops before Remote Filesystems unmounting

Systemd does the same thing with connman/cmst.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#5 2015-11-17 12:41:09

txus
Member
Registered: 2008-01-23
Posts: 78

Re: [Solved] NetworkManager stops before Remote Filesystems unmounting

Sort of solved, see OP.

Offline

Board footer

Powered by FluxBB