I'd like to retrieve the total number of kilobytes read/written for each NFS mount point.
Using the following commands, I'm able to see the current throughput for each NFS mount point in kB/S.
iostat -nk
Alternatively:
nfsiostat
Is there a way to tell iostat or nfsiostat to return the total number of kilobytes since boot?
(Much like the last two columns of iostat -k
)
Device: tps kB/read/s kB/wrtn/s kB_read kB_wrtn
sda 17.69 234.75 30.82 2760421 362433
By assuming you use Linux client, you can use mountstats command, which prints statistics per mount point:
on RedHat based system, it's a part of nfs-util package. In debian based probably in nfs-common.