Appendix B. NFS Problem Diagnosis
Throughout this book, we’ve used the output of nfsstat on both NFS clients and servers to locate performance bottlenecks or inefficient NFS architectures. The first two sections in this appendix summarize symptoms of problems identified from the output of nfsstat. The last list contains typical values for the error variable errno that may be returned by file operations on NFS-mounted filesystems.
NFS server problems
Check the output of nfsstat -s for the following problems:
- badcalls > 0
RPC requests are being rejected out of hand by the NFS server. This could indicate authentication problems caused by having a user in too many groups, attempts to access exported filesystems as root, or an improper Secure RPC configuration.
- badlen > 0 or xdrcall > 0
This indicates a malformed NFS request, detected by RPC or XDR protocol decoding on the server. This can be caused by bugs in the client or server, or by physical network problems.
- dupreqs > 0
The duplicate request cache keeps a record of previously executed NFS requests. The dupchecks counter tracks the number of times this cache was consulted, or checked. The dupreqs counter tracks the number of times a check of the cache had a “hit.” In other words, dupreqs counts the number of times the NFS server received a previously executed request. For connection-oriented (TCP) requests, a high ratio of dupreqs to dupchecks is 0.01%. For connectionless (UDP) requests, a high ratio of dupreqs to dupchecks is ...
Get Managing NFS and NIS, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.