Bug ID 982119
Summary reiser4progs [fsck.reiser4] unable to fix ' Wrong order of keys.'
Classification openSUSE
Product openSUSE 13.1
Version Final
Hardware x86-64
OS Other
Status NEW
Severity Major
Priority P5 - None
Component Other
Assignee bnc-team-screening@forge.provo.novell.com
Reporter doiggl@velocitynet.com.au
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

reiser4progs unable to fix ' Wrong order of keys.'

I know the files and date is there but cannot get to it.

- commands used
- These commands were run using opensuse 64 bit x86_64

# fsck.reiser4 --build-sb --force  /dev/sdb
# fsck.reiser4 --build-fs --force  /dev/sdb
# fsck.reiser4 --check /dev/sdb
# fsck.reiser4 --fix --force  /dev/sdb

do not fix the errors.

mount command fails.
'mount /dev/sdb  /media/disk'

- You can have a copy of reiser4 meta data if you want.
- commands do not fix the errors.

 # fsck.reiser4 --build-fs --force  /dev/sdb
 # fsck.reiser4 --fix --force /dev/sdb


- meta data unpacked size [metadata-sdb] 24,733,058,856

Reiser4 fs was detected on /dev/sdb.

Master super block (16):

magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           3006ced1-7490-4ea8-a9b8-d82143c6bede
label:          <none>

Format super block (17):

plugin:         format40
description:    Disk-format plugin.
version:        0
magic:          ReIsEr40FoRmAt
mkfs id:        0x1ddaf754
flushes:        0
blocks:         488378640
free blocks:    217146980
root block:     37017218
tail policy:    0x2 (smart)
next oid:       0xedade
file count:     188313
tree height:    6
key policy:     LARGE
#

# fsck.reiser4  -V
fsck.reiser4 1.1.0
Format release: 4.0.1
Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
reiser4progs/COPYING. 

-Kernel which is Reiser4 enabled and built on build.opensuse.org rpms are here

https://build.opensuse.org/package/binaries/home:doiggl/kernel-reiser4?repository=openSUSE_13.2

Architecture: i586

    kernel-reiser4-4.6.0-1.1.i686.rpm
    kernel-reiser4-4.6.0-1.1.nosrc.rpm
    kernel-reiser4-debuginfo-4.6.0-1.1.i686.rpm
    kernel-reiser4-debugsource-4.6.0-1.1.i686.rpm
    kernel-reiser4-devel-4.6.0-1.1.i686.rpm

Architecture: x86_64

    kernel-reiser4-4.6.0-1.1.nosrc.rpm
    kernel-reiser4-4.6.0-1.1.x86_64.rpm
    kernel-reiser4-debuginfo-4.6.0-1.1.x86_64.rpm
    kernel-reiser4-debugsource-4.6.0-1.1.x86_64.rpm
    kernel-reiser4-devel-4.6.0-1.1.x86_64.rpm
    kernel-reiser4-devel-debuginfo-4.6.0-1.1.x86_64.rpm

The project is here
https://build.opensuse.org/package/show?package=kernel-reiser4&project=home%3Adoiggl

The log of the build is here {x86_64} as an example. [Its a long buildlog]
https://build.opensuse.org/package/live_build_log/home:doiggl/kernel-reiser4/openSUSE_13.2/x86_64

The .spec used file is here
https://build.opensuse.org/package/view_file/home:doiggl/kernel-reiser4?expand=1&file=kernel-reiser4.spec

Thanks to the opensuse-kernel list members for compilation advice.
--

# md /media/disk
# ll /media/disk
total 0

mount -t reiser4  /dev/sdb  /media/disk
mount: No such file or directory

# fsck.reiser4 --build-fs --force  /dev/sdb
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/sdb block device.

Will check the consistency of the Reiser4 SuperBlock. Will build the Reiser4
FileSystem. ***** fsck.reiser4 started at Tue Aug 26 17:22:24 2014

Reiser4 fs was detected on /dev/sdb.

Master super block (16):

magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           3006ced1-7490-4ea8-a9b8-d82143c6bede
label:          <none>

Format super block (17):

plugin:         format40
description:    Disk-format plugin.
version:        0
magic:          ReIsEr40FoRmAt
mkfs id:        0x1ddaf754
flushes:        0
blocks:         488378640
free blocks:    217146980
root block:     37017218
tail policy:    0x2 (smart)
next oid:       0xedade
file count:     188313
tree height:    6
key policy:     LARGE

CHECKING THE STORAGE TREE Read nodes 197008413 Nodes left in the tree 197008413
Leaves of them 194764277, Twigs of them 2217790 Time interval: Tue Aug 26
17:24:21 2014 - Wed Aug 27 01:25:31 2014 CHECKING EXTENT REGIONS. Read twigs
2217790 Time interval: Wed Aug 27 01:25:31 2014 - Wed Aug 27 03:35:39 2014
LOOKING FOR UNCONNECTED NODES FSCK: node.c: 108: repair_node_items_check: Node
(43828275), items (0) and

