Skip to contentSkip to conversation

Severe problem with fsck.reiser4 1.0.3

DISCUSSION Simon Raffeiner 2 participants 5 messages Jan 11, 2005 – Jan 14, 2005 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

yesterday my workstation refused to boot Linux using a Reiser4 formatted / partition. It mocks about an error with an already cached block and about skipping the "entire subtree", I also can remember the filename "znode.c". ATM I had to boot another PC and connect the harddisk there to make some diagnostics so I cannot post the original error message, but this can be done on request.

I used to access the partition with Kernel 2.6.9-mm1 for about a month and switched to 2.6.10-mm1 three days ago with no problems. According to dd_rescue and dmesg there are no bad blocks on the disk (at least the drive does not give any error messages about).

I tried to run fsck.reiser4 from the X-2004 Version of "Kanotix" and got a segmentation fault right after "CHECKING STORAGE TREE". I tried the same with reiser4progs 1.0.1 on Gentoo with the same result, also the version from 1.0.3 breaks. This is the output from fsck.reiser4 1.0.3 on Gentoo Linux:

playstation etc # fsck.reiser4 /dev/hdc3
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdc3 block device.
Will check the consistency of the Reiser4 SuperBlock. Will check the consistency of the Reiser4 FileSystem. Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Tue Jan 11 21:27:03 2005
Fatal: Failed to open the reiser4 backup.
Fatal: Cannot open the FileSystem on (/dev/hdc3).

1 fatal corruptions were detected in SuperBlock. Run with --build-sb option to fix them.

playstation etc # fsck.reiser4 --build-sb /dev/hdc3 -L fsck.log
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdc3 block device.
Will build the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem. Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Tue Jan 11 21:24:10 2005 Enter the key plugin name [key_large]:
Reiser4 fs was detected on /dev/hdc3.
Master super block (16):

magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           97920906-596c-4a63-9d49-2a268254f6c6
label:          <none>

Format super block (17):

plugin:         format40
description:    Disk-format for reiser4.
magic:          ReIsEr40FoRmAt
flushes:        0
mkfs id:        0x751d8925
blocks:         14462532
free blocks:    10761350
root block:     119159
tail policy:    0x2 (smart)
next oid:       0x585b59
file count:     555932
tree height:    5
key policy:     LARGE

CHECKING STORAGE TREE
Segmentation fault

The harddisk and the file system label seem to be perfectly okay but there is some kind of corruption that breaks the Reiser4 code in Linux 2.6.9-mm1, Linux 2.6.10-mm1, reiser4progs 1.0.1 and reiser4progs 1.0.3. Google gave me no answer on this and I am not able to track the problem down using strace. The fsck.log remains empty after the command above.

Regards,

Simon "Sturmflut" Raffeiner

#1 lore raw
Quoted 79 lines · Simon Raffeiner

Hi,

yesterday my workstation refused to boot Linux using a Reiser4 formatted / partition. It mocks about an error with an already cached block and about skipping the "entire subtree", I also can remember the filename "znode.c". ATM I had to boot another PC and connect the harddisk there to make some diagnostics so I cannot post the original error message, but this can be done on request.

I used to access the partition with Kernel 2.6.9-mm1 for about a month and switched to 2.6.10-mm1 three days ago with no problems. According to dd_rescue and dmesg there are no bad blocks on the disk (at least the drive does not give any error messages about).

I tried to run fsck.reiser4 from the X-2004 Version of "Kanotix" and got a segmentation fault right after "CHECKING STORAGE TREE". I tried the same with reiser4progs 1.0.1 on Gentoo with the same result, also the version from 1.0.3 breaks. This is the output from fsck.reiser4 1.0.3 on Gentoo Linux:

playstation etc # fsck.reiser4 /dev/hdc3
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdc3 block device.
Will check the consistency of the Reiser4 SuperBlock. Will check the consistency of the Reiser4 FileSystem. Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Tue Jan 11 21:27:03 2005
Fatal: Failed to open the reiser4 backup.
Fatal: Cannot open the FileSystem on (/dev/hdc3).

1 fatal corruptions were detected in SuperBlock. Run with --build-sb option to fix them.

playstation etc # fsck.reiser4 --build-sb /dev/hdc3 -L fsck.log
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdc3 block device.
Will build the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem. Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Tue Jan 11 21:24:10 2005 Enter the key plugin name [key_large]:
Reiser4 fs was detected on /dev/hdc3.
Master super block (16):

magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           97920906-596c-4a63-9d49-2a268254f6c6
label:          <none>

Format super block (17):

plugin:         format40
description:    Disk-format for reiser4.
magic:          ReIsEr40FoRmAt
flushes:        0
mkfs id:        0x751d8925
blocks:         14462532
free blocks:    10761350
root block:     119159
tail policy:    0x2 (smart)
next oid:       0x585b59
file count:     555932
tree height:    5
key policy:     LARGE

CHECKING STORAGE TREE
Segmentation fault

Quoted 5 lines

The harddisk and the file system label seem to be perfectly okay but there is some kind of corruption that breaks the Reiser4 code in Linux 2.6.9-mm1, Linux 2.6.10-mm1, reiser4progs 1.0.1 and reiser4progs 1.0.3. Google gave me no answer on this and I am not able to track the problem down using strace. The fsck.log remains empty after the command above.

can you pack the metadata with

	debugfs.reiser4 -P /dev/hdc3 | bzip2 -c > hdc3.bz2 

using 1.0.3 progs and provide it for downloading?

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

Get your copy (35 MB) at

http://servipex.lieberbiber.de:10080/metadata.reiser4.20050111.bz2

Warning: Hostname is dynamic and gets disconnected every 24 hours, so you might have to try again a few minutes later.

Quoting Vitaly Fertman <[email protected]>:

Quoted 97 lines · Simon Raffeiner
Quoted 79 lines

Hi,

yesterday my workstation refused to boot Linux using a Reiser4 formatted / partition. It mocks about an error with an already cached block and about skipping the "entire subtree", I also can remember the filename "znode.c". ATM I had to boot another PC and connect the harddisk there to make some diagnostics so I cannot post the original error message, but this can be done on request.

I used to access the partition with Kernel 2.6.9-mm1 for about a month and switched to 2.6.10-mm1 three days ago with no problems. According to dd_rescue and dmesg there are no bad blocks on the disk (at least the drive does not give any error messages about).

I tried to run fsck.reiser4 from the X-2004 Version of "Kanotix" and got a segmentation fault right after "CHECKING STORAGE TREE". I tried the same with reiser4progs 1.0.1 on Gentoo with the same result, also the version from 1.0.3 breaks. This is the output from fsck.reiser4 1.0.3 on Gentoo Linux:

playstation etc # fsck.reiser4 /dev/hdc3
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdc3 block device.
Will check the consistency of the Reiser4 SuperBlock. Will check the consistency of the Reiser4 FileSystem. Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Tue Jan 11 21:27:03 2005
Fatal: Failed to open the reiser4 backup.
Fatal: Cannot open the FileSystem on (/dev/hdc3).

1 fatal corruptions were detected in SuperBlock. Run with --build-sb option to fix them.

playstation etc # fsck.reiser4 --build-sb /dev/hdc3 -L fsck.log
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdc3 block device.
Will build the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem. Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Tue Jan 11 21:24:10 2005 Enter the key plugin name [key_large]:
Reiser4 fs was detected on /dev/hdc3.
Master super block (16):

magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           97920906-596c-4a63-9d49-2a268254f6c6
label:          <none>

Format super block (17):

plugin:         format40
description:    Disk-format for reiser4.
magic:          ReIsEr40FoRmAt
flushes:        0
mkfs id:        0x751d8925
blocks:         14462532
free blocks:    10761350
root block:     119159
tail policy:    0x2 (smart)
next oid:       0x585b59
file count:     555932
tree height:    5
key policy:     LARGE

CHECKING STORAGE TREE
Segmentation fault

Quoted 5 lines

The harddisk and the file system label seem to be perfectly okay but there is some kind of corruption that breaks the Reiser4 code in Linux 2.6.9-mm1, Linux 2.6.10-mm1, reiser4progs 1.0.1 and reiser4progs 1.0.3. Google gave me no answer on this and I am not able to track the problem down using strace. The fsck.log remains empty after the command above.

can you pack the metadata with

	debugfs.reiser4 -P /dev/hdc3 | bzip2 -c > hdc3.bz2

using 1.0.3 progs and provide it for downloading?

--
Thanks,
Vitaly Fertman

#3 lore raw
Quoted 3 lines · Simon Raffeiner

Get your copy (35 MB) at

http://servipex.lieberbiber.de:10080/metadata.reiser4.20050111.bz2

got it. working on the problem.

Quoted 97 lines

Warning: Hostname is dynamic and gets disconnected every 24 hours, so you might have to try again a few minutes later.

Quoting Vitaly Fertman <[email protected]>:

Quoted 93 lines · Simon Raffeiner
Quoted 79 lines

Hi,

