Hello,

I'm using RH 6.2 with 2.2.14 (plus latest raid patch).  I defined /dev/md0 with
following raidtab :

raiddev /dev/md0
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 0
        device          /dev/hda5
        raid-disk       0
        device          /dev/hdc5
        raid-disk       1


It works properly until we use it heavily.  Then /dev/md0 can't be recognized
by the system after reboot.  There're error messages displayed in dmesg :

------------------------- cut here -----------------------------
md.c: sizeof(mdp_super_t) = 4096
Partition check:
 hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 >
 hdc: [PTBL] [3328/255/63] hdc1 hdc2 < hdc5 hdc6 hdc7 hdc8 hdc9 >
autodetecting RAID arrays
autorun ...
... autorun DONE.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 64k freed
Adding Swap: 530104k swap-space (priority -1)
(read) hda5's sb offset: 23430656 [events: 00000004]
(read) hdc5's sb offset: 23430656 [events: 00000004]
autorun ...
considering hdc5 ...
  adding hdc5 ...
  adding hda5 ...
created md0
bind<hda5,1>
bind<hdc5,2>
running: <hdc5><hda5>
now!
hdc5's event counter: 00000004
hda5's event counter: 00000004
md: device name has changed from hda5 to hdc5 since last import!
md0: former device hdc5 is unavailable, removing from array!
md: bug in file md.c, line 1411

       **********************************
       * <COMPLETE RAID STATE PRINTOUT> *
       **********************************
md0: <hdc5><hda5> array superblock:
  SB: (V:0.90.0) ID:<5ec46911.74d3ef89.19413eab.3e1775f4> CT:391bd0b9
     L1 S23430656 ND:1 RD:2 md0 LO:0 CS:4096
     UT:391cf1f1 ST:1 AD:2 WD:1 FD:0 SD:0 CSUM:47bab5b0 E:00000004
     D  0:  DISK<N:0,hdc5(22,5),R:0,S:6>
     D  1:  DISK<N:1,[dev 00:00](0,0),R:1,S:9>
     D  2:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  3:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  4:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  5:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  6:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  7:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  8:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  9:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 10:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 11:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     THIS:  DISK<N:0,hda5(3,5),R:0,S:6>
 rdev hdc5: O:hda5, SZ:00000000 F:0 DN:0 rdev superblock:
  SB: (V:0.90.0) ID:<5ec46911.74d3ef89.19413eab.3e1775f4> CT:391bd0b9
     L1 S23430656 ND:2 RD:2 md0 LO:0 CS:4096
     UT:391cf1f1 ST:1 AD:2 WD:2 FD:0 SD:0 CSUM:47bab5b0 E:00000004
     D  0:  DISK<N:0,hda5(3,5),R:0,S:6>
     D  1:  DISK<N:1,hdc5(22,5),R:1,S:6>
     D  2:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  3:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  4:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  5:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  6:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  7:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  8:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  9:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 10:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 11:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     THIS:  DISK<N:0,hdc5(22,5),R:0,S:6>
 rdev hda5: O:hda5, SZ:00000000 F:0 DN:0 rdev superblock:
  SB: (V:0.90.0) ID:<5ec46911.74d3ef89.19413eab.3e1775f4> CT:391bd0b9
     L1 S23430656 ND:2 RD:2 md0 LO:0 CS:4096
     UT:391cf1f1 ST:1 AD:2 WD:2 FD:0 SD:0 CSUM:47bab5b0 E:00000004
     D  0:  DISK<N:0,hda5(3,5),R:0,S:6>
     D  1:  DISK<N:1,hdc5(22,5),R:1,S:6>
     D  2:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  3:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  4:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  5:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  6:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  7:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  8:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  9:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 10:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 11:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     THIS:  DISK<N:0,hda5(3,5),R:0,S:6>
       **********************************

md: bug in file md.c, line 1570

       **********************************
       * <COMPLETE RAID STATE PRINTOUT> *
       **********************************
md0: <hdc5><hda5> array superblock:
  SB: (V:0.90.0) ID:<5ec46911.74d3ef89.19413eab.3e1775f4> CT:391bd0b9
     L1 S23430656 ND:1 RD:2 md0 LO:0 CS:4096
     UT:391cf1f1 ST:1 AD:2 WD:1 FD:0 SD:0 CSUM:47bab5b0 E:00000004
     D  0:  DISK<N:0,hdc5(22,5),R:0,S:6>
     D  1:  DISK<N:1,[dev 00:00](0,0),R:1,S:9>
     D  2:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  3:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  4:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  5:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  6:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  7:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  8:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  9:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 10:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 11:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     THIS:  DISK<N:0,hda5(3,5),R:0,S:6>
 rdev hdc5: O:hda5, SZ:00000000 F:0 DN:0 rdev superblock:
  SB: (V:0.90.0) ID:<5ec46911.74d3ef89.19413eab.3e1775f4> CT:391bd0b9
     L1 S23430656 ND:2 RD:2 md0 LO:0 CS:4096
     UT:391cf1f1 ST:1 AD:2 WD:2 FD:0 SD:0 CSUM:47bab5b0 E:00000004
     D  0:  DISK<N:0,hda5(3,5),R:0,S:6>
     D  1:  DISK<N:1,hdc5(22,5),R:1,S:6>
     D  2:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  3:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  4:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  5:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  6:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  7:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  8:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  9:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 10:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 11:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     THIS:  DISK<N:0,hdc5(22,5),R:0,S:6>
 rdev hda5: O:hda5, SZ:00000000 F:0 DN:0 rdev superblock:
  SB: (V:0.90.0) ID:<5ec46911.74d3ef89.19413eab.3e1775f4> CT:391bd0b9
     L1 S23430656 ND:2 RD:2 md0 LO:0 CS:4096
     UT:391cf1f1 ST:1 AD:2 WD:2 FD:0 SD:0 CSUM:47bab5b0 E:00000004
     D  0:  DISK<N:0,hda5(3,5),R:0,S:6>
     D  1:  DISK<N:1,hdc5(22,5),R:1,S:6>
     D  2:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  3:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  4:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  5:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  6:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  7:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  8:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D  9:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 10:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     D 11:  DISK<N:0,[dev 00:00](0,0),R:0,S:4>
     THIS:  DISK<N:0,hda5(3,5),R:0,S:6>
       **********************************

do_md_run() returned -22
unbind<hdc5,1>
export_rdev(hdc5)
unbind<hda5,0>
export_rdev(hda5)
md0 stopped.
... autorun DONE.

------------------------- cut here -----------------------------

Then fsck gives some errors:

[root@kennedy /root]# fsck /dev/md0
Parallelizing fsck version 1.18 (11-Nov-1999)
e2fsck 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
fsck.ext2: Attempt to read block from filesystem resulted in short read while tr
ying to open /dev/md0
Could this be a zero-length partition?

I tried mkraid without force but aborted.   Then I upgrade the kernel to 2.2.16
with Alan Cox's patch.  Then error messages at dmesg are gone, but still gets
the same fsck error.  

I wonder if i can fix the problem without destroying data on /dev/md0.

Would you please help ?

Thanks a lot.
Sincerely,
ST Wong ([EMAIL PROTECTED])

Reply via email to