NFS I/O monitoring
Solution 1:
nfsiostat (aka nfs-iostat.py) from nfs-utils is good for interactive monitoring. For historical data since a filesystem was mounted, use mountstats. Both of these tools read data from /proc/self/mountstats.
Solution 2:
iostat -mnh
really is the best way to do this. It only combines stats for the same remote device. If your nfs mounts are from separate remote endpoints, then it wont combine them.
The -m
means display in MB/s, the -n
means to display stats for NFS shares, -h
means human friendlier output.
If you pass it a number after like iostat -mnh 3
it'll display stats per every 3 seconds.