How to configure reasonable timeout for nfs?
timeo
and retrans
are effective only on soft
nfs not on hard
nfs.
Need to change the /etc/fstab
like this:
<remote-host-ip>:/path/to/origin /shared/point nfs soft,timeo=30 0 0
timeo
is timeout value of 30 deciseconds (3 seconds). there is also the retrans
means how much retries to do in case of error.
then in case of server or service down, an error occurred after 9 seconds.