* [linux-lvm] lvm size mismatch?
@ 2004-02-23 19:56 Soon-Son Kwon
2004-02-25 9:40 ` David Johnston
0 siblings, 1 reply; 2+ messages in thread
From: Soon-Son Kwon @ 2004-02-23 19:56 UTC (permalink / raw)
To: linux-lvm
Hi I am using lvm on debian woody.
The version would be about 1.0.x.
foo:/var# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 11G 8.1G 1.9G 81% /
/dev/vol/var 18G 16G 2.7G 85% /var
/dev/vol/home 4.9G 1.8G 3.1G 36% /home
/dev/vol/tmp 500M 61M 439M 13% /tmp
/dev/extra/data 70G 9.5G 60G 14% /data
foo:/var# du . -sh
5.4G .
foo:/var#
Please take a look at /dev/vol/var which is 18G big and it says
16G is already used.
But when I check the disk usage by running du command, it shows
only 5.4G is used.
Then...where does this size mismatch come from?
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Shawn Soon-Son Kwon, founder and leader of KLDP
( http://kldp.org , http://kldp.net )
Phone: 82-16-535-7282 Homepage: http://kldp.org/~kss
-*-*-*-t-h-e-*-o-p-e-n-*-s-o-u-r-c-e-*-c-o-m-m-u-n-i-t-y-
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [linux-lvm] lvm size mismatch?
2004-02-23 19:56 [linux-lvm] lvm size mismatch? Soon-Son Kwon
@ 2004-02-25 9:40 ` David Johnston
0 siblings, 0 replies; 2+ messages in thread
From: David Johnston @ 2004-02-25 9:40 UTC (permalink / raw)
To: linux-lvm
On Mon, 2004-02-23 at 19:56, Soon-Son Kwon wrote:
> Hi I am using lvm on debian woody.
> The version would be about 1.0.x.
>
> foo:/var# df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/vol/var 18G 16G 2.7G 85% /var
>
> foo:/var# du . -sh
> 5.4G .
>
> where does this size mismatch come from?
iirc, df looks at the filesystem's free space maps, while du sums the
file sizes as listed in the directories. I'd guess that you've got
10.6G marked as "in use" in the free space maps that isn't referenced by
any inode. 'fsck -f /var' should fix it; remember that you'll have to
unmount /var first.
--
David Johnston <david@littlebald.com>
Little Bald Consulting, LLC
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-25 14:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-23 19:56 [linux-lvm] lvm size mismatch? Soon-Son Kwon
2004-02-25 9:40 ` David Johnston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox