6,534
edits
Changes
added notes for vzctl set diskspace/diskinodes, added vzlist to see diskspace
vzctl set ''CTID'' --diskspace ''nnn''G --save
Note that
* there is no need to specify two values for diskspace (unlike simfs, there is no soft and hard quota).
* there is no way to limit or change the number of inodes available for a container (i.e. option '''--diskinodes''' is ignored)
== Showing disk space usage / limits ==
You can use {{Man|vzlist|8}} to see CT disk space usage and limits in a uniform way for any containers (simfs or ploop, started or stopped). The field '''diskspace''' is showing the current usage, and the fields '''diskspace.s''' and '''diskspace.h''' are showing the filesystem size (or disk space quotas, for simfs case).
vzlist -o smart_ctid,dspace.u
== Using disk quotas inside container ==