NFS weird mounting behavior

I am using Tumbleweed 15.5, I have 2 nfs locations mounted from a local home server.
Every time the pc goes into sleep mode, I have to manually mount one of the nfs folders.
the other one mounts automatically. This is quite frustrating, since all the data I use is on the server and dolphin becomes very slow if the nfs are no properly mounted.
I have checked the settings on both mounts and they are identical.

Any ideas?

TW “15.5” ??? There is an openSuse Leap 15.5, but not TW. (i.e., Tumbleweed rolling release).
Might have to have this moved to the “Leap 155” tag.

BTAIM, have you checked the logs for hints?

1 Like

You could start by looking at the systemd journal for any priority 3 errors:

sudo journalctl -b -p3

If that doesn’t yield much results, look specifically at the journal for the NFS mount’s systemd services (if any), or even just the journal logs around the time you put the PC to sleep and try to remount it back.

You probably know this and are just forgetting in the midst of troubleshooting, but whenever you encounter a problem, the following steps would lead you to the answer most of the time:

  1. Look at the logs for whatever service/component is acting weird
  2. If there are no logs, enable logging for it
  3. If the logs do not provide sufficient information to troubleshoot, increase the logging level.

Below is a solution for similar (but not exactly the same) NFS mounting problems. I assume it may help you because it will automount your NFS when needed. After a sleep ot not.

There are more people having problems with NFS mounts being to early, or being mounted at boot, but unmounted immediate. Many have solved this by using Automounting (take care, there are several cases where people call something automounting, but this is the real one). It will mount when some process needs it. And unmount after a certain time of no usage.

boven.henm.xs4all.nl:/home/wij             /home/wij  nfs   noauto,nofail,x-systemd.automount,x-systemd.mount-timeout=10,x-systemd.idle-timeout=5min          0  0

The extra options are:

  • noauto because we refrain from mounting at boot;
  • nofail as an extra, may not be needed;
  • x-systemd.automount to let systemd-automount do it’s work: mount when required;
  • x-systemd.mount-timeout=10 time before it errors because of e.g. NFS server down;;
  • x-systemd.idle-timeout=5min after 5 minutes of no usage the fs will be unmounted (to be mounted auto at next access)

See also:

man systemd.automount
man systemd.mount
1 Like

My mistake. I am using Tumblweed.

@cepiolidus then your probably using a blacklisted/unsupported nfs module. See https://en.opensuse.org/SDB:FilesystemBlacklisting on overriding and/or making a permanent (remember unsupported!) change.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.