On 4 November 2010 12:53, Nick Lunt <[email protected]> wrote: > # df -klP /var > Filesystem 1024-blocks Used Available > Capacity Mounted on > /dev/mapper/VolGroup00-LogVol03 18095332 5268424 11896424 31% > /var > > # bc > bc 1.06 > Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. > This is free software with ABSOLUTELY NO WARRANTY. > For details type `warranty'. > 18095332 - 5268424 > 12826908 > > 12826908 - 11896424 > 930484 > > So df is 930484KB out. Right lets see if that's due to reserved blocks: > > # dumpe2fs /dev/mapper/VolGroup00-LogVol03 | grep -e "Reserved block count" > -e "Block size" > dumpe2fs 1.39 (29-May-2006) > Reserved block count: 232621 > Block size: 4096 > > 232621 blocks at 4KB each = 952815616KB, or 908GB!! > > Obviously I'm miscalculating here, what am I doing wrong ?
Block size is in bytes, not kilobytes. If you do the right maths, you see it equates to your result above: [13:17 s...@rackspace ~ ] $ echo $((232621 * 4)) 930484 -- Sam _______________________________________________ rhelv5-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv5-list
