I cannot find the logs for a NFS server on a CentOS 6.5 machine. grep -Rni "nfs" /var/log/messages
returns nothing useful.
The NFS service is running and I am able to mount the NFS share from most of my other client machines, I just need to see the logs as one of the client machines is failing to mount the NFS share.
I've just had the same problem in 2016, using CentOS 6.5 on my workstation, and CentOS 7 on the client (a Vagrant box on the same host). My specific problem was the same as the OP's, I couldn't find any nfsd logging.
Use rpcdebug to Enable NFS Logging
The answer for me, for anyone else coming to this question in the future, was to use the command (as root/sudo on the server end):
to turn on full debugging to
/var/log/messages
I've put a more complete answer against the question centos 6 nfs: logs not showing anywhere, which addresses the same issue.
I also used MadHatter's suggestion (Kudos) of
-d all
onrpc.mountd
and explain how I did this in the longer post.In my experience, the NFS service doesn't normally log (not least because modern Linuces handle much of NFS in the kernel). If you're trying to chase down a mount issue, you could try restarting
rpc.mountd
(which handles such things) with the-d all
flag, and see if that increases verbosity. I'm guessing it would continue to log where it already was, so keep an eye on/var/log/messages
.