Re: lvm size mismatch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux