Skip to contentSkip to conversation

Bad root block 0. (--rebuild-tree did not complete)

DISCUSSION Marc Schmitt 3 participants 6 messages Dec 2, 2003

lore
Share & tools
lore
#0 lore raw

Hi list,

Attached to a Dell PE8450 (8 CPUs, 4GB RAM) we have a PowerVault 210 Storage with 12 70GB SCSI disks in a RAID5 container w/ spare disk managed by a

scsi2 : Found a MegaRAID controller at 0xf8853000, IRQ: 24 scsi2 : Enabling 64 bit support
megaraid: [1.73:3.27] detected 1 logical drives

The machine is primarily running as NFS server under kernel 2.4.21 and now under 2.4.23, reiserfsprogs 3.6.11. Twice already I had to run reiserfsck --rebuild-tree this year due to weird corruption issues. Since a couple of weeks (when the server was running under 2.4.21), we've seen strange console output and users were claiming files had been lost or they would get "permission denied" errors.

Example console output:

Dec  1 05:28:37 sim0 kernel: vs-5150: search_by_key: invalid format found in block 175880844. Fsck?
Dec  1 05:28:37 sim0 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [562045 562059 0x0 SD]
Dec  1 05:28:37 sim0 kernel: is_tree_node: node level 22058 does not match to the expected one 1
Dec  1 05:28:37 sim0 kernel: vs-5150: search_by_key: invalid format found in block 175880844. Fsck?
Dec  1 05:28:37 sim0 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [562045 562056 0x0 SD]
Dec  1 05:28:37 sim0 kernel: is_tree_node: node level 22058 does not match to the expected one 1
Dec  1 05:28:37 sim0 kernel: vs-5150: search_by_key: invalid format found in block 175880844. Fsck?
Dec  1 05:28:37 sim0 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [562045 562079 0x0 SD]
Dec  1 05:28:37 sim0 kernel: is_tree_node: node level 22058 does not match to the expected one 1
Dec  1 05:28:37 sim0 kernel: vs-5150: search_by_key: invalid format found in block 175880844. Fsck?
Dec  1 05:28:37 sim0 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [562045 564468 0x0 SD]
Dec  1 05:28:37 sim0 kernel: is_tree_node: node level 22058 does not match to the expected one 1
Dec  1 05:28:37 sim0 kernel: vs-5150: search_by_key: invalid format found in block 175880844. Fsck?
Dec  1 05:28:37 sim0 kernel: vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [562057 562089 0x0 SD]
Dec  1 16:15:33 sim0 kernel: vs-7000: search_by_entry_key: search_by_key returned item position == 0<4>zam-7001: io error in reiserfs_find_entry
Dec  1 16:15:36 sim0 kernel: vs-7000: search_by_entry_key: search_by_key returned item position == 0<4>vs-7000: search_by_entry_key: search_by_key returned item position == 0<4>zam-7001: io error in reiserfs_find_entry

As the output suggested, I ran reiserfsck. I don't have the log of that check, but it ended suggesting to run reiserfsck --rebuild-tree. As I said, I've done --rebuild-tree twice already over one year and there were no problems so far. This time, the fsck bombed out with a Segmentation Fault after running for about 10 hours. I started it again, sorry, I have no log, it stopped after 10 hours of running again with a Segementation Fault.

When I try to mount it, the dmesg output is:
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device sd(8,38)) ...
for (sd(8,38))
is_tree_node: node level 0 does not match to the expected one 65534
sd(8,38):vs-5150: search_by_key: invalid format found in block 0. Fsck? sd(8,38):vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [1 2 0x0 SD] sd(8,38):Using r5 hash to sort names
is_tree_node: node level 0 does not match to the expected one 65534
sd(8,38):vs-5150: search_by_key: invalid format found in block 0. Fsck? sd(8,38):vs-2140: finish_unfinished: search_by_key returned -2

When I run a simple reiserfsck it says:
Replaying journal..
0 transactions replayed
Checking internal tree..

Bad root block 0. (--rebuild-tree did not complete)

Aborted

Should I start restoring from tape?

Greetz
Marc

#1 lore raw

Hi Marc,

Quoted 17 lines · Marc Schmitt

Hi list,

Attached to a Dell PE8450 (8 CPUs, 4GB RAM) we have a PowerVault 210 Storage with 12 70GB SCSI disks in a RAID5 container w/ spare disk managed by a

scsi2 : Found a MegaRAID controller at 0xf8853000, IRQ: 24 scsi2 : Enabling 64 bit support
megaraid: [1.73:3.27] detected 1 logical drives

The machine is primarily running as NFS server under kernel 2.4.21 and now under 2.4.23, reiserfsprogs 3.6.11. Twice already I had to run reiserfsck --rebuild-tree this year due to weird corruption issues. Since a couple of weeks (when the server was running under 2.4.21), we've seen strange console output and users were claiming files had been lost or they would get "permission denied" errors.

Quoted 7 lines

As the output suggested, I ran reiserfsck. I don't have the log of that check, but it ended suggesting to run reiserfsck --rebuild-tree. As I said, I've done --rebuild-tree twice already over one year and there were no problems so far. This time, the fsck bombed out with a Segmentation Fault after running for about 10 hours. I started it again, sorry, I have no log, it stopped after 10 hours of running again with a Segementation Fault.

Would you run
debugreiserfs -p /dev/problem_device | bzip2 -c > metadata.bz2
and make it available for downloading. I will debug the problem locally then.

Quoted 10 lines

