reiserfsck --rebuild-tree is very slow
Hi,
I've been running "reiserfsck --rebuild-tree /dev/hdd" for 24h now on a 40Gb drive that is 99% full. I am using reiserfsprogs 3.6.2 from Debian unstable.
The result of reiserfsck --check and the result with --fix-fixable:
bread: Cannot read a block # 10052279.
The --rebuild-sb seemed successful:
Did you use resiser(y/n)[n]:
rebuild-sb: wrong block count occured (10052280), fixed (6193026)
rebuild-sb: wrong bitmap number occured (307), fixed (189)
rebuild-sb: no uuid found, a new uuid generated (c30996b1-8a54-45db-8407-102bc973b42b)
rebuild-sb: wrong journal max transaction length occured (0), fixed (1024)
rebuild-sb: wrong journal max batch size occured (0), fixed (900)
rebuild-sb: wrong journal max commit age occured (0), fixed (30) Reiserfs super block in block 16 on 0x1640 of format 3.6 with standard journal
Count of blocks on the device: 6193026
Number of bitmaps: 189
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 82842
Root block: 8384
Filesystem is cleanly umounted
Tree height: 4
Hash function used to sort names: "r5"
Objectid map size 20, max 972
Journal parameters:
Device [0x0]
Magic [0x0]
Size 8193 blocks (including 1 for journal header) (first block 18) Max transaction length 1024 blocks
Max batch size 900 blocks
Max commit age 30
Blocks reserved by journal: 0
Fs state field: 0x1sb_version: 2
inode generation number: 4240
UUID: c30996b1-8a54-45db-8407-102bc973b42b
LABEL:
Set flags in SB:
Is this ok ? (y/n)[n]: y
Do not forget to run reiserfsck --rebuild-tree
Here's my results so far from the --rebuild-tree session:
Replaying journal..
No transactions found
###########
reiserfsck --rebuild-tree started at Sat Aug 3 22:07:31 2002
###########
Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 6110187 blocks marked used Skipping 8399 blocks (super block, journal, bitmaps) 6101788 blocks will be read
0% left 5911812, 2 /sec
From what I can see, this session can last for many years...
Any advise?
Signature · 1 line
patrik_wallstrom->foodfight->[email protected]>+46-709580442
Hello!
Quoted 2 lines · Patrik Wallstrom
The result of reiserfsck --check and the result with --fix-fixable:
bread: Cannot read a block # 10052279.
Hm, what's in kernel logs, is it filled with I/O errors?
Quoted 7 lines
####### Pass 0 #######
Loading on-disk bitmap .. ok, 6110187 blocks marked used Skipping 8399 blocks (super block, journal, bitmaps) 6101788 blocks will be read
0% left 5911812, 2 /sec
From what I can see, this session can last for many years... Any advise?
Look into the kernel logs, if it is filled by many I/O error messages, then it will indeed may atek a lot of time. Also it is possible that the drive itself is reading data very slowly (ie it encounters multiple errors that it tries to correct and this takes huge amount of time, I saw such behaviour with IBM DTLA drives).
If you can access data on the drive just fine without fsck
(I mean if dd if=/dev/device of=/dev/zero bs=4096k works as fast as expected), then this may need more investigations.
Bye,
Oleg
Quoted 8 lines · Oleg Drokin
Hello!
Quoted 2 lines · Patrik Wallstrom
The result of reiserfsck --check and the result with --fix-fixable:
bread: Cannot read a block # 10052279.Hm, what's in kernel logs, is it filled with I/O errors?
Aug 5 06:34:13 motor kernel: hdd: lost interrupt Aug 5 06:34:53 motor last message repeated 4 times Aug 5 06:35:53 motor last message repeated 6 times
Quoted 11 lines
Quoted 2 lines
From what I can see, this session can last for many years... Any advise?
Look into the kernel logs, if it is filled by many I/O error messages, then it will indeed may atek a lot of time. Also it is possible that the drive itself is reading data very slowly (ie it encounters multiple errors that it tries to correct and this takes huge amount of time, I saw such behaviour with IBM DTLA drives).
If you can access data on the drive just fine without fsck
(I mean if dd if=/dev/device of=/dev/zero bs=4096k works as fast as expected), then this may need more investigations.
The read operation from dd was very fast.
Should I just try --rebuild-tree, and wait for some weeks? :) The error from --check was now
Bad root block 4294967295. (--rebuild-tree did not complete)
So I guess I have to...
Signature · 1 line
patrik_wallstrom->foodfight->[email protected]>+46-709580442
Hello!
Quoted 6 lines · Patrik Wallstrom
Quoted 3 lines
Quoted 2 lines
The result of reiserfsck --check and the result with --fix-fixable:
bread: Cannot read a block # 10052279.Hm, what's in kernel logs, is it filled with I/O errors?
Aug 5 06:34:13 motor kernel: hdd: lost interrupt Aug 5 06:34:53 motor last message repeated 4 times Aug 5 06:35:53 motor last message repeated 6 times
Hm, this is a problem of IDE layer then
Quoted 11 lines
Quoted 10 lines
Quoted 2 lines
From what I can see, this session can last for many years... Any advise?
Look into the kernel logs, if it is filled by many I/O error messages, then it will indeed may atek a lot of time. Also it is possible that the drive itself is reading data very slowly (ie it encounters multiple errors that it tries to correct and this takes huge amount of time, I saw such behaviour with IBM DTLA drives).
If you can access data on the drive just fine without fsck
(I mean if dd if=/dev/device of=/dev/zero bs=4096k works as fast as expected), then this may need more investigations.The read operation from dd was very fast.
You mean right now if you interrupt reiserfsck and issue a dd command, it will be fast (ie. you tried it right now), or it was fast some time ago?
How aboult changing blocksize from 4M down to 4k?
Quoted 1 line
Should I just try --rebuild-tree, and wait for some weeks? :)
No, you should fix a problem in your IDE subsystem instead.
Quoted 2 lines
The error from --check was now
Bad root block 4294967295. (--rebuild-tree did not complete)
Yes, this is correct message for unfinished rebuild tree.
Quoted 1 line
So I guess I have to...
As an alternative thing: you can copy your partition to file, run fsck on that file and then dd the file back, but this way the problem you are having won't be fixed. And we have nothing to do with the problem so we cannot help here (err, we can help probably but since that's not reiserfs bug, such a help won't be free).
Bye,
Oleg