Re: new_block error

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

 



On Thu, 2008-02-28 at 11:45 -0700, Chris Kottaridis wrote:
> I have a 2.6.21 kernel and under heavy load I seem to be trapsing
> through this code in
> 
> fs/ext3/balloc.c ext3_new_blocks():
> 
>  if (in_range(le32_to_cpu(gdp->bg_block_bitmap), ret_block, num) ||
>      in_range(le32_to_cpu(gdp->bg_inode_bitmap), ret_block, num) ||
>      in_range(ret_block, le32_to_cpu(gdp->bg_inode_table),
>               EXT3_SB(sb)->s_itb_per_group) ||
>      in_range(ret_block + num - 1, le32_to_cpu(gdp->bg_inode_table),
>               EXT3_SB(sb)->s_itb_per_group))
>      ext3_error(sb, "ext3_new_block",
>                "Allocating block in system zone - "
>                "blocks from "E3FSBLK", length %lu",
>                 ret_block, num);
> 
> performed_allocation = 1;
> 
> I get this error:
> 
> Feb 12 13:29:24 slot0_10 kernel: EXT3-fs error (device dm-0):
> ext3_new_block: Allocating block in system zone - blocks
> from 86966272, length 5
> Feb 12 13:29:24 slot0_10 kernel: Aborting journal on device dm-0.
> Feb 12 13:29:24 slot0_10 kernel: EXT3-fs error (device dm-0) in
> ext3_reserve_inode_write: Journal has aborted
> 
> The call to ext3_error() not only prints the error message, but calls
> ext3_handle_error() which apparently puts the file system into read-only
> mode. Usually the filesystem needs to be rebuilt once this happens.
> 
> I am not real sure what the "system zone" is about here or what the
> message is trying to tell us.This doesn't seem to be a out of disk space
> error as there is a -ENOSPC error check earlier that we seem to get
> past. It seems like the blocks were able to be allocated, so I am a
> little curious about why the file system gets marked as read-only.
> 

It complains that the new allocated block is located in the range that
is used to store fs metadata (superblocks, bitmaps, inode table etc).
Those fs metadata blocks should always marked as used on bitmaps, so
block allocator should never returns a new block in that range if it
does things correct.

> Any comments appreciated.
> 

Is there any other error message print in dmesg before the fs starts to
complain?

Mingming

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux