Pages

How to debug NFS issues


rpcdebug is very helpful in analysing the NFS or RPC communication , you can get more information on how to use it well explained in my previous blog you can refer the below link for more info on rpcdebug


There are events where we may required more debugging to resolve the issue advanced logging on kernel level with sysctl should be considered. It is not recommended to mix rpcdebug and the following kernel parameter since this would fill up the logs rapidly and would make them hardly readable. As a start only one of them should be used for debugging purposes

To enable additional logging for nfsd use:

# sysctl -w sunrpc.nfsd_debug=1023

for an NFS client issue:

# sysctl -w sunrpc.nfs_debug=1023

and finally for RPC:

# sysctl -w sunrpc.rpc_debug=1023

These commands also lead to additional messages in /var/log/messages that can be viewed via "dmesg" as well. The respective debugging can be disabled by using the same commands like above, but change "1023" to "0"

# sysctl -w sunrpc.nfsd_debug=0

# sysctl -w sunrpc.nfs_debug=0

# sysctl -w sunrpc.rpc_debug=0




No comments:

Post a Comment