Skip to contentSkip to conversation

reiserfsck not fixing vs-5150/vs-13070

DISCUSSION Matthias Andree 3 participants 5 messages Aug 28, 2002 – Aug 30, 2002

lore
Share & tools
lore
#0 lore raw

Hello,

I have some difficulties with a file system here. SuSE 2.4.19-4GB #1 kernel, file system in reiserfs 3.6 format with r5 hash:

| is_leaf: wrong item type for item *3.5*[13010 13029 0x1 IND], item_len 4, item_location 4060, free_space(entry_count) 0
| vs-5150: search_by_key: invalid format found in block 33160. Fsck?
| vs-13070: reiserfs_read_inode2: i/o failure occurred trying to find stat data of [13010 13032 0x0 SD]

I should note that I mounted that file system with "-o conv" recently to upgrade it to 3.6. Nothing was in the logs that called for my attention.

Running reiserfsck --check (3.6.3) now, I get:

| Filesystem seems mounted read-only. Skipping journal replay..
| Checking S+tree..ok                                     
| Comparing bitmaps..ok
| Checking Semantic tree...
| ok                                                                             
| There were found 465 corruptions which can be fixed with --fix-fixable
| check_and_free_buffer_mem: dirty buffer (4 16) found

and the log file has tons of "file X Y has wrong sd_blocks 2, has to be 1" in it, but grepping for 13010, 13029 and 33160 in

I tried reiserfsck 3.6.3 with --fix-fixable (what was recommended by reiserfsck --check) and also with --rebuild-tree, at no avail, the error keeps coming back.

I can provide a full meta data dump if necessary.

Is this something reiserfsck should fix?

debugreiserfs -p -1 33160 says:

===================================================================
LEAF NODE (33160) contains level=1, nr_items=14, free_space=839 rdkey (real items 14)
-------------------------------------------------------------------------------

|###|type|ilen|f/sp| loc|fmt|fsck|                   key                      |
|   |    |    |e/cn|    |   |need|                                            |

-------------------------------------------------------------------------------
| 0|13010 13029 0x0 SD (0), len 32, location 4064 entry count 65535, fsck need 0, format old| (OLD SD), mode -rwxr-xr-x, size 5272, nlink 1, uid 0, FDB 4097, mtime 02/27/2002 19:55:54 blocks 16
-------------------------------------------------------------------------------
| 1|13010 13029 0x1 IND (1), len 4, location 4060 entry count 0, fsck need 4, format old| 1 pointer
[ 367969]
-------------------------------------------------------------------------------
| 2|13010 13029 0x1001 DRCT (2), len 1176, location 2884 entry count 0, fsck need 0, format old|
-------------------------------------------------------------------------------
| 3|13010 13031 0x0 SD (0), len 32, location 2852 entry count 65535, fsck need 0, format old| (OLD SD), mode -rwxr-xr-x, size 12414, nlink 1, uid 0, FDB 12289, mtime 02/27/2002 19:55:54 blocks 32
-------------------------------------------------------------------------------
| 4|13010 13031 0x1 IND (1), len 12, location 2840 entry count 0, fsck need 4, format old| 3 pointers
[ 367977(2) 367980]
-------------------------------------------------------------------------------
| 5|13010 13031 0x3001 DRCT (2), len 126, location 2714 entry count 0, fsck need 0, format old|
-------------------------------------------------------------------------------
| 6|13010 13032 0x0 SD (0), len 32, location 2682 entry count 65535, fsck need 0, format old| (OLD SD), mode -rwxr-xr-x, size 5363, nlink 1, uid 0, FDB 4097, mtime 02/27/2002 19:55:54 blocks 16
-------------------------------------------------------------------------------
| 7|13010 13032 0x1 IND (1), len 4, location 2678 entry count 0, fsck need 4, format old| 1 pointer
[ 368013]
-------------------------------------------------------------------------------
| 8|13010 13032 0x1001 DRCT (2), len 1267, location 1411 entry count 0, fsck need 0, format old|
-------------------------------------------------------------------------------
| 9|13010 13033 0x0 SD (0), len 32, location 1379 entry count 65535, fsck need 0, format old| (OLD SD), mode -rwxr-xr-x, size 7115, nlink 1, uid 0, FDB 4294967295, mtime 02/27/2002 19:55:54 blocks 16
-------------------------------------------------------------------------------
| 10|13010 13033 0x1 IND (1), len 8, location 1371 entry count 0, fsck need 0, format old| 2 pointers
[ 368030(2)]
-------------------------------------------------------------------------------
| 11|13010 13034 0x0 SD (0), len 32, location 1339 entry count 65535, fsck need 0, format old| (OLD SD), mode -rwxr-xr-x, size 6536, nlink 1, uid 0, FDB 4097, mtime 02/27/2002 19:55:54 blocks 16
-------------------------------------------------------------------------------
| 12|13010 13034 0x1 IND (1), len 4, location 1335 entry count 0, fsck need 0, format old| 1 pointer
[ 368032]
-------------------------------------------------------------------------------
| 13|13010 13034 0x1001 DRCT (2), len 136, location 1199 entry count 65535, fsck need 0, format old|
===================================================================

