[NTLUG:Discuss] dumpe2fs and repquota not agreeing on block size

David Stanaway david at stanaway.net
Mon Oct 27 22:18:26 CDT 2008


Rude and crude:

david at duey:~$ sudo dd if=/dev/sda1 of=sda1.head bs=4M count=1
1+0 records in
1+0 records out
4194304 bytes (4.2 MB) copied, 0.0802891 seconds, 52.2 MB/s
david at duey:~$ sudo /sbin/e2fsck sda1.head
e2fsck 1.40-WIP (14-Nov-2006)
sda1.head: recovering journal
sda1.head: Attempt to read block from filesystem resulted in short read 
while re ading block 1120

JBD: Failed to read block at offset 112
/sbin/e2fsck: Input/output error while recovering ext3 journal of sda1.head


Okay - ~1120 blocks = 4K block size.




Neil Aggarwal wrote:
> Hello:
>
> I am trying to set up user quotas on my /var
> partition to enforce limits on user's mailbox
> sizes.
>
> When I do this:
> /sbin/dumpe2fs /dev/md2 | grep 'Block size'
> Block size:               4096
>
> That tells me the block size is 4k.
>
> But, if I do:
> repquota /var
>
> It is telling me that one of my users is
> currently using 10264 blocks.  But, if I look
> at their mail file, it is 10493792 bytes,
> which means they should be using 2562 blocks
> or so.
>
> Also, if I do:
> df /var
>
> I get this
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/md2              39674140  20401792  17224468  55% /var
>
> Which tells me the blocks are 1K in size.  The repquota
> result makes much more sense with a 1K block size.
>
> Any idea why dumpe2fs is giving a 4K block size?
>
> Thanks,
> 	Neil
>
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details. 
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
>   




More information about the Discuss mailing list