When I run a simple reiserfsck it says:
Replaying journal..
0 transactions replayed
Checking internal tree..

Bad root block 0. (--rebuild-tree did not complete)

Aborted

Should I start restoring from tape?

Let's try to find the problem first.

Signature · 2 lines
Thanks,
Vitaly Fertman
#2 lore raw

Hi Vitaly,

Thanks for the fast answer.

Quoted 32 lines · Vitaly Fertman

Hi Marc,

Quoted 17 lines · Marc Schmitt

Hi list,

Attached to a Dell PE8450 (8 CPUs, 4GB RAM) we have a PowerVault 210 Storage with 12 70GB SCSI disks in a RAID5 container w/ spare disk managed by a

scsi2 : Found a MegaRAID controller at 0xf8853000, IRQ: 24 scsi2 : Enabling 64 bit support
megaraid: [1.73:3.27] detected 1 logical drives

The machine is primarily running as NFS server under kernel 2.4.21 and now under 2.4.23, reiserfsprogs 3.6.11. Twice already I had to run reiserfsck --rebuild-tree this year due to weird corruption issues. Since a couple of weeks (when the server was running under 2.4.21), we've seen strange console output and users were claiming files had been lost or they would get "permission denied" errors.

Quoted 9 lines

As the output suggested, I ran reiserfsck. I don't have the log of that check, but it ended suggesting to run reiserfsck --rebuild-tree. As I said, I've done --rebuild-tree twice already over one year and there were no problems so far. This time, the fsck bombed out with a Segmentation Fault after running for about 10 hours. I started it again, sorry, I have no log, it stopped after 10 hours of running again with a Segementation Fault.

Quoted 4 lines

Would you run
debugreiserfs -p /dev/problem_device | bzip2 -c > metadata.bz2
and make it available for downloading. I will debug the problem locally then.

It is running now. I'll make the file metadata.bz2 available for downloading asap. ETA is 10h, right, if the reiserfsck --rebuild-tree took 10h before it segfaulted?

Quoted 2 lines

Let's try to find the problem first.

That gives hope... ;)

Greetz
Marc

#3 lore raw
Quoted 8 lines · Marc Schmitt

Hi Vitaly,

Thanks for the fast answer.

Quoted 2 lines · Vitaly Fertman

Hi Marc,

[...]

Quoted 8 lines
Quoted 5 lines

Would you run debugreiserfs -p /dev/problem_device | bzip2 -c >
metadata.bz2
and make it available for downloading. I will debug the problem locally then.

It is running now. I'll make the file metadata.bz2 available for downloading asap. ETA is 10h, right, if the reiserfsck --rebuild-tree took 10h before it segfaulted?

No. More like a few minutes for disk accesses and some time for compressing the result. The command is of the "read all metadata and dump it without any additional checks whatsoever" variety.

Carl-Daniel

Signature · 1 line
http://www.hailfinger.org/
#4 lore raw

Hi Carl-Daniel,

Quoted 31 lines · Carl-Daniel Hailfinger
Quoted 12 lines · Marc Schmitt

Hi Vitaly,

Thanks for the fast answer.

Quoted 4 lines · Vitaly Fertman

Hi Marc,

[...]

Quoted 7 lines
Quoted 7 lines

Would you run debugreiserfs -p /dev/problem_device | bzip2 -c >
metadata.bz2
and make it available for downloading. I will debug the problem locally then.

Quoted 5 lines

It is running now. I'll make the file metadata.bz2 available for downloading asap. ETA is 10h, right, if the reiserfsck --rebuild-tree took 10h before it segfaulted?

Quoted 4 lines

No. More like a few minutes for disk accesses and some time for compressing the result. The command is of the "read all metadata and dump it without any additional checks whatsoever" variety.

Hmm, it's running for 15' now and it does not look like it's going to finish soon:

debugreiserfs 3.6.11 (2003 www.namesys.com)

Loading on-disk bitmap .. 162980857 bits set - done
super block..ok
bitmaps..(5396).. ok
journal (from 18 to 8210)..ok
Super block, bitmaps, journal - 13590 blocks - done, 162967267 blocks left
0% left 161169318, 1250 /sec

The file metadata.bz2 is still growing. The 1250 /sec increased slowly during fsck and went up to 6000 /sec towards the end. At the current pace, it would take 36h...

Greetz
Marc

#5 lore raw

Hi Marc,

Quoted 18 lines · Marc Schmitt
Quoted 4 lines · Carl-Daniel Hailfinger
Quoted 2 lines · Marc Schmitt

[...]

Quoted 8 lines
Quoted 3 lines

It is running now. I'll make the file metadata.bz2 available for downloading asap. ETA is 10h, right, if the reiserfsck --rebuild-tree took 10h before it segfaulted?

No. More like a few minutes for disk accesses and some time for compressing the result. The command is of the "read all metadata and dump it without any additional checks whatsoever" variety.

Hmm, it's running for 15' now and it does not look like it's going to finish soon:

[...]

Quoted 7 lines

Super block, bitmaps, journal - 13590 blocks - done, 162967267 blocks left
0% left 161169318,
1250 /sec

The file metadata.bz2 is still growing. The 1250 /sec increased slowly during fsck and went up to 6000 /sec towards the end. At the current pace, it would take 36h...

Sorry, I totally underestimated your disk_size/transfer_rate ratio. Your disks are probably 1000x larger than mine (4GB), but not 1000x faster.

Regards,
Carl-Daniel

Signature · 1 line
http://www.hailfinger.org/