How can i retrieve this metric either from FSA report or directly from PostgreSQL on IIQ system ? I would like to pull this value every so often via an automated process.
i can certainly do that but i need something right now. It's a calculated value that i am sure i can do the math if i know what values are used and from which tables in the database i can get them from.
Thank you so much for your help, greatly appreciate it. I use REST with XtremIO and VMAX U4V already, was trying to do something quick and dirty with bash. Just tried the end points your provided and see that's it's very easy to get those fields. I use perl module to work with JSON so it's similar to what i already do with other EMC platforms. This metric will be very valuable in my Grafana portal.
I've just tried using Platform API to look for the FSA estimation of usable capacity. This currently does not exist as an API call. It is calculated within InsightIQ, using a specific FSA result set, to estimate usable capacity.
As the other contributors have pointed out, quotas can help, as well as iiq_data_export (and then manually calculating logical vs physical).
In terms of using smart quotas for this exercise, are you suggesting setting an accounting quota on /ifs/access_zonename and then getting the "usage with overhead" and "usage without overhead" values for my calculations ? I kind of like that option because then i don't have to wait on FSAnalyze to complete which in my case takes a couple of days.
Peter_Sero
6 Operator
•
1169 Posts
3257
0
Posted December 6th, 2017 05:00
Dynamox, if you can use the Platform API, here is how to query and compute the "usable" remaining capacity:
1. Get the "raw" available capacity excluding VHS spare as "f_bavail' from /platform/1/cluster/statfs (basically a "df")
2. To estimate the protection overhead, get
total_usage.phys_size_sum and total_usage.log_size_sum from /platform/3/fsa/results/0/directories
Notes:
- Report id "0" means: retrieve the most recent report from the Isilon, IIQ server is not involved here.
- No directory LIN given as query argument means: report stats at the toplevel dir, i.e. /ifs
3. Compute:
ratio := total_usage.phys_size_sum / total_usage.log_size_sum (--> ratio is a number larger than one, like 1.18...)
blocksize := 8192
usable available capacity in bytes := f_bavail * blocksize / ratio (--> so "usable" is less than "raw" in bytes)
Makes sense?
-- Peter