You are not logged in.
When I update my system (sudo pacman -Syu) my NFS shares always tend to freeze. Then I am unable to open source code document from there. My NFS shares are shared from my VPS, where I run same Arch Linux as on home machine. Geany source code editor also freeze, when I try to open my documents from the shared directory and I have to use "kill -9" to kill the process instances. Today I updated both system, and I issued "sudo systemctl daemon-reload" too. NFS shares don't work again. They are mounted by /etc/fstab:
11.111.11.111:/srv/nfs4/util /home/me/util nfs nfsvers=3,sync,noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,x-systemd.idle-timeout=1min,exec, 0 0Etc.
I tried running: sudo umount -a
No success. I also have run a script called nsf_remount, what I found somewhere on the net:
for P in $(mount | awk '/type nfs / {print $3;}'); do echo $P; sudo umount -f -l $P && sudo mount $P && echo "ok :)"; doneWhat should I do to make NFS shares keep working after system upgrade (possibly without reboot)?
Last edited by anselm (2016-06-06 19:01:04)
Offline
Just to confirm, rebooting the computers always fixes the issues, correct?
Does NFS stop working every time you update? Or only when specific packages are updated?
Offline
Rebooting not always fixes the problem, like now. I rebooted home computer and remote VPS too, but problem still arise. For example when I start Midnight Commander, its default directory is a parent directory of the mounted NFS shares, and so Midnight Commander also freeze.
I think this problem always arise when I make the usual update. But after a few days after rebooting both machine, and fiddling with the above mentioned commands, reloading daemons, restarting rpcbind.service and nfs-server.service, playing with /etc/fstab options usually everything get back to normal.
Offline
I have the same problem since last systemd upgrade (version 230-3). The NFS share works after each boot for a minute or so, then stops working (I can't even browse the share in the console)...
Offline
@semicarbazid: Assuming you mount the shares with systemd automount: Do you have the x-systemd.idle-timeout option set? If you do try without this option. I had the very same issue and it looks like this fixed it for me.
It appears the automatic remount does not work in systemd 230.
Edit: This is a known bug and is already fixed in systemd:
https://github.com/systemd/systemd/comm … 706ea2cb45
https://github.com/systemd/systemd/issues/3332
Last edited by migerh (2016-06-10 19:30:35)
Offline
Confirm
systemd 230 unmount NFS shares , and then every activity in NFS directory freeze (ranger, ls , cd )
in Testing systemd 230-4 , fix this
Last edited by pekka (2016-06-11 22:21:04)
Offline
Right now everything seems to be working, I simply deleted the extra options from the /etc/fstab
Offline