(1): Wrong order of keys.
FSCK: node.c: 108: repair_node_items_check: Node (52697435), items (79)
and (80): Wrong order of keys.
FSCK: node.c: 108: repair_node_items_check: Node (63227569), items (24)
and (25): Wrong order of keys.
FSCK: node.c: 108: repair_node_items_check: Node (63227571), items (73)
and (74): Wrong order of keys.
FSCK: node.c: 108: repair_node_items_check: Node (116595727), items (20)
and (21): Wrong order of keys.
FSCK: node.c: 108: repair_node_items_check: Node (227923161), items (22)
and (23): Wrong order of keys.
FSCK: node.c: 108: repair_node_items_check: Node (284305753), items (61)
and (62): Wrong order of keys.
         Read nodes 1481038

Good nodes 471512

                 Leaves of them 466164, Twigs of them 5348
         Time interval: Wed Aug 27 03:35:57 2014 - Wed Aug 27 03:39:46 2014

***** fsck.reiser4 finished at Wed Aug 27 03:39:46 2014
Closing fs...done

FS is consistent.


Other details
-------------
# cd /media
# md disk

# mount /dev/sdb  /media/disk
mount: No such file or directory




-Previous attempts of  --checks and --build-fs
unable to fix ' Wrong order of keys.'

This is the sequence of --checks and --build-fs times of Reiser4 volume on
disk /dev/sdb
--Glenn

--check    Mon Feb 23 01:34:22 2015
--build-fs Mon Feb 23 13:09:25 2015
--check    Tue Feb 24 17:03:22 2015
--build-fs Tue Aug 26 17:22:24 2014
--build-fs Fri Sep 20 15:50:44 2013

commands used
-------------
# fsck.reiser4 --check /dev/sdb
# fsck.reiser4 --build-fs --force  /dev/sdb



References
----------
http://www.spinics.net/lists/reiserfs-devel/msg04665.html
http://www.spinics.net/lists/reiserfs-devel/msg04206.html
http://www.spinics.net/lists/reiserfs-devel/msg04663.html
http://www.spinics.net/lists/reiserfs-devel/msg04661.html
http://www.spinics.net/lists/reiserfs-devel/msg04596.html
http://www.spinics.net/lists/reiserfs-devel/msg04203.html
http://www.spinics.net/lists/reiserfs-devel/msg04202.html
http://www.spinics.net/lists/reiserfs-devel/msg04205.html
http://www.spinics.net/lists/reiserfs-devel/msg03575.html


-comments about reiser4progs ' Wrong order of keys.' and 
http://www.spinics.net/lists/reiserfs-devel/msg04206.html

meta data details 
------------------

- You can have a copy if you want a copy of reiser4 meta data if you want.


packed with
# debugfs.reiser4 -P /dev/sdb | bzip2 -9  > metadata-sdb.bz2

un-packed with
# bunzip2 metadata-sdb.bz2

un-packed size shows:
# ll
total 48362807
-rw-r--r-- 1 root users 24733058856 Apr 14 04:24 metadata-sdb

- 24,733,058,856

-plugged in disk 
 usb port-via cable to disk entire disk is r4 volume

# fdisk -l

Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

# dmesg shows:

[  202.699451] scsi 4:0:0:0: Direct-Access     ST320005 42AS              
  PQ: 0 ANSI: 2
[  202.700003] sd 4:0:0:0: Attached scsi generic sg2 type 0
[  202.704071] sd 4:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00
TB/1.81 TiB)
[  202.707403] sd 4:0:0:0: [sdb] Write Protect is off
[  202.707413] sd 4:0:0:0: [sdb] Mode Sense: 38 00 00 00
[  202.710005] sd 4:0:0:0: [sdb] No Caching mode page found
[  202.710012] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[  202.743968] sd 4:0:0:0: [sdb] Attached SCSI disk
[  303.775565] Loading Reiser4 (format release: 4.0.1) See www.namesys.com
for a description of Reiser4.
[  303.781081] reiser4: sdb: found disk format 4.0.1.
[  303.781244] reiser4: sdb: use 'fsck.reiser4 --fix' to complete disk
format upgrade.
[  414.131150] reiser4[mount(1988)]: traverse_tree
(../fs/reiser4/search.c:725)[nikita-373]:
WARNING: not found on internal node: level: 6, lock_level: 1, stop_level:
1 lock_mode: read, bias: exact
[  414.131163] reiser4[mount(1988)]: key_warning
(../fs/reiser4/plugin/file_plugin_common.c:510)[nikita-717]:
WARNING: Error for inode 42 (-2)


# fsck.reiser4 --help
Usage: fsck.reiser4 [ options ] FILE
Fsck options:
  --check                       checks the consistency (default)
  --fix                         fixes minor corruptions
  --build-sb                    rebuilds the super block
  --build-fs                    rebuilds the filesystem

  -L, --logfile file            complains into the file
  -n, --no-log                  makes fsck to not complain
  -a, --auto                    automatically checks the consistency
                                without any questions.
  -q, --quiet                   supresses gauges
  -r                            ignored
Plugins options:
  --print-profile               prints the plugin profile.
  -l, --print-plugins           prints all known plugins.
  -o, --override TYPE=PLUGIN    overrides the default plugin of the type
                                "TYPE" by the plugin "PLUGIN" in the
                                profile.
Common options:
  -?, -h, --help                prints program usage.
  -V, --version                 prints current version.
  -y, --yes                     assumes an answer 'yes' to all questions.
  -f, --force                   makes fsck to use whole disk, not block
                                device or mounted partition.
  -p, --preen                   automatically repair the filesysem.
  -c, --cache N                 number of nodes in tree buffer cache

Help appreciated.

Thanks
--Glenn


You are receiving this mail because: