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: <bug-964347-21960-obkWDKubKk@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=964347
http://bugzilla.suse.com/show_bug.cgi?id=964347#c15

--- 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/auto.direct

Then create /etc/auto.direct containing one line for everything you want NFS
mounted.
e.g.
/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 >