2011-06-28 19:51, Matt Harrison пишет:
On 28/06/2011 16:44, Tomas Ögren wrote:
Matt Harrison<iwasinnamuk...@genestate.com> wrote:
Hi list,
I want to monitor the read and write ops/bandwidth for a couple of
pools
and I'm not quite sure how to proceed. I'm using rrdtool so I either
want an accumulated counter or a gauge.
According to the ZFS admin guide, running zpool iostat without any
Alas, I do not know a direct answer, but possibly some
kernel stats (like those used by iostat/vmstat to produce
disk io statistics) should be informative. I am not sure
if there are kstats for pools though.
Note that regularly running "zpool iostat" may tax your
system resources to spawn a process, as well as lock up
the system if there are any problems with the pools and
the kernel is waiting on something indefinitely (i.e. my
loooong pool imports for which the kernel needed some
sanity checks not unlike full zdb walks) - during these
hours and days any zfs/zpool/bootadm/df commands were
unuseable, and if you run them regularly a-la crontab,
you can end up with thousands of hanging processes and
deplete any RAM you can have.
Hint: make a script to use lock-files to avoid spawning
more than one "zpool iostat" request from rrdtools.
HTH,
//Jim
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss