Hi all !

I'm having a problem configuring RAID1.

Installed sw at this point:
     RedHat 6 (Hedwig); Kernel 2.2.12; raidtools-0.90-3.i386.rpm

Relevent Hw description:
     3 SCSI disks: onde with 1G and the others with 2G.

     /dev/sda (...) with the system

     And, I have created in the other 2 hard disks only one partition with 2G
each: /dev/sdb1 and /dev/sdc1
     However ,and I'm refering this 'cause it can be important and maybe the
reason for the problem, the sdb1 has cylinders of 4154*512 bytes and the sdc1
has cylinders of 4030*512 bytes .


Prob:
     The famous: mkraid: aborted

The steps I walked through:

1. I've created the partitions sdb1 and sdc1 like described above.
2. The contents of the /etc/raidtab file:

# RAID1 configuration file
raiddev              /dev/md0
      raid-level          1
      nr-raid-disks       2
      nr-spare-disks      0
      chunk-size          4
      persistent-superblock    1
      device              /dev/sdb1
      raid-disk      0
      device              /dev/sdc1
      raid-disk      1

3. mkraid /dev/md0
handling MD device /dev/md0
analyzing super-block
disk 0: /dev/sdb1, 2095662kB, raid superblock at 2095552kB
disk 1: /dev/sdc1, 2033104kB, raid superblock at 2033024kB
mkraid: aborted
^^^^^^^^^^^^^^^^^

Well... anyway... I read a few messages posted to this mailling list and there
were some people that had a similar problem and I tried to go the other way
around:

3. mdcreate -c4k raid1 /dev/md0 /dev/sdb1 /dev/sdc1
            and the contents of the /etc/mdtab was create like this:

# mdtab entry for /dev/md0
/dev/md0   raid1,4k,0,37ca643f /dev/sdb1 /dev/sdc1

4. mdadd /dev/md0 /dev/sdb1 /dev/sdc1

REGISTER_DEV sdb1 to md0 done
REGISTER_DEV sdc1 to md0 done

4. mdrun -p1 /dev/md0    OR mdrun -ar

/dev/md0: Invalid argument

I hope someone can help me with this :/
Thanks in advance for any suggestion, tip or "recipe" ;-)

MP

Reply via email to