I have a NFS mounted directory, and I'd like to monitor the I/O usage on it (MB/s reads and writes). What's the recommended way to do that ?

This is the NFS client, I don't have access to the NFS server. I'm not interested in general I/O usage (otherwise I would use vmstat/iostat). It also has multiple NFS mounts, I'm interested in monitoring just one specific mount (or I might have used ethereal).

Thanks!

link|improve this question
feedback

2 Answers

up vote 1 down vote accepted

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.

link|improve this answer
iostat doesn't accept the -m option on my system. – Good Person Feb 3 '11 at 2:16
-m might be a gnu option then – Patrick Feb 3 '11 at 2:46
I've found iostat to be a poor choice for obtaining IO data over short intervals because my implementation (sysstat-7.0.2-3.e15) only ever shows wBlk_svr/s as a rate since boot time. I like to think that newer versions can show this as a counter instead. – ericslaw Jul 14 '11 at 23:15
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.