On Tuesday, September 14, 2010, Jarry wrote:
> Hi,
> I have found my vserver-guest does not report filesystem
> usage correctly:
> 
are all your guests sharing the same partition? if so df will report gross totals across 
the partition. 
the only way to get accurate individual data is by doing what i do.. use lvm2 and assign a 
partition to each guest. within that setup, df is completely accurate for that individual 
guest.
> # pwd
> /root
> # du -s -k
> 3444152 .
> # df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> rootfs                20971520   2578996  17327564  13% /
> /dev/root             20971520   2578996  17327564  13% /
> 
> You see? In just one directory /root there is ~3.4GB of data,
> yet filesystem usage for this partition says only ~2.6GB is used.
> How is this possible???
> 
> Jarry
> -- 
> _______________________________________________________________
> This mailbox accepts e-mails only from selected mailing-lists!
> Everything else is considered to be spam and therefore deleted.
> 
-- ChuckReceived on Wed Sep 15 01:18:14 2010