On Monday 01 October 2001 12:01, you wrote:
> IMHO, when hardware starts to fail - it is time to think about changing
> it.
> Reiserfs has not way to know when it should give up. It sends correct
> data to
> disk, broken hardware writes it wrong. Who did corrupt the data then?
> The worst thing in your case is (as it looks for me) that you do not
> have
> unreadable blocks in certain places but harddisk fails randomly.
You have a valid point. The thing is just that I can see from my syslog that
reiserfs "knew" something was very wrong, yet it just kept going. Perhaps it
should stop writing to the disk at that point (note that I didn't perform any
write operations, just "ls" and "cd" (unless modifying atime counts as write,
I think I forgot to mount with noatime :-( )).
> Anyway, next time your data will become available - you should find a
> way to
> backup then on reliable hardware.
Here's my new problem: I can't get the data back this time. Can someone give
me some good ideas on how to get my data back? I ran
reiserfsck --rebuild-tree /dev/md0
and it segfaulted during pass 1 as shown here:
....20%....40%....60%....80%....100% left 0, 545 /sec
not set got 5146 hits
"r5" got 1154 hits
Flushing..done
Read blocks (but not data blocks) 18251667
Leaves among those 6791
- corrected leaves 5366
- leaves all contents of which could not be saved and
deleted 3
pointers in indirect items to wrong area 1005357 (zeroed)
Objectids found 804
Pass 1 (will try to insert 6788 leaves):
####### Pass 1 #######
Looking for allocable blocks .. ok
0%build_the_tree: nothing but leaves are expected. Block 8212 - ?? 6787, 0
/sec
build_the_tree: nothing but leaves are expected. Block 8241 - ?? 6786, 0 /sec
build_the_tree: nothing but leaves are expected. Block 8242 - ?? 6785, 0 /sec
build_the_tree: nothing but leaves are expected. Block 8243 - ?? 6784, 0 /sec
build_the_tree: nothing but leaves are expected. Block 8245 - ?? 6783, 0 /sec
build_the_tree: nothing but leaves are expected. Block 8246 - ?? 6782, 0 /sec
build_the_tree: nothing but leaves are expected. Block 8250 - ?? 6781, 0 /sec
build_the_tree: nothing but leaves are expected. Block 8255 - ?? 6780, 0 /sec
left 6779, 0 /sec
mark_block_used: (2049648) used already
Aborted (core dumped)
When I try to mount the disk, it seems that it's completely trashed this time.
[root@monsterbob fsck]# mount /mnt/disk
mount: wrong fs type, bad option, bad superblock on /dev/md0,
or too many mounted file systems
Trying to rebuild-tree again, it coredumps:
Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 18260601 blocks marked used
bit 20021248, bitsize 20009824
reiserfsck: bitmap.c:134: reiserfs_bitmap_test_bit: Assertion `bit_number <
bm->bm_bit_size' failed.
Aborted (core dumped)
So I hope someone has an idea on how to save my data, or else I'll have to
reformat :-(.
Thanks,
Jonas Jensen