You are not logged in.

#1 2016-06-06 18:52:59

anselm
Banned
Registered: 2016-05-11
Posts: 120

After system upgrade NFS shares nearly always freeze

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 0

Etc.

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 :)"; done

What 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

#2 2016-06-06 19:46:54

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: After system upgrade NFS shares nearly always freeze

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

#3 2016-06-06 21:12:22

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: After system upgrade NFS shares nearly always freeze

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

#4 2016-06-08 13:16:25

semicarbazid
Member
Registered: 2016-06-08
Posts: 1

Re: After system upgrade NFS shares nearly always freeze

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

#5 2016-06-10 18:28:09

migerh
Member
Registered: 2013-05-26
Posts: 4

Re: After system upgrade NFS shares nearly always freeze

@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

#6 2016-06-11 22:07:02

pekka
Member
Registered: 2011-07-21
Posts: 104

Re: After system upgrade NFS shares nearly always freeze

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

#7 2016-06-11 22:20:35

anselm
Banned
Registered: 2016-05-11
Posts: 120

Re: After system upgrade NFS shares nearly always freeze

Right now everything seems to be working, I simply deleted the extra options from the /etc/fstab

Offline

Board footer

Powered by FluxBB