Skip to contentSkip to conversation

Possible ext3 corruption with 1K block size

DISCUSSION Andrey Borzenkov 4 participants 9 messages Oct 15, 2008 – Dec 18, 2008

lore
Share & tools
lore
#0 lore raw

There is long standing open bug report on Mandriva which is currently beieved to have root cause in file system corruption. It shows itself in RPM DB corruption (at least, there is no other known method to trigger it). So far all reported cases happened on filesystem with 1K block size and stopped when RPM DB was moved to FS with 4K block size.

There are also similar RH reports as well.

Here are references:

https://qa.mandriva.com/show_bug.cgi?id=32547

This one is rather long. Interesting bits are probably around

https://qa.mandriva.com/show_bug.cgi?id=32547#c177
https://qa.mandriva.com/show_bug.cgi?id=32547#c148 (many users reporting dumpe2fs)

https://bugzilla.redhat.com/show_bug.cgi?id=230362
https://bugzilla.redhat.com/show_bug.cgi?id=375931
https://bugzilla.redhat.com/show_bug.cgi?id=305301

The Mandriva bugzilla also mentions this mail from Stephen Tweedie
http://lkml.org/lkml/2007/9/18/232

which indicates some issues with 1K blocks, but according to last comment:
https://qa.mandriva.com/show_bug.cgi?id=32547#c300

it is still present in 2.6.27 (at least was present on -rc6)

There was a kernel bug report http://bugzilla.kernel.org/show_bug.cgi?id=11564,
but in this case it was identified as hardware issue.

#1 lore raw
Quoted 6 lines · Andrey Borzenkov

There is long standing open bug report on Mandriva which is currently beieved to have root cause in file system corruption. It shows itself in RPM DB corruption (at least, there is no other known method to trigger it). So far all reported cases happened on filesystem with 1K block size and stopped when RPM DB was moved to FS with 4K block size.

Quoted 7 lines

There are also similar RH reports as well.

Here are references:

https://qa.mandriva.com/show_bug.cgi?id=32547

This one is rather long.

yep, unfortunately IIRC most of the bug is "me too's" and "how do I do the workaround" :)

Quoted 6 lines

Interesting bits are probably around

https://qa.mandriva.com/show_bug.cgi?id=32547#c177
https://qa.mandriva.com/show_bug.cgi?id=32547#c148 (many users reporting dumpe2fs)

Quoted 6 lines

https://bugzilla.redhat.com/show_bug.cgi?id=230362
https://bugzilla.redhat.com/show_bug.cgi?id=375931
https://bugzilla.redhat.com/show_bug.cgi?id=305301

The Mandriva bugzilla also mentions this mail from Stephen Tweedie
http://lkml.org/lkml/2007/9/18/232

I don't think this is related, in the end... there was some possiblity of corruption from that, but I think it's doubtful it'd hit 1k block filesystems more, and in any case, the corruption has been seen since then if I read it right.

Quoted 7 lines

which indicates some issues with 1K blocks, but according to last comment:
https://qa.mandriva.com/show_bug.cgi?id=32547#c300

it is still present in 2.6.27 (at least was present on -rc6)

There was a kernel bug report http://bugzilla.kernel.org/show_bug.cgi?id=11564,
but in this case it was identified as hardware issue.

My kingdom for a testcase... does anyone have simple steps to reproduce this? Or do they all start with "install mandriva on a 1k block size system?" :)

-Eric

#2 lore raw
Quoted 39 lines · Eric Sandeen
Quoted 6 lines · Andrey Borzenkov

There is long standing open bug report on Mandriva which is currently beieved to have root cause in file system corruption. It shows itself in RPM DB corruption (at least, there is no other known method to trigger it). So far all reported cases happened on filesystem with 1K block size and stopped when RPM DB was moved to FS with 4K block size.

Quoted 7 lines

There are also similar RH reports as well.

Here are references:

https://qa.mandriva.com/show_bug.cgi?id=32547

This one is rather long.

yep, unfortunately IIRC most of the bug is "me too's" and "how do I do the workaround" :)

Quoted 6 lines

Interesting bits are probably around

https://qa.mandriva.com/show_bug.cgi?id=32547#c177
https://qa.mandriva.com/show_bug.cgi?id=32547#c148 (many users reporting dumpe2fs)

Quoted 6 lines

https://bugzilla.redhat.com/show_bug.cgi?id=230362
https://bugzilla.redhat.com/show_bug.cgi?id=375931
https://bugzilla.redhat.com/show_bug.cgi?id=305301

The Mandriva bugzilla also mentions this mail from Stephen Tweedie
http://lkml.org/lkml/2007/9/18/232

I don't think this is related, in the end... there was some possiblity of corruption from that, but I think it's doubtful it'd hit 1k block filesystems more, and in any case, the corruption has been seen since then if I read it right.

Quoted 3 lines

which indicates some issues with 1K blocks, but according to last comment:
https://qa.mandriva.com/show_bug.cgi?id=32547#c300

Quoted 9 lines
Quoted 4 lines

it is still present in 2.6.27 (at least was present on -rc6)

There was a kernel bug report http://bugzilla.kernel.org/show_bug.cgi?id=11564,
but in this case it was identified as hardware issue.

My kingdom for a testcase... does anyone have simple steps to reproduce this? Or do they all start with "install mandriva on a 1k block size system?" :)

May be RH will do? :)

As indicated by last comment, Pascal has some ways to trigger it; I forgot to Cc to him initially; doing it now.

#3 lore raw
Quoted 9 lines · Andrey Borzenkov
Quoted 4 lines · Eric Sandeen

