Subject: Re: [vserver] incorrect filesystem usage in guest...
From: Martin Fick <mogulguy@yahoo.com>
Date: Tue, 14 Sep 2010 14:06:39 -0700 (PDT)

 Tue, 14 Sep 2010 14:06:39 -0700 (PDT)
--- On Tue, 9/14/10, Jarry <mr.jarry@gmail.com> wrote:
> On 14. 9. 2010 22:12, Martin Fick
> wrote:
> > Can you try the same thing from the host and compare?
> 
> # cd /vservers/vs1-web/
> # du -s -k
> 12033864        .
> # cd /vservers/vs1-web/root/
> # du -s -k
> 3444152 .
> 
> This seems correct to me.

What about df from the host?


> > Perhaps you have many hardlinks, I believe that du
> > counts each one as extra space.  Which number to
> > you > think is actually correct, du or df?
> 
> Based on the above host-output, I'd say it is "df" in
> guest which does not show correct filesystem usage (much less,
> than it should show). Concerning hardlinks, I'm not aware of
> any, but they are hard to find. Nevertheless, hardlinks should
> not cause output of df to be incorrect...

Agreed about df not being affected by hardlinks,
but you still haven't provided any proof that df
is wrong (or that du is right).

-Martin