On 11/30/18 2:33 PM, Patrick O'Callaghan wrote:
I'm getting "filesystem not responding" messages from
an NFS-mounted
NAS which I suspect is just slow (it spins down its disks when not in
use). I'm using automount and that appears to be related as it never
used to happen with normal mounting. I've changed the 'timeo' parameter
in the /etc/fstab line and run 'mount -a' but the mount parameters for
the filesystem have not changed. I've also restarted anything that
seems relevant from systemd:
systemctl restart storage-Backups.mount
and
systemctl restart proc-fs-nfsd.mount
and
systemctl restart proc-sys-fs-binfmt_misc.automount
to no effect.
How can I get this to work without rebooting?
Uhm, you might try "mount -o remount,rw,<otheroptions> /mountpoint" or
you may have to unmount it using "umount" (possibly with the "-f"
flag)
and either manually remount or trigger the automount. From the nfs(5)
man page:
With few exceptions, NFS-specific options are not able to be
modified during a remount. The underlying transport or NFS
version cannot be changed by a remount, for example.
I suspect the timeouts fall into those "NFS-specific" bits. With those
caveats, give it a go.
IIRC, the mount options in /etc/fstab are only used at the time of
mounting. Changes to fstab won't take effect without a remount of some
sort. The best remount is a full umount/mount cycle, but umounting
(without the "-f") will require that there are no open files on that
filesystem. Using the "-f" will forcefully dismount it and that can lead
to some grievous consequences to processes actively using the filesystem
at the time of the dismount. Thou hast been warned!
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ricks(a)alldigital.com -
- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 -
- -
- Blessed are the peacekeepers...for they shall be shot at -
- from both sides. --A.M. Greeley -
----------------------------------------------------------------------