I'm trying to validate the methods used to calculate aggregate results in 7mode. I have three methods of checking capacity info on aggregates; aggr show_space, ds -Ah, and the ontap API. I executed each of these methods at the same time, and the differences between the results should only be a few MBs off at most (given the use of the volumes and the few seconds it took to run each command). However, each method is showing a few TBs difference (especially when using df -Ah).
With that said I have a few questions:
Why are all these methods showing different results? If they should be equal, then what might be causing this difference?
Which filer commands does the aggregate API use for calculating aggr results? If no filer commands are used, then what is the process used by the API to calculate these results?
How can I properly and accurately calculate aggregate capacity information using the API (excluding WAFL and snapshot reserve)?
Are the answers to this question the same in cDOT? If not, what are the differences between these answers in 7mode and cDOT.
These results were incorrectly calculated on my end by using the google tool incorrectly. I was converting to TB instead of TiB, which was using the method "1000*1000*1000*1000" instead of "1024*1024*1024*1024".