On Saturday 22 January 2005 15:06, Robert Harnaga wrote:
> I have a question about why --rebuilt-tree says it's correcting errors but
> then those same exact errors show up again and again after an immediate
> rerun and after a clean reboot.
Hopefully the attached email will clarify this.
> I'm running SUSE 9.2 in 64-bit mode with reiserfsck 3.6.18. I'm running
> with 15k RPM SCSI drives. Any ideas on how to get rebuild-tree to really
> correct the errors and keep them correct after boot?
>
>
> Details below...
>
> Run #1: After rebooting into single user mode, I ran fsck.reiserfs
> --rebuild-tree and got ERRORS
> ===========================================================================
>==
>
> (none):~ # fsck.reiserfs --rebuild-tree /dev/sda4 -q
> reiserfsck 3.6.18 (2003 www.namesys.com)
>
> *************************************************************
> ** Do not run the program with --rebuild-tree unless **
> ** something is broken and MAKE A BACKUP before using it. **
> ** If you have bad sectors on a drive it is usually a bad **
> ** idea to continue using it. Then you probably should get **
> ** a working hard drive, copy the file system from the bad **
> ** drive to the good one -- dd_rescue is a good tool for **
> ** that -- and only then run this program. **
> ** If you are using the latest reiserfsprogs and it fails **
> ** please email bug reports to [email protected], **
> ** providing as much information as possible -- your **
> ** hardware, kernel, patches, settings, all reiserfsck **
> ** messages (including version), the reiserfsck logfile, **
> ** check the syslog file for any related information. **
> ** If you would like advice on using this program, support **
> ** is available for $25 at www.namesys.com/support.html. **
> *************************************************************
>
> Will rebuild the filesystem (/dev/sda4) tree
> Will put log info to 'stdout'
>
> Do you want to run this program?[N/Yes] (note need to type Yes if you
> do):Yes Replaying journal..
> Reiserfs journal '/dev/sda4' in blocks [18..8211]: 0 transactions
> replayed ###########
> reiserfsck --rebuild-tree started at Sat Jan 22 05:19:17 2005
> ###########
>
> Pass 0:
> ####### Pass 0 #######
> Loading on-disk bitmap .. ok, 5757257 blocks marked used
> Skipping 8451 blocks (super block, journal, bitmaps) 5748806 blocks
> will be read 0%.block 348919: The number of items (256) is incorrect,
> should be (1) - corrected block 348919: The free space (0) is incorrect,
> should be (4048) - corrected pass0: block 348919, item 0: StatData item of
> wrong length found 1065353216 10 0x0 SD (0), len 0, location 4096 entry
> count 7680, fsck need 0, format BAD - deleted block 487094: The number of
> items (256) is incorrect, should be (1) - corrected block 487094: The free
> space (0) is incorrect, should be (4048) - corrected pass0: block 487094,
> item 0: StatData item of wrong length found 1065353216 10 0x0 SD (0), len
> 0, location 4096 entry count 7680, fsck need 0, format BAD - deleted
> ...20%..block 2292973: The free space (49543) is incorrect, should be
> (4072) - corrected block 2297198: The free space (17616) is incorrect,
> should be (4072) - corrected block 2323041: The free space (18732) is
> incorrect, should be (4072) - corrected block 2328937: The free space
> (8242) is incorrect, should be (4072) - corrected block 2348193: The free
> space (54727) is incorrect, should be (4072) - corrected block 2371277: The
> number of items (12544) is incorrect, should be (1) - corrected block
> 2371277: The free space (35830) is incorrect, should be (4048) - corrected
> pass0: vpf-10110: block 2371277, item (0): Unknown item type found
> [3770748138 969408772 0x23740850 ??? (15)] - deleted ..40%block 3460718:
> The free space (11016) is incorrect, should be (4072) - corrected ..block
> 4104106: The number of items (63) is incorrect, should be (1) - corrected
> block 4104106: The free space (65280) is incorrect, should be (4048) -
> corrected pass0: vpf-10110: block 4104106, item (0): Unknown item type
> found [33488897 130816 0xff0001ff ??? (15)] - deleted block 4115015: The
> free space (2647) is incorrect, should be (4072) - corrected block 4179064:
> The free space (0) is incorrect, should be (4072) - corrected
> ..60%....80%...block 7583485: The number of items (33808) is incorrect,
> should be (1) - corrected block 7583485: The free space (0) is incorrect,
> should be (4048) - corrected pass0: vpf-10110: block 7583485, item (0):
> Unknown item type found [16799326 16777472 0x5e5000021042210 ??? (6)] -
> deleted .100%
> 147053 directory entries were hashed with "r5" hash.
> "r5" hash is selected
> Flushing..finished
> Read blocks (but not data blocks) 5748806
> Leaves among those 18655
> - leaves all contents of which could not be
> saved and deleted 13 Objectids found 147055
>
> Pass 1 (will try to insert 18642 leaves):
> ####### Pass 1 #######
> Looking for allocable blocks .. finished
> 0%....20%....40%....60%....80%....100%
> Flushing..finished
> 18642 leaves read
> 18575 inserted
> 67 not inserted
> ####### Pass 2 #######
>
> Pass 2:
> 0%....20%....40%....60%....80%....100%
> Flushing..finished
> Leaves inserted item by item 67
> Pass 3 (semantic):
> ####### Pass 3 #########
> Flushing..finished
> Files found: 62444
> Directories found: 6304
> Symlinks found: 78293
> Others: 13
> Pass 3a (looking for lost dir/files):
> ####### Pass 3a (lost+found pass) #########
> Looking for lost directories:
> Flushing..finished
> Pass 4 - finished
> Flushing..finished
> Syncing..finished
> ###########
> reiserfsck finished at Sat Jan 22 05:25:54 2005
> ###########
> (none):~ #
>
>
>
>
> Run #2: As a test to see if it fixed it, I did a 2nd single user mode
> reboot, I ran fsck.reiserfs --rebuild-tree => ERRORS again (same ones)
> ===========================================================================
>============================ (none):~ # fsck.reiserfs --rebuild-tree
> /dev/sda4 -q
> reiserfsck 3.6.18 (2003 www.namesys.com)
>
> *************************************************************
> ** Do not run the program with --rebuild-tree unless **
> ** something is broken and MAKE A BACKUP before using it. **
> ** If you have bad sectors on a drive it is usually a bad **
> ** idea to continue using it. Then you probably should get **
> ** a working hard drive, copy the file system from the bad **
> ** drive to the good one -- dd_rescue is a good tool for **
> ** that -- and only then run this program. **
> ** If you are using the latest reiserfsprogs and it fails **
> ** please email bug reports to [email protected], **
> ** providing as much information as possible -- your **
> ** hardware, kernel, patches, settings, all reiserfsck **
> ** messages (including version), the reiserfsck logfile, **
> ** check the syslog file for any related information. **
> ** If you would like advice on using this program, support **
> ** is available for $25 at www.namesys.com/support.html. **
> *************************************************************
>
> Will rebuild the filesystem (/dev/sda4) tree
> Will put log info to 'stdout'
>
> Do you want to run this program?[N/Yes] (note need to type Yes if you
> do):Yes Replaying journal..
> Reiserfs journal '/dev/sda4' in blocks [18..8211]: 0 transactions
> replayed ###########
> reiserfsck --rebuild-tree started at Sat Jan 22 05:30:10 2005
> ###########
>
> Pass 0:
> ####### Pass 0 #######
> Loading on-disk bitmap .. ok, 5757259 blocks marked used
> Skipping 8451 blocks (super block, journal, bitmaps) 5748808 blocks
> will be read 0%.block 348919: The number of items (256) is incorrect,
> should be (1) - corrected block 348919: The free space (0) is incorrect,
> should be (4048) - corrected pass0: block 348919, item 0: StatData item of
> wrong length found 1065353216 10 0x0 SD (0), len 0, location 4096 entry
> count 7680, fsck need 0, format BAD - deleted block 487094: The number of
> items (256) is incorrect, should be (1) - corrected block 487094: The free
> space (0) is incorrect, should be (4048) - corrected pass0: block 487094,
> item 0: StatData item of wrong length found 1065353216 10 0x0 SD (0), len
> 0, location 4096 entry count 7680, fsck need 0, format BAD - deleted
> ...20%..block 2292973: The free space (49543) is incorrect, should be
> (4072) - corrected block 2297198: The free space (17616) is incorrect,
> should be (4072) - corrected block 2323041: The free space (18732) is
> incorrect, should be (4072) - corrected block 2328937: The free space
> (8242) is incorrect, should be (4072) - corrected block 2348193: The free
> space (54727) is incorrect, should be (4072) - corrected block 2371277: The
> number of items (12544) is incorrect, should be (1) - corrected block
> 2371277: The free space (35830) is incorrect, should be (4048) - corrected
> pass0: vpf-10110: block 2371277, item (0): Unknown item type found
> [3770748138 969408772 0x23740850 ??? (15)] - deleted ..40%block 3460718:
> The free space (11016) is incorrect, should be (4072) - corrected ..block
> 4104106: The number of items (63) is incorrect, should be (1) - corrected
> block 4104106: The free space (65280) is incorrect, should be (4048) -
> corrected pass0: vpf-10110: block 4104106, item (0): Unknown item type
> found [33488897 130816 0xff0001ff ??? (15)] - deleted block 4115015: The
> free space (2647) is incorrect, should be (4072) - corrected block 4179064:
> The free space (0) is incorrect, should be (4072) - corrected
> ..60%....80%...block 7583485: The number of items (33808) is incorrect,
> should be (1) - corrected block 7583485: The free space (0) is incorrect,
> should be (4048) - corrected pass0: vpf-10110: block 7583485, item (0):
> Unknown item type found [16799326 16777472 0x5e5000021042210 ??? (6)] -
> deleted .100%
> 147053 directory entries were hashed with "r5" hash.
> "r5" hash is selected
> Flushing..finished
> Read blocks (but not data blocks) 5748808
> Leaves among those 18653
> - leaves all contents of which could not be
> saved and deleted 13 Objectids found 147055
>
> Pass 1 (will try to insert 18640 leaves):
> ####### Pass 1 #######
> Looking for allocable blocks .. finished
> 0%....20%....40%....60%....80%....100%
> Flushing..finished
> 18640 leaves read
> 18586 inserted
> 54 not inserted
> ####### Pass 2 #######
>
> Pass 2:
> 0%....20%....40%....60%....80%....100%
> Flushing..finished
> Leaves inserted item by item 54
> Pass 3 (semantic):
> ####### Pass 3 #########
> Flushing..finished
> Files found: 62444
> Directories found: 6304
> Symlinks found: 78293
> Others: 13
> Pass 3a (looking for lost dir/files):
> ####### Pass 3a (lost+found pass) #########
> Looking for lost directories:
> Flushing..finished
> Pass 4 - finished
> Flushing..finished
> Syncing..finished
> ###########
> reiserfsck finished at Sat Jan 22 05:36:46 2005
> ###########
> (none):~ #
>
>
>
> Run #3: After 3rd single user mode reboot, I ran fsck.reiserfs --check =>
> OK, fsck.reiserfs --fix-fixable => OK, fsck.reiserfs --rebuild-tree =>
> ERRORS
> ===========================================================================
>=============================== (none):~ # fsck.reiserfs /dev/sda4 -q
> reiserfsck 3.6.18 (2003 www.namesys.com)
>
> *************************************************************
> ** If you are using the latest reiserfsprogs and it fails **
> ** please email bug reports to [email protected], **
> ** providing as much information as possible -- your **
> ** hardware, kernel, patches, settings, all reiserfsck **
> ** messages (including version), the reiserfsck logfile, **
> ** check the syslog file for any related information. **
> ** If you would like advice on using this program, support **
> ** is available for $25 at www.namesys.com/support.html. **
> *************************************************************
>
> Will read-only check consistency of the filesystem on /dev/sda4
> Will put log info to 'stdout'
>
> Do you want to run this program?[N/Yes] (note need to type Yes if you
> do):Yes ###########
> reiserfsck --check started at Sat Jan 22 05:41:43 2005
> ###########
> Replaying journal..
> Reiserfs journal '/dev/sda4' in blocks [18..8211]: 0 transactions
> replayed Checking internal tree..finished
> Comparing bitmaps..finished
> Checking Semantic tree:
> finished
> No corruptions found
> There are on the filesystem:
> Leaves 18637
> Internal nodes 130
> Directories 6304
> Other files 140750
> Data block pointers 5730036 (0 of them are zero)
> Safe links 0
> ###########
> reiserfsck finished at Sat Jan 22 05:42:10 2005
> ###########
> (none):~ # fsck.reiserfs --fix-fixable /dev/sda4 -q
> reiserfsck 3.6.18 (2003 www.namesys.com)
>
> *************************************************************
> ** If you are using the latest reiserfsprogs and it fails **
> ** please email bug reports to [email protected], **
> ** providing as much information as possible -- your **
> ** hardware, kernel, patches, settings, all reiserfsck **
> ** messages (including version), the reiserfsck logfile, **
> ** check the syslog file for any related information. **
> ** If you would like advice on using this program, support **
> ** is available for $25 at www.namesys.com/support.html. **
> *************************************************************
>
> Will check consistency of the filesystem on /dev/sda4
> and will fix what can be fixed without --rebuild-tree
> Will put log info to 'stdout'
>
> Do you want to run this program?[N/Yes] (note need to type Yes if you
> do):Yes ###########
> reiserfsck --fix-fixable started at Sat Jan 22 05:42:51 2005
> ###########
> Replaying journal..
> Reiserfs journal '/dev/sda4' in blocks [18..8211]: 0 transactions
> replayed Checking internal tree..finished
> Comparing bitmaps..finished
> Checking Semantic tree:
> finished
> No corruptions found
> There are on the filesystem:
> Leaves 18637
> Internal nodes 130
> Directories 6304
> Other files 140750
> Data block pointers 5730036 (0 of them are zero)
> Safe links 0
> ###########
> reiserfsck finished at Sat Jan 22 05:43:19 2005
> ###########
>
> (none):~ # fsck.reiserfs --rebuild-tree /dev/sda4 -q
> reiserfsck 3.6.18 (2003 www.namesys.com)
>
> *************************************************************
> ** Do not run the program with --rebuild-tree unless **
> ** something is broken and MAKE A BACKUP before using it. **
> ** If you have bad sectors on a drive it is usually a bad **
> ** idea to continue using it. Then you probably should get **
> ** a working hard drive, copy the file system from the bad **
> ** drive to the good one -- dd_rescue is a good tool for **
> ** that -- and only then run this program. **
> ** If you are using the latest reiserfsprogs and it fails **
> ** please email bug reports to [email protected], **
> ** providing as much information as possible -- your **
> ** hardware, kernel, patches, settings, all reiserfsck **
> ** messages (including version), the reiserfsck logfile, **
> ** check the syslog file for any related information. **
> ** If you would like advice on using this program, support **
> ** is available for $25 at www.namesys.com/support.html. **
> *************************************************************
>
> Will rebuild the filesystem (/dev/sda4) tree
> Will put log info to 'stdout'
>
> Do you want to run this program?[N/Yes] (note need to type Yes if you
> do):Yes Replaying journal..
> Reiserfs journal '/dev/sda4' in blocks [18..8211]: 0 transactions
> replayed ###########
> reiserfsck --rebuild-tree started at Sat Jan 22 05:43:41 2005
> ###########
>
> Pass 0:
> ####### Pass 0 #######
> Loading on-disk bitmap .. ok, 5757254 blocks marked used
> Skipping 8451 blocks (super block, journal, bitmaps) 5748803 blocks
> will be read 0%.block 348919: The number of items (256) is incorrect,
> should be (1) - corrected block 348919: The free space (0) is incorrect,
> should be (4048) - corrected pass0: block 348919, item 0: StatData item of
> wrong length found 1065353216 10 0x0 SD (0), len 0, location 4096 entry
> count 7680, fsck need 0, format BAD - deleted block 487094: The number of
> items (256) is incorrect, should be (1) - corrected block 487094: The free
> space (0) is incorrect, should be (4048) - corrected pass0: block 487094,
> item 0: StatData item of wrong length found 1065353216 10 0x0 SD (0), len
> 0, location 4096 entry count 7680, fsck need 0, format BAD - deleted
> ...20%..block 2292973: The free space (49543) is incorrect, should be
> (4072) - corrected block 2297198: The free space (17616) is incorrect,
> should be (4072) - corrected block 2323041: The free space (18732) is
> incorrect, should be (4072) - corrected block 2328937: The free space
> (8242) is incorrect, should be (4072) - corrected block 2348193: The free
> space (54727) is incorrect, should be (4072) - corrected block 2371277: The
> number of items (12544) is incorrect, should be (1) - corrected block
> 2371277: The free space (35830) is incorrect, should be (4048) - corrected
> pass0: vpf-10110: block 2371277, item (0): Unknown item type found
> [3770748138 969408772 0x23740850 ??? (15)] - deleted ..40%block 3460718:
> The free space (11016) is incorrect, should be (4072) - corrected ..block
> 4104106: The number of items (63) is incorrect, should be (1) - corrected
> block 4104106: The free space (65280) is incorrect, should be (4048) -
> corrected pass0: vpf-10110: block 4104106, item (0): Unknown item type
> found [33488897 130816 0xff0001ff ??? (15)] - deleted block 4115015: The
> free space (2647) is incorrect, should be (4072) - corrected block 4179064:
> The free space (0) is incorrect, should be (4072) - corrected
> ..60%....80%...block 7583485: The number of items (33808) is incorrect,
> should be (1) - corrected block 7583485: The free space (0) is incorrect,
> should be (4048) - corrected pass0: vpf-10110: block 7583485, item (0):
> Unknown item type found [16799326 16777472 0x5e5000021042210 ??? (6)] -
> deleted .100%
> 147053 directory entries were hashed with "r5" hash.
> "r5" hash is selected
> Flushing..finished
> Read blocks (but not data blocks) 5748803
> Leaves among those 18650
> - leaves all contents of which could not be
> saved and deleted 13 Objectids found 147055
>
> Pass 1 (will try to insert 18637 leaves):
> ####### Pass 1 #######
> Looking for allocable blocks .. finished
> 0%....20%....40%....60%....80%....100%
> Flushing..finished
> 18637 leaves read
> 18591 inserted
> 46 not inserted
> ####### Pass 2 #######
>
> Pass 2:
> 0%....20%....40%....60%....80%....100%
> Flushing..finished
> Leaves inserted item by item 46
> Pass 3 (semantic):
> ####### Pass 3 #########
> Flushing..finished
> Files found: 62444
> Directories found: 6304
> Symlinks found: 78293
> Others: 13
> Pass 3a (looking for lost dir/files):
> ####### Pass 3a (lost+found pass) #########
> Looking for lost directories:
> Flushing..finished
> Pass 4 - finished
> Flushing..finished
> Syncing..finished
> ###########
> reiserfsck finished at Sat Jan 22 05:50:19 2005
> ###########
> (none):~ #
>
>
>
> Also, further testing on a 2nd mirror copied disk shows the same exact
> errors even after I run it twice in a row.
>
>
> Best Regards,
> Rob
>
> --
> Robert Harnaga
> www.GriffinRUN.com
> Game server hosting for serious players
--
Thanks,
Vitaly Fertman
--- Begin Message ---
On Saturday 08 January 2005 03:44, hanasaki wrote:
> Could you outline exactly what takes place on a rebuild-tree?
reiserfs has two types of blocks. There are unformatted nodes. They
contain plain user file data. And there are formatted nodes. These may
contain both user file data and filesystem metadata. --rebuild-tree scans
all blocks looking for filesystem metadata, e.g. for formatted nodes.
However you can put a reiserfs image into a file, then file data (e.g.
unformatted nodes of the host fs) will contain formatted nodes of the
fs image, and rebuilding of the host fs will be screwed up as there is
no way to distinguish image fs metadata kept in unformatted nodes
of the host fs from the host fs metadata.
> I was under the incorrect assumption that if a rebuild-tree is 100%
> successful then the FS is ok and a subsequent rebuild-tree will have
> nothing to fix/report. .....
In your case, some unformatted nodes look like formatted ones for the
first sight, however after fixing all the corruptions in these nodes fsck
realises that there is no valid metadata left and that they are either
completely broken nodes or file data ones. To not corrupt file data fsck
does not flush the made changes on disk. And as nothing gets changed
the same attempt of fixing these nodes repeats again on the next rebuild.
> Vitaly Fertman wrote:
> > On Tuesday 04 January 2005 20:25, hanasaki wrote:
> >>Version of reiserfsk
> >>======================
> >>== From debian sarge
> >>/sbin/reiserfsck -V
> >>reiserfsck 3.6.19 (2003 www.namesys.com)
> >>== also used the version in knoppix 3.7 with similar results
> >>
> >>the output of two consecutive runs of --rebuild-tree on the same
> >>unmounted partition are attached. Below is the diff
> >
> > rebuild-tree finds some blocks that looks like reiserfs formatted
> > blocks for the first sight whereas they are not and just belongs to
> > some file bodies. The consistency check reveals no valid metadata
> > in them, so they are considered as not valid reiserfs formatted blocks
> > and left not modified on disk. This is why the second run of rebuild-tree
> > finds them again and tries to do all the stuff again.
--
Thanks,
Vitaly Fertman
--- End Message ---