Getting ZFS per dataset IO statistics (or NFS per export IO statistics)
- by jkj
Where do I find statistics about how IO is divided between zfs datasets? (zpool iostat only tells me how much IO a pool is experiencing.)
All the relevant datasets are used through NFS, so I'd be happy with per export NFS IO statistics also.
We're currently running OpenIndiana
[edit]
It seems that operation and byte counter are available in kstat
kstat -p unix:*:vopstats_???????
...
unix:0:vopstats_2d90002:nputpage 50
unix:0:vopstats_2d90002:nread 12390785
...
unix:0:vopstats_2d90002:read_bytes 22272845340
unix:0:vopstats_2d90002:readdir_bytes 477996168
...
...but the strange hexadecimal ID numbers have to be resolved from /etc/mnttab (better ideas?)
rpool/export/home/jkj /export/home/jkj zfs rw,...,dev=2d90002 1308471917
Now writing a munin plugin to use the data...