Changes

Jump to: navigation, search

Disk quota, df and stat weird behaviour

No change in size, 10:15, 12 December 2006
Fixing a bad missprint in formule, marked by Andrey
:: <math>df_{usage} = total_{simfs} - free_{simfs} = total_{simfs} - free_{ext2}</math> (3)
: <math>free_{ext2}</math> decreases because [[VE]] #2 writes to disc, consequently <math>df_{usage}</math> increases! "What the hell is going on?!" - thinks the administrator - "Nobody writes on the disk in my [[VE]], but the usage increases!" To avoid such situation the following approach is used in OpenVZ: decrease <math>total_{simfs}</math> so, that <math>df_{usage}</math> remains the same, i.e.:
:: <math>total_{simfs} = total_{ext2} - (quota_{barrierusage} - quota_+ free_{usageext2})</math> (4)
: Substituting (4) in (3) obtain:
:: <math>df_{usage} = (total_{ext2simfs} - free_simfs = quota_{usage} + free_{ext2}) - (quota_free_{barrierext2} - = quota_{usage}) = const</math>
: In this case, administrator of [[VE]] #1 sees that total amount of space decreases, but usage however is constant.
: The same reasoning as with <math>free_{simfs}</math> suits for calculating <math>avail_simfs</math>. Two cases are possible. If
172
edits

Navigation menu