Customers who want to know how much storage is being used (total allocated capacity across pools or volume groups) should refer to usedSpace in the information retrieved by the Web Services API (ReastAPI).
(Python example)
uri = "https://{0}:{1}{2}{3}/storage-pools/{4}".format(
self.ip_addr,
self.port,
'/devmgr/v2/storage-systems/',
system_id,
uuid)
result = requests.get(
uri,
auth=(self.user, self.passwd),
verify=False,
timeout=20.0
)
used_capacity = result['usedSpace']
The customer informs us that the usedSpace value fluctuates slightly even though the volume is not being extended, created, or written to storage.
(Question 1)
Is there any calculation for usedSpace above other than the amount of storage allocated by the customer in WebGUI?
For example, does it include metadata or snapshot copy data?
(Question 2)
If the above information includes metadata and snapshot information, what information would you look for to get only the amount that the customer has explicitly assigned that does not include it?