I had installed raidtools version 0.90 and patch raid0145-19990724-2.2.10 on slackware's kernel 2.2.10 but some problems ocurred during installation. The first problem I had saw was the patch application. When I executed the folow command raid:/usr/local/src/linux~#patch < raid0145-19990724-2.2.10 some files appeared in the same directory where I executed the command. So, I move this files to the directory /usr/local//src/linux/include/linux/raid that I have to create before. These are the files that I moved: hsm.h md_compatible.h.orig raid1.h hsm.h.orig md_k.h raid1.h.orig hsm_p.h md_k.h.orig raid5.h hsm_p.h.orig md_p.h raid5.h.orig linear.h md_p.h.orig translucent.h linear.h.orig md_u.h translucent.h.orig md.h md_u.h.orig xor.h md.h.orig raid0.h xor.h.orig md_compatible.h raid0.h.orig I made this because I couldn't compile the kernel, the message error said that couldn't find include file linux/raid/md.h ! After this, I had compiled the kernel and raidtools. I edited the /etc/raditab file to have five md raid1 devices. I have two EIDE disk with same size. Both disks has the same partition table and geometry, configured like this: Disk /dev/hda: 255 heads, 63 sectors, 756 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 20 160618+ 83 Linux native /dev/hda2 21 46 208845 82 Linux swap /dev/hda3 47 123 618502+ fd Unknown /dev/hda4 124 756 5084572+ 85 Linux extended /dev/hda5 124 174 409626 fd Unknown /dev/hda6 175 429 2048256 fd Unknown /dev/hda7 430 684 2048256 fd Unknown /dev/hda8 685 756 578308+ fd Unknown I enabled multidisk, raid level one and automatic md detection on the kernel. The output of a cat /proc/mdstat gives this result: Personalities : [raid1] [translucent] read_ahead 1024 sectors md0 : active raid1 hdc3[1] hda3[0] 618432 blocks [2/2] [UU] md1 : active raid1 hdc5[1] hda5[0] 409536 blocks [2/2] [UU] md2 : active raid1 hdc6[1] hda6[0] 2048192 blocks [2/2] [UU] md3 : active raid1 hdc7[1] hda7[0] 2048192 blocks [2/2] [UU] md4 : active raid1 hdc8[1] hda8[0] 578240 blocks [2/2] [UU] unused devices: <none> Using dmesg command to see the boot messages, I obtained: md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12 translucent personality registered raid1 personality registered ne.c:v1.10 9/23/94 Donald Becker ([EMAIL PROTECTED]) NE*000 ethercard probe at 0x300: 00 00 21 d4 0e cb eth0: NE2000 found at 0x300, using IRQ 5. md.c: sizeof(mdp_super_t) = 4096 Partition check: hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 > hdc: [PTBL] [756/255/63] hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 hdc8 > autodetecting RAID arrays (read) hda3's sb offset: 618432 [events: 0000000b] (read) hda5's sb offset: 409536 [events: 0000000b] (read) hda6's sb offset: 2048192 [events: 0000000b] (read) hda7's sb offset: 2048192 [events: 0000000b] (read) hda8's sb offset: 578240 [events: 0000000b] (read) hda8's sb offset: 578240 [events: 0000000b] (read) hdc3's sb offset: 618432 [events: 0000000b] (read) hdc5's sb offset: 409536 [events: 0000000b] (read) hdc6's sb offset: 2048192 [events: 0000000b] (read) hdc7's sb offset: 2048192 [events: 0000000b] (read) hdc8's sb offset: 634432 [events: 0000000b] autorun ... considering hdc8 ... adding hdc8 ... adding hda8 ... created md4 bind<hda8,1> bind<hdc8,2> running: <hdc8><hda8> now! hdc8's event counter: 0000000b hda8's event counter: 0000000b md4: max total readahead window set to 128k md4: 1 data-disks, max readahead per data-disk: 128k raid1: device hdc8 operational as mirror 1 raid1: device hda8 operational as mirror 0 (checking disk 0) (really checking disk 0) (checking disk 1) (really checking disk 1) raid1: raid set md4 active with 2 out of 2 mirrors md: updating md4 RAID superblock on device md: updating md4 RAID superblock on device hdc8 [events: 0000000c](write) hdc8's sb offset: 634432 hda8 [events: 0000000c](write) hda8's sb offset: 578240 . considering hdc7 ... adding hdc7 ... adding hda7 ... created md3 bind<hda7,1> bind<hdc7,2> running: <hdc7><hda7> now! hdc7's event counter: 0000000b hda7's event counter: 0000000b md3: max total readahead window set to 128k md3: 1 data-disks, max readahead per data-disk: 128k raid1: device hdc7 operational as mirror 1 raid1: device hda7 operational as mirror 0 (checking disk 0) (really checking disk 0) (checking disk 1) (really checking disk 1) raid1: raid set md3 active with 2 out of 2 mirrors md: updating md3 RAID superblock on device hdc7 [events: 0000000c](write) hdc7's sb offset: 2048192 hda7 [events: 0000000c](write) hda7's sb offset: 2048192 . considering hdc6 ... adding hdc6 ... adding hda6 ... created md2 bind<hda6,1> bind<hdc6,2> running: <hdc6><hda6> now! hdc6's event counter: 0000000b hda6's event counter: 0000000b md2: max total readahead window set to 128k md2: 1 data-disks, max readahead per data-disk: 128k raid1: device hdc6 operational as mirror 1 raid1: device hda6 operational as mirror 0 (checking disk 0) (really checking disk 0) (checking disk 1) (really checking disk 1) raid1: raid set md2 active with 2 out of 2 mirrors md: updating md2 RAID superblock on device hdc6 [events: 0000000c](write) hdc6's sb offset: 2048192 hda6 [events: 0000000c](write) hda6's sb offset: 2048192 . considering hdc5 ... adding hdc5 ... adding hda5 ... adding hda5 ... created md1 bind<hda5,1> bind<hdc5,2> running: <hdc5><hda5> now! hdc5's event counter: 0000000b hda5's event counter: 0000000b md1: max total readahead window set to 128k md1: 1 data-disks, max readahead per data-disk: 128k raid1: device hdc5 operational as mirror 1 raid1: device hda5 operational as mirror 0 (checking disk 0) (really checking disk 0) (checking disk 1) (really checking disk 1) raid1: raid set md1 active with 2 out of 2 mirrors md: updating md1 RAID superblock on device hdc5 [events: 0000000c](write) hdc5's sb offset: 409536 hda5 [events: 0000000c](write) hda5's sb offset: 409536 . considering hdc3 ... adding hdc3 ... adding hda3 ... created md0 bind<hda3,1> bind<hdc3,2> adding hdc3 ... adding hda3 ... created md0 bind<hda3,1> bind<hdc3,2> running: <hdc3><hda3> now! hdc3's event counter: 0000000b hda3's event counter: 0000000b md0: max total readahead window set to 128k md0: 1 data-disks, max readahead per data-disk: 128k raid1: device hdc3 operational as mirror 1 raid1: device hda3 operational as mirror 0 (checking disk 0) (really checking disk 0) (checking disk 1) (really checking disk 1) raid1: raid set md0 active with 2 out of 2 mirrors md: updating md0 RAID superblock on device hdc3 [events: 0000000c](write) hdc3's sb offset: 618432 hda3 [events: 0000000c](write) hda3's sb offset: 618432 . ... autorun DONE. All things says that raid level one is working normally, but when I mount /dev/hdc8 and compare with /dev/hda8, they are not syncronized. One clue is that when I was creating md devices a warning message appeared saying that one device was overlapping another. Any ideas ? ------------------------------------------------------------------------- Rodrigo Luiz Anami [EMAIL PROTECTED] Best Way Internet Provider Atendimento ao Cliente http://www.bestway.com.br (019) 254.6263 (Campinas) [EMAIL PROTECTED] 0800.112262 (Outras Localidades) -------------------------------------------------------------------------
