I have nfs mount to a directory on remote machine. When the remote machine is down or disconnected, any command on the nounted nfs (such as: ls, or open file) is stuck.
I want it to just fail in a few seconds if the nfs dir is not available.
How can I do it?
/etc/fstab I see
<remote-host-ip>:/path/to/origin /shared/point nfs defaults 0 0
When I run
mount I see:
<remote-host-ip>:/path/to/origin on /shared/point type nfs4 (rw,relatime,vers=4.1, rsize=1048576,wsize=1048576,namelen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=<my-ip>,local_loc=none,addr=<remote-ip>)