Filesystem corruption
Hi,
I've got a problem with reiserfs today while I was trying to access
my network files. I tried browsing my network drive and found out that some of my directories were empty. So I unmounted the partition and ran reiserfsck(3.6.8), it said I had 4 corruptions and told me to run --rebuild-tree. And so I did and it recovered only 7.8GB of 47.8GB of the files. I'm guessing the reason why it recovered so little was because that because I was running a 7.8GB+40GB LVM and the 40GB pyhsical volume wasn't working and left it with only 7.8GB.
Here's the specs of my system: linux-2.4.21, reisfs-3.6.8, LVM-1.0.7 (7.8GB + 40GB)
Partitions:
/dev/hda (ext2) / 3.2GB
/dev/hdb+/dev/hdg => /dev/main_vg/storage_lv(reiserfs)/mnt/storage 47.8GB
Here's some output of dmesg at the point where I discovered the problem:
is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 8838461. Fsck?is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 8838461. Fsck?is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 11534730. Fsck?is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 8838461. Fsck?is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 8838461. Fsck?is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 3412777. Fsck?is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 11534730. Fsck?is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 11604101. Fsck?is_tree_node: node level 0 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 11534730. Fsck?
reiserfs: checking transaction log (device 3a:00) ...is_tree_node: node level 32769 does not match to the expected one 1
vs-5150: search_by_key: invalid format found in block 5505049. Fsck?
vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [1 2 0x0 SD] Using r5 hash to sort namesis_tree_node: node level 0 does not match to the expected one 2
vs-5150: search_by_key: invalid format found in block 2412772. Fsck?
vs-2140: finish_unfinished: search_by_key returned -2
ReiserFS version 3.6.25
reiserfs: checking transaction log (device 3a:00) ...is_leaf: free space seems wrong: level=1, nr_items=1, free_space=778 rdkey
vs-5150: search_by_key: invalid format found in block 5505049. Fsck?
vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [1 2 0x0 SD] Using r5 hash to sort namesis_tree_node: node level 0 does not match to the expected one 2
vs-5150: search_by_key: invalid format found in block 2412772. Fsck?
vs-2140: finish_unfinished: search_by_key returned -2
ReiserFS version 3.6.25
VFS: Can't find ext3 filesystem on dev lvm(58,0).
reiserfs: checking transaction log (device 3a:00) ...is_leaf: free space seems wrong: level=1, nr_items=1, free_space=778 rdkey
vs-5150: search_by_key: invalid format found in block 5505049. Fsck?
vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [1 2 0x0 SD] Using r5 hash to sort namesis_tree_node: node level 0 does not match to the expected one 2
vs-5150: search_by_key: invalid format found in block 2412772. Fsck?
vs-2140: finish_unfinished: search_by_key returned -2
ReiserFS version 3.6.25
And also when rebooting after the corruption I saw several error messages for all drives, hda, hdb and hdg **
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
**The messages are copied from the FAQ in namesys.com because they looked similar so I'm not sure if they're the exactly same.
I tried loading a previous kernel(2.4.20) and the error messages were gone, this was probably because of some errors I made when configuring the 2.4.21 kernel. It was the first time I've compiled the kernel without thoroughly checking the configurations and now I suffer the consequences.
Is there anything I can try to recover more data?
Regards,
Kent
Hello!
Quoted 3 lines · Locke
the files. I'm guessing the reason why it recovered so little was because that because I was running a 7.8GB+40GB LVM and the 40GB pyhsical volume wasn't working and left it with only 7.8GB.
Yes of course.
Quoted 2 lines
is_tree_node: node level 0 does not match to the expected one 1
vs-5150:search_by_key: invalid format found in block 8838461. Fsck?
So LVM substitures zero filled blocks instead of data if physical volume is unavailable.
Of course reiserfsck happily thrown all of those blocks out of the tree.
Quoted 7 lines
And also when rebooting after the corruption I saw several error messages for all drives, hda, hdb and hdg
**
hda:dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda:dma_intr: error=0x84 { DriveStatusError BadCRC }
hda:dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda:dma_intr: error=0x84 { DriveStatusError BadCRC }
Also you should consider replacing your noisy IDE cable for primary IDE controller with not noisy one. Or just run in lower UDMA mode.
Quoted 2 lines
**The messages are copied from the FAQ in namesys.com because they looked similar so I'm not sure if they're the exactly same.
Well, if they are not the same, you'd better write them down on paper.
Quoted 1 line
Is there anything I can try to recover more data?
You might try to get LVM up again and run reiserfsck --rebuild tree. Some more stuff wuill be restored.
Though still you will have lots of files' content lost and there is no way to restore it anymore.
Also use reiserfsck 3.6.11
Bye,
Oleg