Is there a way to force a Linux client to reconnect to a NFS server after it has lost its connection? The client eventually notices the server is back and resumes working just fine. I'm just wondering if there is a way to speed up this re-connection.
You could look into Autofs (ArchWiki link). If you setup the NFS to automount, the client should try to (re)connect to the NFS drive every time you try to use it. This would ensure that if you try to access the NFS drive from the client and the server is up, then the NFS drive will attach.
Perhaps you can tweak the
retrans options of the NFS mounts to achieve the desired behavior. See the nfs man page for more information.