Linux - Nfs troubleshooting, Steps followed to troubleshoot NFS4
Nfs troubleshooting
Below are few commands which are frequently used to troubleshoot NFS or io troubleshootingcheck port 2049 and 111
# nmap -p 2049 <nfs_server_ip> -Pn # nc -vz <nfs_server_ip> 2049
# nfsiostat /techbluff # nfsstat -m
To get nfsstats of directory and cache every 10 seconds
# nfsiostat 10 -d # nfsiostat 10 -a
Allow NFS to clearcache and to learn new information
# cat /sys/module/nfs/parameter/nfs4_disable_idmapping # nfsidmap -c
To analyse using iotop
# iotop -t -P > /home/techbluff/iotraffic.txt # grep 'M/s' /home/techbluff/iotraffic.txt
check block device and its mountpoint or LV
# lsblk -f # lsblk -o NAME,KNAME,MAJ:MIN,FSTYPE,MOUNTPOINT # iostat -ph 1 5
To analyze network TCP parameter
# netstat -sp tcp
To analyse network interface traffic continuously
# netstat -ic
Write test on NFS mount to check throughput
# for i in 2 do; date; dd if=/dev/zero of=/techbluff/tput$i bs=1M count=1024; date; done # ls -ltrh
The topic on Linux - Nfs troubleshooting is posted by - Roger
Hope you have enjoyed, Linux - Nfs troubleshootingThanks for your time