I have a number of NFS servers on a set of commercial NAS hardware we bought. I also have about 20-30 other machines that mount each of the NFS servers. Generally the setup works well, but I've observed that occasionally after I reboot one of the clients that it will report
mount.nfs: access denied by server while mounting ...
I seem to be able to fix this by logging in to each of the NFS servers and either /etc/init.d/nfs restart
or exportfs -au; exportfs -a;
(or doing the equivalent from the handy-dandy web interface), but it's rather obnoxious to have to have this be part of rebooting any one of the 20-30 client nodes.
So far, server logs haven't been very helpful, partly because the NAS vendor seems to have stripped out a lot of the built-in logging stuff. :(
Ideally I'd like a fix to a server config (or client config) such that I wouldn't have to do anything special after a client reboot. Barring that, maybe there's a command I could run on the client (as opposed to on all of the servers) when the issue occurs?