Mailinglist Archive: opensuse-bugs (4498 mails)

< Previous Next >
[Bug 964347] NFS shares unmounted after suspend/resume
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 19 Feb 2016 02:52:13 +0000
  • Message-id: <>

--- Comment #15 from Neil Brown <neilb@xxxxxxxx> ---
So if there are going to be some user-space tools...

There is. Use automount. Really, it isn't very hard and worth all the effort
it takes.

Make sure you have "autofs" installed.
Create a file "/etc/auto.master.d/direct.autofs" containing one line
/- /etc/

Then create /etc/ containing one line for everything you want NFS
/scratch -fstype=nfs,vers=4 my-big-servier:/scratch
/otherhome -fstype=nfs desktop:/home

and "systemctl reload autofs"

and you are done. Nothing more to worry about.
They only get mounted when you try to access them, and if the mount fails, you
get a small delay then 'file not found'.
They get unmounted after a short period of inactivity (configurable).

Apps will only freeze if they "cd" into the mounted directory or open a file in
there and hold it open. If they use full pathnames get to get everything
(which most apps seem to these days) they should simply fail when the
filesystem cannot be mounted.

You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >