reiser4 corruption
I recently experimented using reiser4 on a backup system that processes millions of files (most hard links to a main pool of files) every night. I installed it on a spare machine by patching a vanilla 2.6.11.11 with the reiser4 patches. Everything keep working for a few days, but I suddenly noticed this message displayed multiple times:
reiser4[ktxnmgrd:md0:ru(1754)]: commit_current_atom (fs/reiser4/txnmgr.c:1147)[nikita-3176]:
WARNING: Flushing like mad: 16384
as well as:
reiser4[pdflush(28040)]: commit_current_atom (fs/reiser4/txnmgr.c:1147)[nikita-3176]:
WARNING: Flushing like mad: 16384
Would someone mind explaining to me what this means? Upon fscking, it complained about one node containing an unrecognizable module, or something similar. Unfortunately, I don't have the exact output. Also, the semantic checks would have taken 2-3 full days to finish, so I didn't even let fsck finish. I just moved back to reiserfs, which is a shame since reiser4 was incredibly faster. (Simultaneous backups were going at a rate of ~20MB/s compared to ~8MB/s on reiserfs)
Thanks,
-Ross
[email protected] wrote:
Hello
Quoted 9 lines
I recently experimented using reiser4 on a backup system that processes millions of files (most hard links to a main pool of files) every night. I installed it on a spare machine by patching a vanilla 2.6.11.11 with the reiser4 patches. Everything keep working for a few days, but I suddenly noticed this message displayed multiple times:
reiser4[ktxnmgrd:md0:ru(1754)]:
commit_current_atom(fs/reiser4/txnmgr.c:1147)[nikita-3176]:
WARNING: Flushing like mad: 16384as well as:
reiser4[pdflush(28040)]:
commit_current_atom(fs/reiser4/txnmgr.c:1147)[nikita-3176]:
WARNING: Flushing like mad: 16384
This is harmless
Quoted 2 lines
Would someone mind explaining to me what this means? Upon fscking, it complained about one node containing an unrecognizable module, or something similar.
What patch set did you apply? If this is the last one (reiser4-for-2.6.11-5) there is some inconsistency due to format changes that will be fixed in the next release.
Edward.
Quoted 7 lines
Unfortunately, I don't have the exact output. Also, the semantic checks would have taken 2-3 full days to finish, so I didn't even let fsck finish. I just moved back to reiserfs, which is a shame since reiser4 was incredibly faster. (Simultaneous backups were going at a rate of ~20MB/s compared to ~8MB/s on reiserfs)
Thanks,
-Ross
Quoted 2 lines
What patch set did you apply? If this is the last one (reiser4-for-2.6.11-5) there is some inconsistency due to format changes that will be fixed in the next release.
Yes, it was reiser4-for-2.6.11-5. Would this inconsistency cause fsck to find problems that just didn't exist? Would fsck's attempt to "fix" this problem be harmful?
Thanks,
-Ross
Hello
Quoted 8 lines · On Fri, 2005-06-17 at 21:50, [email protected] wrote:
Quoted 3 lines
What patch set did you apply? If this is the last one (reiser4-for-2.6.11-5) there is some inconsistency due to format changes
that will be fixed in the next release.Yes, it was reiser4-for-2.6.11-5. Would this inconsistency cause fsck to find problems that just didn't exist? Would fsck's attempt to "fix" this problem be harmful?
The attached is a patch for reiser4progs-1.0.4 which should fix the problem. Would you try it, please?
Quoted 4 lines
Thanks,
-Ross
===== include/reiser4/plugin.h 1.739 vs edited =====
include/reiser4/plugin.h +12 -9
@@ -285,20 +285,23 @@ enum reiser4_opset_id {OPSET_DIRITEM =0x7 ,OPSET_CRYPTO =0x8 ,OPSET_DIGEST =0x9 , -OPSET_COMPRES =0xa , +OPSET_CPRESS =0xa , +OPSET_CPRESS_MODE =0xb , +OPSET_CLUSTER =0xc , +OPSET_REGULAR =0xd , -OPSET_STORE_LAST = (OPSET_COMPRES +1 ), +OPSET_STORE_LAST ,/* These are not stored on disk in the current implementation. */ -OPSET_CREATE =0xb , -OPSET_MKDIR =0xc , -OPSET_SYMLINK =0xd , -OPSET_MKNODE =0xe , +OPSET_CREATE =OPSET_STORE_LAST +1 , +OPSET_MKDIR =OPSET_STORE_LAST +2 , +OPSET_SYMLINK =OPSET_STORE_LAST +3 , +OPSET_MKNODE =OPSET_STORE_LAST +4 , #ifndef ENABLE_MINIMAL -OPSET_TAIL =0xf , -OPSET_EXTENT =0x10 , -OPSET_ACL =0x11 , +OPSET_TAIL =OPSET_STORE_LAST +5 , +OPSET_EXTENT =OPSET_STORE_LAST +6 , +OPSET_ACL =OPSET_STORE_LAST +7 , #endifOPSET_LAST };
===== libreiser4/pset.c 1.19 vs edited =====
libreiser4/pset.c +26 -2
@@ -111,7 +111,7 @@ opset_member_t opset_prof[OPSET_LAST] = .ess = 1, #endif }, - [OPSET_COMPRES ] = { + [OPSET_CPRESS ] = { .type =INVAL_TYPE , #ifndef ENABLE_MINIMAL .group = INVAL_PID,
@@ -119,7 +119,31 @@ opset_member_t opset_prof[OPSET_LAST] = .ess = 1,#endif }, - + [OPSET_CPRESS_MODE] = { + .type = INVAL_TYPE, +#ifndef ENABLE_MINIMAL + .group = INVAL_PID, + .prof = INVAL_PID, + .ess = 1, +#endif + }, + [OPSET_CLUSTER] = { + .type =INVAL_TYPE , +#ifndef ENABLE_MINIMAL + .group =INVAL_PID , + .prof = INVAL_PID, + .ess = 1, +#endif + }, + [OPSET_REGULAR] = { + .type =INVAL_TYPE , +#ifndef ENABLE_MINIMAL + .group =INVAL_PID , + .prof = INVAL_PID, + .ess = 1, +#endif + }, +/* Note, plugins below are not stored on-disk. */ /* The 4 plugins below needs to be splited -- for now they are used for
===== plugin/sdext/sdext_plug/sdext_plug_repair.c 1.10 vs edited =====
plugin/sdext/sdext_plug/sdext_plug_repair.c +4 -1
@@ -22,7 +22,10 @@ char *opset_name[OPSET_STORE_LAST] = { [OPSET_DIRITEM] = "diritem", [OPSET_CRYPTO] = "crypto", [OPSET_DIGEST] = "digest", - [OPSET_COMPRES] = "compress" + [OPSET_CPRESS] = "compress", + [OPSET_CPRESS_MODE] = "compress mode", + [OPSET_CLUSTER] = "cluster", + [OPSET_REGULAR] = "regular" };errno_t sdext_plug_check_struct (stat_entity_t *stat,repair_hint_t *hint) {