6,534
edits
Changes
→Showing disk space usage / limits: added diskinodes, ploop info
== 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).
The field '''diskspace''' is showing the current disk space usage, and the fields '''diskspace.s''' and '''diskspace.h''' are showing the filesystem size (or disk space quotas, for simfs case). The field '''diskinodes''' is showing the current inodes usage, and the fields '''diskinodes.s''' and '''diskinodes.h''' are showing the filesystem size (or disk inodes quotas, for simfs case). Examples: vzlist -o smart_name,diskspace.h,diskspace vzlist -o smart_name,diskinodes.h,diskinodes On a lower level, same info can be obtained via '''ploop info''' command: ploop info /vz/private/501/root.hdd/DiskDescriptor.xml
== Using disk quotas inside container ==