

There's more fields in "xe sr-list" than just what you see with no parameters. Since this thread still appears in Google searches about getting the SR usage in command line, I'll update just add this: or, How to show local disk storage, usage storage, size storage, as in the picture I attach with command in XenServer 6 & XenServer 7 ? How can I get disk usage stats on the command line (such as df usually gives) for a local disk storage repository, under XenServer 6, and also under XenServer 7? I'm aware of the advice here - however on my XenServers the only disks that show up under /run/sr-mount are the NFS-mounted backup disks. However Xen doesn't give direct access to the storage repository disk space. One of the most important things is to monitor disk usage on the storage repositories, and this can be done simply from the command line using df. The problem: I'm currently building monitoring systems, using Nagios Core.

So I used Nagios Core for monitoring system.Īll of the hypervisors use local storage, typically one or more disk. I'm running a XenServer 6 and 7 systems, hosting Windows and Linux VMs.
