Red Hat Bugzilla – Bug 3353
nfsstat does not work
Last modified: 2007-04-18 12:23:06 EDT
nfsstat is looking for /proc/net/rpc/nfs. That is not the
right file the correct file is /proc/net/rpc/nfsd. I don't
know how to fix this. The result is that nfsstat prints
only an error.
Both nfs and nfsd can be present in /proc/net/rpc, one for the
client statistics, the other for the server statistics. Perhaps
your machine is not an NFS client ...
BTW you may want to try knfsd-1.3.3 from Raw Hide ...
You are right. The machine was not a client. It appears that both
/proc/net/rpc/nfs and /proc/net/rpc/nfsd have to be present for
nfsstat to work. This means that the machine has to be both an nfs
client and server to get any statistics. It would be nice if nfsstat
just printed statistics for whatever files it finds and didn't require
both of them to be there to get anything.
And that's a bug. Thanks for reopening.
assigned to johnsonm
Created attachment 89193 [details]
Fix unnecessary warning messages
Reworked the diagnostics of nfsstat so annoying warnings
are not displayed for statistics that are not asked for
and don't exist.