yesterday my workstation refused to boot Linux using a Reiser4 formatted / partition. It mocks about an error with an already cached block and about skipping the "entire subtree", I also can remember the filename "znode.c". ATM I had to boot another PC and connect the harddisk there to make some diagnostics so I cannot post the original error message, but this can be done on request.

I used to access the partition with Kernel 2.6.9-mm1 for about a month and switched to 2.6.10-mm1 three days ago with no problems. According to dd_rescue and dmesg there are no bad blocks on the disk (at least the drive does not give any error messages about).

I tried to run fsck.reiser4 from the X-2004 Version of "Kanotix" and got a segmentation fault right after "CHECKING STORAGE TREE". I tried the same with reiser4progs 1.0.1 on Gentoo with the same result, also the version from 1.0.3 breaks. This is the output from fsck.reiser4 1.0.3 on Gentoo Linux:

playstation etc # fsck.reiser4 /dev/hdc3
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdc3 block device.
Will check the consistency of the Reiser4 SuperBlock. Will check the consistency of the Reiser4 FileSystem. Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Tue Jan 11 21:27:03 2005
Fatal: Failed to open the reiser4 backup.
Fatal: Cannot open the FileSystem on (/dev/hdc3).

1 fatal corruptions were detected in SuperBlock. Run with --build-sb option to fix them.

playstation etc # fsck.reiser4 --build-sb /dev/hdc3 -L fsck.log
*******************************************************************
This is an EXPERIMENTAL version of fsck.reiser4. Read README first.
*******************************************************************

Fscking the /dev/hdc3 block device.
Will build the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem. Continue?
(Yes/No): Yes
***** fsck.reiser4 started at Tue Jan 11 21:24:10 2005 Enter the key plugin name [key_large]:
Reiser4 fs was detected on /dev/hdc3.
Master super block (16):

magic:          ReIsEr4
blksize:        4096
format:         0x0 (format40)
uuid:           97920906-596c-4a63-9d49-2a268254f6c6
label:          <none>

Format super block (17):

plugin:         format40
description:    Disk-format for reiser4.
magic:          ReIsEr40FoRmAt
flushes:        0
mkfs id:        0x751d8925
blocks:         14462532
free blocks:    10761350
root block:     119159
tail policy:    0x2 (smart)
next oid:       0x585b59
file count:     555932
tree height:    5
key policy:     LARGE

CHECKING STORAGE TREE
Segmentation fault

Quoted 5 lines

The harddisk and the file system label seem to be perfectly okay but there is some kind of corruption that breaks the Reiser4 code in Linux 2.6.9-mm1, Linux 2.6.10-mm1, reiser4progs 1.0.1 and reiser4progs 1.0.3. Google gave me no answer on this and I am not able to track the problem down using strace. The fsck.log remains empty after the command above.

can you pack the metadata with

	debugfs.reiser4 -P /dev/hdc3 | bzip2 -c > hdc3.bz2

using 1.0.3 progs and provide it for downloading?

--
Thanks,
Vitaly Fertman

Signature · 2 lines
Thanks,
Vitaly Fertman

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw

Zitat von Vitaly Fertman <[email protected]>:

Quoted 8 lines
Quoted 2 lines

ATM fsck.reiser4 is still running --build-fs and does the storage tree cleanup, lots of nodes got zeroed, does this mean data has been lost? I

if I recall correctly the fsck log, some data blocks were pointed more then once from different places. in such a case only 1 of these pointers is left, other are zeroed. but fsck does not know exactly which is the correct one. so it could lead to file data corruptions. although chances that buggy pointers were zeroes are pretty high.

In fact the data loss is 100%, the only thing left after fsck.reiser4 --build-fs is the "lost+found" folder. I'll take this as a chance to reinstall my Gentoo from scratch and create separate partitions for / and /home this time with / being ReiserFS as long as Reiser4 doesn't _really_ get stable. This strange behaviour has somewhat changed my confidence in Reiser4.

Quoted 7 lines
Quoted 2 lines

have got recent backups so it's no problem, but do you have some idea where this corruption came from? Doesn't look like hard drive failure, maybe an

the most strange corruption was that 2 leaves in the tree had pointers to themselves. this happens extremely rare, I even do not remember if I have seen a such before.

Quoted 5 lines
Quoted 1 line

unclean shutdown or some issues with Kernel 2.6.10-mm1.

shutdown should not be a problem, if it is this is a problem with reiser4 journalling which is quite stable now. but 2.6.10-mm1 is not the most stable thing in the world. I am afraid only some tests will reveal the truth to you.

I'll stay with 2.6.9-mm1 which has run stable for over a month with Reiser4, there's no real reason for me to switch to a newer kernel except for some security updates.

Regards,

Simon Raffeiner