All of lore.kernel.org
 help / color / mirror / Atom feed
* Corruption: --fix-fixable results in all nlink values = 0
@ 2002-08-15 18:07 Gerrit Hannaert
  2002-08-15 18:27 ` Vitaly Fertman
  0 siblings, 1 reply; 55+ messages in thread
From: Gerrit Hannaert @ 2002-08-15 18:07 UTC (permalink / raw)
  To: reiserfs-list

Hello,

I recently noticed some errors in my system log, and had already found a directory with a few files in it which could not be deleted. 
So I downloaded the newest reiserfs tools, compiled them and had a shot at reiserfsck --fix-fixable.
Big mistake. My 60GB filesystem had gone from slightly corrupt to becoming completely unmountable by doing this.

Some further analysis led me to the conclusion that *all* fields for nlink had become '0' (something I suppose shouldn't happen).

reiserfsprogs 3.6.3
filesystem version 3.6, created with something from 2.4.16 to .18
gcc used to compile: version 3.1.1 20020722 (prerelease) (SuSE Linux)
kernel 2.4.19 (compiled with same gcc)

What went wrong here? 
Will reiserfsck --rebuild-tree fix this? Or is the error some compilation thing? 
What are my chances to recover the filesystem?

Regards,

- Gerrit



--
luna:/ # mount /home
mount: Not a directory

-- /var/log/messages
Aug 15 19:40:51 luna kernel: reiserfs: found format "3.6" with standard journal
Aug 15 19:40:51 luna kernel: reiserfs: checking transaction log (ide0(3,9)) for (ide0(3,9))
Aug 15 19:40:51 luna kernel: reiserfs: using ordered data mode
Aug 15 19:40:51 luna kernel: vs-13075: reiserfs_read_inode2: dead inode read from disk [1 2 0x0 SD]. This is likely to be race with knfsd. Ign
ore
Aug 15 19:40:51 luna kernel: Using r5 hash to sort names

-- reiserfsck output
/  1 (of   4)/  1 (of 159)/  1 (of 169)bad_stat_data: block 8232, [1 2 0x0 SD (0)], directory SD has bad nlink number
bad_stat_data: block 8232, [2 3 0x0 SD (0)], directory SD has bad nlink number
bad_stat_data: block 8232, [2 13 0x0 SD (0)], directory SD has bad nlink number
bad_stat_data: block 8232, [2 14 0x0 SD (0)], directory SD has bad nlink number
/  2 (of 169)bad_stat_data: block 8233, [2 132 0x0 SD (0)], directory SD has bad nlink number
bad_stat_data: block 8233, [2 1855 0x0 SD (0)], directory SD has bad nlink number
/  5 (of 169)bad_stat_data: block 8755, [2 3793 0x0 SD (0)], directory SD has bad nlink number

-- ALL values of nlink are 0:
luna:/ # zcat /home.debugreiserfs.log.gz | grep "nlink"  | awk '{print $8}' | sort | uniq -c
 382201 0,

-- debugreiserfs output
Filesystem state: consistency is not checked after last mounting

Reiserfs super block in block 16 on 0x309 of format 3.6 with standard journal
Count of blocks on the device: 17638606
Number of bitmaps: 539
Blocksize: 4096
Free blocks (count of blocks - used [journal, bitmaps, data, reserved] blocks): 4826281
Root block: 39819
Filesystem is cleanly umounted
Tree height: 5
Hash function used to sort names: "r5"
Objectid map size 972, max 972
Journal parameters:
        Device [0x0]
        Magic [0x38906a00]
        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: 0x1
sb_version: 2
inode generation number: 12589619
UUID: 00000000-0000-0000-0000-000000000000
LABEL:
Set flags in SB:

INTERNAL NODE (39819) contains level=4, nr_items=3, free_space=3992 rdkey
PTR 0: [dc_number=8387, dc_size=3800] KEY 0: 68140 71445 0x1a07001 IND (1) PTR 1: [dc_number=713991, dc_size=2864] KEY 1: 1671434 1672343 0x4a
...
===================================================================
LEAF NODE (8232) contains level=1, nr_items=8, free_space=128 rdkey (real items 8)
-------------------------------------------------------------------------------
|###|type|ilen|f/sp| loc|fmt|fsck|                   key                      |
|   |    |    |e/cn|    |   |need|                                            |
-------------------------------------------------------------------------------
|  0|1 2 0x0 SD (0), len 44, location 4052 entry count 0, fsck need 0, format new|
(NEW SD), mode drwxr-xr-x, size 1408, nlink 0, mtime 07/19/2002 03:02:40 blocks 3, uid 0
-------------------------------------------------------------------------------
|  1|1 2 0x1 DIR (3), len 1408, location 2644 entry count 51, fsck need 0, format old|
###: Name                     length    Object key           Hash     Gen number
  0: ".                        "(  1)                 1 2           0    1, loc 1400, state 4 not set
  1: "..                       "(  2)                 0 1           0    2, loc 1392, state 4 not set
...
 49: "lost+found               "( 10)             2 26247  2077744896    0, loc 832, state 4 "r5"
 50: "bigfiles.list            "( 13)           2 2241662  2088467072    0, loc 816, state 4 "r5"
-------------------------------------------------------------------------------
|  2|2 3 0x0 SD (0), len 44, location 2600 entry count 65535, fsck need 0, format new|
(NEW SD), mode drwxr-xr-x, size 264, nlink 0, mtime 06/25/2000 19:48:19 blocks 1, uid 0
-------------------------------------------------------------------------------
|  3|2 3 0x1 DIR (3), len 264, location 2336 entry count 11, fsck need 0, format old|
###: Name                     length    Object key           Hash     Gen number
  0: ".                        "(  1)                 2 3           0    1, loc 256, state 4 not set
  1: "..                       "(  2)                 1 2           0    2, loc 248, state 4 not set
  2: "at                       "(  2)                 3 5      208896    0, loc 240, state 4 "r5"
  3: "kbd                      "(  3)                 3 8     2494720    0, loc 232, state 4 "r5"
  4: "bash                     "(  4)                 3 6    25360384    0, loc 224, state 4 "r5"
...

^ permalink raw reply	[flat|nested] 55+ messages in thread

end of thread, other threads:[~2002-08-23 11:01 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-15 18:07 Corruption: --fix-fixable results in all nlink values = 0 Gerrit Hannaert
2002-08-15 18:27 ` Vitaly Fertman
2002-08-15 18:36   ` Gerrit Hannaert
2002-08-15 18:53     ` Vitaly Fertman
2002-08-15 19:06       ` Gerrit Hannaert
2002-08-15 19:44       ` Stefan Fleiter
2002-08-15 20:02         ` Gerrit Hannaert
2002-08-16 10:42         ` Matthias Andree
2002-08-16 17:34           ` Vitaly Fertman
2002-08-17  0:18             ` search for mailing archive on geocrawler bo
2002-08-17  1:03               ` Manuel Krause
2002-08-15 21:29       ` Corruption: --fix-fixable results in all nlink values = 0 Gerrit Hannaert
2002-08-16  8:05         ` Vitaly Fertman
2002-08-16  8:59           ` Gerrit Hannaert
2002-08-16 10:50             ` Matthias Andree
2002-08-16 13:11               ` Gerrit Hannaert
2002-08-16 14:12                 ` Matthias Andree
2002-08-16 14:24                   ` Hans Reiser
2002-08-16 14:42                     ` bscott
2002-08-16 14:58                     ` Matthias Andree
2002-08-18 21:08                     ` Brian Tinsley
2002-08-19  8:38                       ` Hans Reiser
2002-08-17  0:54           ` Gerrit Hannaert
2002-08-17 10:00             ` Matthias Andree
2002-08-17 19:00               ` Hans Reiser
2002-08-19  5:20                 ` Oleg Drokin
2002-08-19  8:42                   ` Hans Reiser
2002-08-19  8:46                     ` Oleg Drokin
2002-08-19  9:14                       ` Hans Reiser
2002-08-19  9:22                         ` Oleg Drokin
2002-08-19 10:07                           ` Hans Reiser
2002-08-19 10:20                             ` Oleg Drokin
2002-08-19 10:27                               ` Hans Reiser
2002-08-19 10:40                                 ` Oleg Drokin
2002-08-19 11:14                                   ` Hans Reiser
2002-08-19 11:20                                     ` Oleg Drokin
2002-08-19 13:29                                       ` Hans Reiser
2002-08-19 13:31                                         ` Oleg Drokin
2002-08-19 13:55                                           ` Matthias Andree
2002-08-19 14:25                                           ` Hans Reiser
2002-08-20 20:24                               ` Chris Mason
2002-08-21  6:04                                 ` Oleg Drokin
2002-08-21 10:33                                   ` Hans Reiser
2002-08-21 16:17                                     ` Gerrit Hannaert
2002-08-21 17:14                                       ` Hans Reiser
2002-08-21 17:33                                         ` Valdis.Kletnieks
2002-08-21 17:36                                           ` Hans Reiser
2002-08-22 11:00                                         ` Vitaly Fertman
2002-08-22 12:55                                           ` Chris Mason
2002-08-22 13:00                                             ` Oleg Drokin
2002-08-22 16:42                                               ` Hans Reiser
2002-08-23  4:56                                                 ` Oleg Drokin
2002-08-23 10:53                                                   ` Hans Reiser
2002-08-23 10:56                                                     ` Oleg Drokin
2002-08-23 11:01                                                       ` Hans Reiser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.