Since this thread still appears in Google searches about getting the SR usage in command line, I'll update just add this:
There's more fields in "xe sr-list" than just what you see with no parameters. If you append "params=all", it'll have a lot more, in addition virtual-allocation, physical-utilisation and physical-size.
Xenserver: How to see local storage disk space used on command line?
in Command-Line Interface
Posted
Since this thread still appears in Google searches about getting the SR usage in command line, I'll update just add this:
There's more fields in "xe sr-list" than just what you see with no parameters. If you append "params=all", it'll have a lot more, in addition virtual-allocation, physical-utilisation and physical-size.
Example of that: