Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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!

share|improve this question

2 Answers 2

up vote 2 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.

share|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

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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