Re: [vserver] incorrect filesystem usage in guest...

From: Chuck <chuck_at_sbbsnet.net>
Date: Wed 15 Sep 2010 - 01:14:18 BST
Message-Id: <201009142014.18949.chuck@sbbsnet.net>

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.
>

-- 
Chuck
Received on Wed Sep 15 01:18:14 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 15 Sep 2010 - 01:18:14 BST by hypermail 2.1.8