How to list disk space usages of all containers on an OpenVZ server?

Richard asked:

I have an OpenVZ server with 46 containers. How do I get a list of all the containers with their corresponding disk usage?

My answer:


Use vzlist with the diskspace option, for instance:

vzlist -a -o ctid,hostname,diskspace -s diskspace

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.