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

Re: fsck fails!



On Thu, Apr 12, 2007 at 07:55:52PM -0400, Edward J. Shornock wrote:
> Rick Pasotto wrote:
> >I have /home on a logical volume and recently expanded it. This morning
> >I started getting file system errors so I logged out, unmounted /home
> >and ran e2fsk on it. All seemed to be going normally but now it has
> >*twice* displayed the following:
> >
> >----------
> >Pass 1: Checking inodes, blocks, and sizes
> >Group 625's inode table at 20480008 conflicts with some other fs block.
> >Relocate<y>? yes
> >
> >Error allocating 512 contiguous block(s) in block group 625 for inode
> >table: Could not allocate block in ext2 filesystem
> >Restarting e2fsck from the beginning...
> >/home contains a file system with errors, check forced.
> >----------
> >
> >How do I fix it?
> 
> When you expanded /home, did you resize the file system and the LV? 
> Make sure that file system is NOT larger than the LV.

Well, I'm really not *that* stupid. The LV had been expanded several
weeks prior so the resize program was called without a size parameter --
meaning it should expand to the size of the LV.

Anyway the problem was that I used the wrong program for the resizing.

DO NOT USE ext2resize.
DO NOT USE ext2online.

Instead use 'resize2fs' for both mounted and unmounted ext2 filesystems.

I have gotten a patch from the package maintainer (Theodore Tso
<tytso@mit.edu>) so I can fix the corruption. I am currently in the
process of downloading the sources so I can recompile e2fsprogs.

-- 
    Rick Pasotto    rick@niof.net    http://www.niof.net



Reply to: