Statistics collection

Added by TZ Ka about 1 year ago

Hi, I would like to collect some statistics per Folder,protocol,volume polling each few seconds. Stats I'm interested in are: (CIFS/NFS) avg_latency per Volumes/Folder (CIFS/NFS) read_latency per Volumes/Folder (CIFS/NFS) write_latency per Volumes/Folder (CIFS/NFS) read_ops/s per Volumes/Folder (CIFS/NFS) write_ops/s per Volumes/Folder (CIFS/NFS) read_data/s per Volumes/Folder (CIFS/NFS) write_data/s per Volumes/Folder cpu_util%

In a NetApp Filer I can achieve that my running 'stats show volume'

What Can I use in Nexenta/OpenSolaris to get this data?

Thanks.


Replies

RE: Statistics collection - Added by Linda Kateley about 1 year ago

We can't currently get those statistics from within the appliance and we have a request for that to be added to the product.

We understand that this is a gap and one of our senior engineers wrote some dtrace scripts where this data could be collected from the command line as root to bridge the gap.

You can find those scripts here

https://github.com/richardelling/tools

RE: Statistics collection - Added by TZ Ka about 1 year ago

Actually, getting those stats from command line is preferred. These scripts are almost what I needed, so thank you so much. Only problem is that the results are per client and not per Volume. Any idea how I do that per volume or even better, per folder?

Thanks.

RE: Statistics collection - Added by TZ Ka about 1 year ago

Any suggestions?

Looking for something similar to iostat or any DTrace script that can give me stats per volume and stats per share

Thanks.

RE: Statistics collection - Added by Linda Kateley about 1 year ago

Richard elling has put up his scripts at

https://github.com/richardelling/tools

RE: Statistics collection - Added by TZ Ka about 1 year ago

Like Previously mentioned, it seems as these scripts are getting counters per NFS client and not per NFS mount. Am I missing something?

RE: Statistics collection - Added by Linda Kateley about 1 year ago

tz, you might want to go out to discuss at dtrace.org. they might be able to help craft the correct script.