Skip to contentSkip to conversation

tests to see how ext3 reiserfs 3.6 and jfs survive disk errors.

DISCUSSION Ivan Ivanov 3 participants 3 messages Mar 31, 2004

lore
Share & tools
lore
#0 lore raw

I made some tests to see how ext3 reiserfs 3.6 and jfs survive disk errors.

The test is simple:
format a partition, copy the kernel source, unmount and and do ?dd if=/dev/zero of=/dev/hdd bs=512 count=100000 seek=30000? to simulate a disk surface damage and then run fsck.

seek=30000 ? this must be the second half of journal in reiserfs and ext3, for jfs I don't know

Result:

jfs:
----
total data loss, can't mount, fsck didn't helps

reiserfs:
---------
doing ?reiserfsck ?rebuild-tree? moves all recovered data in lost+found, but information is almost unusable

ext3:
-----
after ?fsck.ext3 -f -y? almost everything was usable, directory structure was untouched, some files was moved in lost+found, but in general
everything was usable.

My opinion:
I can't use anything but ext2/3 in a system where there is no RAID ? 99% of desktops and most of web and mail servers.

Cheers
Ivan

#1 lore raw

Hello

Quoted 11 lines · Ivan Ivanov

I made some tests to see how ext3 reiserfs 3.6 and jfs survive disk errors.

The test is simple:
format a partition, copy the kernel source, unmount and and do ?dd if=/dev/zero of=/dev/hdd bs=512 count=100000 seek=30000? to simulate a disk surface damage and then run fsck.

seek=30000 ? this must be the second half of journal in reiserfs and ext3, for jfs I don't know

Well, not that I defend reiserfs's i/o error handling

But I do not think that your test is a fare one. You overwrote area where reiserfs stored metadata for data you copied into it. (not sure about jfs, it probably has the same problem). Do you want to try to overwrite ext3's inode tables?

Quoted 29 lines

Result:

jfs:
----
total data loss, can't mount, fsck didn't helps

reiserfs:
---------
doing ?reiserfsck ?rebuild-tree? moves all recovered data in lost+found, but information is almost unusable

ext3:
-----
after ?fsck.ext3 -f -y? almost everything was usable, directory structure was untouched, some files was moved in lost+found, but in general
everything was usable.

My opinion:
I can't use anything but ext2/3 in a system where there is no RAID ? 99% of desktops and most of web and mail servers.

Cheers
Ivan

#2 lore raw
Quoted 13 lines · Vladimir Saveliev
Quoted 11 lines · Ivan Ivanov

I made some tests to see how ext3 reiserfs 3.6 and jfs survive disk errors.

The test is simple:
format a partition, copy the kernel source, unmount and and do ?dd if=/dev/zero of=/dev/hdd bs=512 count=100000 seek=30000? to simulate a disk surface damage and then run fsck.

seek=30000 ? this must be the second half of journal in reiserfs and ext3, for jfs I don't know

Quoted 6 lines

Well, not that I defend reiserfs's i/o error handling

But I do not think that your test is a fair one. You overwrote area where reiserfs stored metadata for data you copied into it. (not sure about jfs, it probably has the same problem). Do you want to try to overwrite ext3's inode tables?

Actually, with a 51MB write it is guaranteed to overwrite at least one inode table somewhere in the filesystem (one inode table per 32MB of disk). One of the reasons that ext2/ext3 can survive such actions is that the location of the metadata is in a fixed location so even if everything is overwritten it knows what is inode table, what is data blocks, etc. This makes ext3 less flexible (i.e. no dynamic inode allocation) but also more robust.

Quoted 16 lines
Quoted 16 lines

jfs:
----
total data loss, can't mount, fsck didn't helps

reiserfs:
---------
doing ?reiserfsck ?rebuild-tree? moves all recovered data in lost+found, but information is almost unusable

ext3:
-----
after ?fsck.ext3 -f -y? almost everything was usable, directory structure was untouched, some files was moved in lost+found, but in general
everything was usable.

Quoted 3 lines
Quoted 3 lines

My opinion:
I can't use anything but ext2/3 in a system where there is no RAID ? 99% of desktops and most of web and mail servers.

If you have time, you may want to try overwriting some other parts of the filesystem, just to see if the results change. I don't think it will make a huge difference in the end, but it might. Note that 51MB is a large fraction of the size of a Linux kernel so you might end up overwriting 1/4 of all the data.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/