I am trying to create a script that runs on the client and checks my NFS mount periodically and changes some stuff around (moves a read-only, local version of the data in place of NFS) if there is an issue. Right now the script attempts to load a file on the NFS mount, which more or less works, except it takes 5 minutes to time out when there is an issue. Is there a way to set the timeout of a file request? Or another way to quickly test if my NFS mount is working? Even better would be a way to have NFS unmount itself if the connection gets dropped.
Thanks