Signature · 1 line
Matthias Andree
#1 lore raw
Quoted 23 lines · Matthias Andree

Hello,

I have some difficulties with a file system here. SuSE 2.4.19-4GB #1

kernel, file system in reiserfs 3.6 format with r5 hash:

| is_leaf: wrong item type for item *3.5*[13010 13029 0x1 IND], item_len 4,
| item_location 4060, free_space(entry_count) 0 vs-5150: search_by_key:
| invalid format found in block 33160. Fsck? vs-13070:
| reiserfs_read_inode2: i/o failure occurred trying to find stat data of
| [13010 13032 0x0 SD]

I should note that I mounted that file system with "-o conv" recently to upgrade it to 3.6. Nothing was in the logs that called for my attention.

Running reiserfsck --check (3.6.3) now, I get:

| Filesystem seems mounted read-only. Skipping journal replay..
| Checking S+tree..ok
| Comparing bitmaps..ok
| Checking Semantic tree...
| ok
| There were found 465 corruptions which can be fixed with --fix-fixable
| check_and_free_buffer_mem: dirty buffer (4 16) found
Quoted 7 lines

and the log file has tons of "file X Y has wrong sd_blocks 2, has to be 1" in it, but grepping for 13010, 13029 and 33160 in

I tried reiserfsck 3.6.3 with --fix-fixable (what was recommended by reiserfsck --check) and also with --rebuild-tree, at no avail, the error keeps coming back.

Could you try reiserfsck --fix-fixable from reiserfsprogs-3.6.4-pre1, these fixable corruptions seem to be fixed there, and then reiserfsck --check. If you get this "dirty buffer" again (or any other problem) send me please the metadata dump:
debugreiserfs -p /dev/xxx | bzip -c > xxx.bz2

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

Could you try reiserfsck --fix-fixable from reiserfsprogs-3.6.4-pre1, these fixable corruptions seem to be fixed there, and then reiserfsck --check.

I did this.

I don't recall if I got the dirty buffer thingy (I was sort of busy, with ISDN PBX breakdown to fix and other stuff), but the on-disk problem is gone after --fix-fixable of 3.6.4-pre1, and reiserfsck --check does not report any corruptions and more, and the files there were denied with EIO before the fsck are now accessible again. Thanks to your team for 3.6.4-pre1.

The related message from --fix-fixable:

bad_item: vpf-10580: block 33160: Flags in the item header (1) were cleaned
bad_item: vpf-10580: block 33160: Flags in the item header (4) were cleaned
bad_item: vpf-10580: block 33160: Flags in the item header (7) were cleaned (there were 6 more of these)

and tons (~ 450) of vpf-10680: The file [X Y] has the wrong block count in the StatData (2) - corrected to (1)

Any clues how these flags got there? The FS was in 3.5 mode and had those problems in 3.5 mode already, before I converted to 3.6.

Thank you!

Best regards,
Matthias

#3 lore raw
In reply to Matthias Andree

Hi,

Quoted 2 lines · Matthias Andree

I have some difficulties with a file system here. SuSE 2.4.19-4GB #1 kernel, file system in reiserfs 3.6 format with r5 hash:

This is an unofficial kernel with lots of new features and work in progress. The README file explicitly warns not to use this one on a production system yet. Depending on the version you are using, there exists even a random memory corruption bug that only recently got fixed.

Quoted 1 line

Matthias Andree

                                                                  -o)
    Hubert Mantel              Goodbye, dots...                   /\\
                                                                 _\_v
#4 lore raw
Quoted 4 lines · Hubert Mantel

This is an unofficial kernel with lots of new features and work in progress. The README file explicitly warns not to use this one on a production system yet. Depending on the version you are using, there exists even a random memory corruption bug that only recently got fixed.

Thanks for the heads-up. I'm aware that your unofficial kernel is WIP, and that it can undeliberately eat my lunch, burn my house and exhume my grandmother -- and even memory corruptions /could/ serve to improve fsck.*.

Still, it looks as though the problems really escaped reiserfsck v3.6.3 but no more v3.6.4-pre1.

I'll check your kernel's changelog to get the fix though.

Signature · 1 line
Matthias Andree