We have an NFS 4 share, sharing a volume between a number of servers (NFS server, and clients all Debian 8). We have had some issues recently where network outages would freeze the client systems.
Our NFS options were minimal, just rw (and so the defaults hard, fg, etc).
I'm now experimenting with these options, but am not getting the behaviour I expect:
rw,soft,bg,retrans=6,timeo=150
(I've increased the retrans to offset some of the soft risk)
The procedure I'm following to test is :
- Boot machine
cdto/mnt/mountpoint- Verify NFS connection ok
cd /- kill network
ifdown eth0 cdto/mnt/mountpointls
At this point the command line freezes, and I can't interupt it. After some time the message 'nfs: server [servername] not responding, timed out`, which seems to repeat once a minute (indefinately).
What I would like/expect to happen for the operation to fail, and return control.
Please could someone tell me where I'm going wrong with these settings?
(PS: I also tried mounting with autofs, but saw similar behaviour)
Thank you