hi abed
your are showing that sda5 and sdb5 is used as /local and /loca1
you cannot use those partitions in another raid partition ( /dev/md0 )
( take sda5 and sdb5 out of your /etc/fstab file )
in /etc/raid1.conf, you need to select partitions that are NOT used
anywhere else
if you want to use those two partitions, sda5 and sdb5, you need to save
the contents elsewhere and create your raid1 device and restore it
onto the raid1 drives...
you can also symlink /etc/raid1.conf to /etc/raidtab if you like
have fun
alvin
> Abed M. Hammoud wrote:
>
> Hello,
>
> I am trying to get raid level one working on my machine. I have
> installed
>
> raidtools-0.50beta10-2
>
> and I have enabled the raid as a module in my kernel.
>
> The output of the df command is:
>
> /dev/hda1 54410 25292 26309 49% /
> /dev/sda5 17072834 13 16183684 0% /local
> /dev/sdb5 17072834 13 16183684 0% /local1
> /dev/hda7 7068742 836518 5865944 12% /usr
> /dev/hda6 303251 23454 264136 8% /var
>
>
> I have put /etc/raid1.conf which contains:
>
> raiddev /dev/md0
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
>
> device /dev/sda5
> raid-disk 0
>
> device /dev/sdb5
> raid-disk 1
>
>
> Now I do the follwing:
>
> root> /sbin/mkraid -c /etc/raid1.conf /dev/md0
> handling MD device /dev/md0
> analyzing super-block
> disk 0: /dev/sda5, 17782752kB, raid superblock at 17782656kB
> /dev/sda5 is mounted
> mkraid: aborted
>
> So why am I getting mkraid aboarted. Also do I need to have an
> /etc/raidtab file...
>
> I tried this /etc/raidtab (I edited a the distributed sample file):
>
> raiddev /dev/md2
> raid-level 1
> nr-raid-disks 2
> nr-spare-disks 0
> chunk-size 128
>
> device /dev/sda5
> raid-disk 0
> device /dev/sdb5
> raid-disk 1
>
>
> So please what am I doing wrong. I am trying to make /local and /local1
> mirror each other.
>
> Thanks for any pointers.
>
>
> Oh, I have RH5.2 kernel 2.0.36 (on i386 machine) - I have the raid
> enabled as a module. I didn't add any patches for the kernel to
> support raid. Do I need to add some patches ? If I do, is there
> a way of knowing if these patches have been applied to the
> kernel already ?
>
> Thanks,
> Abed
>
> --
> Abed M. Hammoud, D.Sc. [EMAIL PROTECTED]
> IntellX L.L.C. Office: (303) 469-7383
> Colorado, USA http://www.anatomic.com/abed
>