Changes

Jump to: navigation, search

Disk quota, df and stat weird behaviour

7 bytes added, 09:10, 23 November 2006
m
formatting fixes
The aim of this article is to understand where the numbers that are shown by <code>stat</code>/<code>df</code> utils in [[VE]] come from.
Consider typical OpenVZ setup, where <code>ext2</code> separate filesystem is mounted on <code>/vz</code>. <code>ext2</code> is called ''underlying filesystem'' in such situation.
Linux VFS design allows every filesystem to export to userspace the following information concerning disk space (here and further I use subscript to specify paricular filesystem type):
We have three variants. Variant number one is not good, because VE administrator can't get information about VE disk usage. Variant three is not good 'cause we have some weird (but logical) values in <code>df</code>/<code>stat</code> output in VE, e.g. total disk space can decrease. Variant two is perfect. How can we provide this varaint always take place? Here is the rule:
* '''{{Out|Do not set random disk quota barrier/limit! }} Even if you want VE to be unlimited, consider reasonable values. Use the following fromuleformula:
:: <math>\sum_{i=1}^Nq_i = S - s</math>
<math>q_i</math> - quota barrier for VE i
-----
TODO: add info about inconsisten inconsistent quota problems
TODO: Add Roma's images

Navigation menu