My kingdom for a testcase... does anyone have simple steps to reproduce this? Or do they all start with "install mandriva on a 1k block size system?" :)

May be RH will do? :)

I did try a 1k-block root fs Fedora install, and didn't see any problems...

Quoted 2 lines

As indicated by last comment, Pascal has some ways to trigger it; I forgot to Cc to him initially; doing it now.

Ok, good deal.

-Eric

#4 lore raw
Quoted 9 lines · Eric Sandeen
Quoted 8 lines · Andrey Borzenkov
Quoted 4 lines · Eric Sandeen

My kingdom for a testcase... does anyone have simple steps to reproduce this? Or do they all start with "install mandriva on a 1k block size system?" :)

Quoted 9 lines
Quoted 1 line

May be RH will do? :)

I did try a 1k-block root fs Fedora install, and didn't see any problems...

Quoted 2 lines

As indicated by last comment, Pascal has some ways to trigger it; I forgot to Cc to him initially; doing it now.

Ok, good deal.

On my test machine I reproduce it easily : rpm --rebuilddb and if the db is not detected to be corrupted yet it will be after installing a few packages (tested again with 2.6.27).

If I do the rebuilddb on a 2.6.17 and then reboot on a recent kernel, then I can install/uninstall thousands of packages without any corruption.

I wanted to try a few things including copying the partition to a file and trying to reproduce in a vm.

Given how I can reproduce and repair it i can even write a bisecting script which would basically be an initscript which would do

if on test kernel
- rebuild the db
- install 10 rpm
- remove the 10 rpm
- check the db
- do the good/bad
- reboot onto 2.6.17
else if on 2.6.17
- rebuild the db
- build the kernel
- reboot on test kernel

and let it run :)

All I need is to find some time with nothing more urgent...

#5 lore raw
Quoted 16 lines · Pascal Terjan
Quoted 7 lines · Eric Sandeen
Quoted 6 lines · Andrey Borzenkov
Quoted 4 lines · Eric Sandeen

My kingdom for a testcase... does anyone have simple steps to reproduce this? Or do they all start with "install mandriva on a 1k block size system?" :)

Quoted 7 lines
Quoted 1 line

May be RH will do? :)

I did try a 1k-block root fs Fedora install, and didn't see any problems...

Quoted 2 lines

As indicated by last comment, Pascal has some ways to trigger it; I forgot to Cc to him initially; doing it now.

Ok, good deal.

Quoted 7 lines

On my test machine I reproduce it easily : rpm --rebuilddb and if the db is not detected to be corrupted yet it will be after installing a few packages (tested again with 2.6.27).

If I do the rebuilddb on a 2.6.17 and then reboot on a recent kernel, then I can install/uninstall thousands of packages without any corruption.

so it seems to be the database rebuilding, under a recent kernel, which causes the problem? installing under a recent kernel is ok, as long as the db was created on an older kernel?

Ok that's a good clue...

-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
Quoted 21 lines · Eric Sandeen
Quoted 20 lines · Pascal Terjan
Quoted 7 lines · Eric Sandeen
Quoted 6 lines · Andrey Borzenkov
Quoted 4 lines · Eric Sandeen

My kingdom for a testcase... does anyone have simple steps to reproduce this? Or do they all start with "install mandriva on a 1k block size system?" :)

Quoted 7 lines
Quoted 1 line

May be RH will do? :)

I did try a 1k-block root fs Fedora install, and didn't see any problems...

Quoted 2 lines

As indicated by last comment, Pascal has some ways to trigger it; I forgot to Cc to him initially; doing it now.

Ok, good deal.

On my test machine I reproduce it easily : rpm --rebuilddb and if the db is not detected to be corrupted yet it will be after installing a few packages (tested again with 2.6.27).

Quoted 7 lines
Quoted 3 lines

If I do the rebuilddb on a 2.6.17 and then reboot on a recent kernel, then I can install/uninstall thousands of packages without any corruption.

so it seems to be the database rebuilding, under a recent kernel, which causes the problem? installing under a recent kernel is ok, as long as the db was created on an older kernel?

Yes

#7 lore raw
In reply to Eric Sandeen

Hi Eric,

Quoted 25 lines
Quoted 16 lines · Pascal Terjan
Quoted 7 lines · Eric Sandeen
Quoted 6 lines · Andrey Borzenkov
Quoted 4 lines · Eric Sandeen

My kingdom for a testcase... does anyone have simple steps to reproduce this? Or do they all start with "install mandriva on a 1k block size system?" :)

Quoted 7 lines
Quoted 1 line

May be RH will do? :)

I did try a 1k-block root fs Fedora install, and didn't see any problems...

Quoted 2 lines

As indicated by last comment, Pascal has some ways to trigger it; I forgot to Cc to him initially; doing it now.

Ok, good deal.

Quoted 7 lines

On my test machine I reproduce it easily : rpm --rebuilddb and if the db is not detected to be corrupted yet it will be after installing a few packages (tested again with 2.6.27).

If I do the rebuilddb on a 2.6.17 and then reboot on a recent kernel, then I can install/uninstall thousands of packages without any corruption.

Quoted 5 lines

so it seems to be the database rebuilding, under a recent kernel, which causes the problem? installing under a recent kernel is ok, as long as the db was created on an older kernel?

Ok that's a good clue...

Have you been able to track this down? Anything interesting?

Honza

Signature · 6 lines
Jan Kara <[email protected]>
SuSE CR Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw
Quoted 7 lines · Jan Kara

Hi Eric,

Have you been able to track this down? Anything interesting?

Honza

No, unfortunately this kind of dropped off my radar recently...

-Eric