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

Re: [linux-lvm] e2fsck error



You write:
> I am trying to resize my ext2 fs but I get an error from ext2resize:
> 
> ext2resize: ext2_open: filesystem has errors! e2fsck first!
> ext2resize: can't open /dev/junior/site
> 
> At this point I do did a 'umount /dev/junior/site'
> Then I do a 'e2fsck -fyv /dev/junior/site &'

You should probably run "e2fsck -fpv /dev/junior/site", because there
are a few anwers which should be "n" and not "y".  The "-p" option
will pick the right one (-y always answers "y").  It may not make a
difference in this case.  Also, don't run it in the background, in
case it wants to ask some questions.

> It returns this:
> 
> Pass 1: Checking inodes, blocks, and sizes
> Group 3125's block bitmap at 102400000 conflicts with some other fs block.
> Relocate? yes
> 
> Group 3125's inode bitmap at 102400001 conflicts with some other fs block.
> Relocate? yes

Strangely, the bitmaps are in the same location as a superblock and group
descriptor backup (group 3125 = 5^5 is a "sparse" group).

> It finds other errors which I believe it fixes but not the above error.  If 
> I re-run e2fsck then it comes up with the above error again.

Strange.  e2fsck _should_ be able to fix this, but maybe it has never
been tested before.  How did you get into this situation in the first place?
Your previous posting indicated that you weren't running e2fsck on your
filesystem with errors?  What version of ext2resize are you using?  Did
you ever "force" a resize?  In any case, probably a good time to make a
backup.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert


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