On Wednesday 02 March 2005 18:06, A. Khattri wrote:
> > I believe you need a DEVICE specification per array.
>
> Yes, I have DEVICE and ARRAY lines in mdadm.conf - see the grep commands
> at the end of my previous post.

"per array" :)

> I have managed to get something working but its not quite right.

[snip]

> So I 
> ran fdisk on the install disk, marked the partitions as Linux RAID auto
> and then tried to add them to the array.

Perfect. Compile the raid and scsi drivers in, and you can forget about 
mdadm.conf.

> Right now, I can assemble the array but the added disk is marked as a
> spare instead of a mirror:
>
> livecd dev # mdadm -A /dev/md0 /dev/sda1 /dev/sdb1
> mdadm: /dev/md0 has been started with 1 drive and 1 spare.
>
> livecd dev # cat /proc/mdstat
> Personalities : [raid0] [raid1] [raid5] [raid6] [raid10]
> md0 : active raid1 sda1[0] sdb1[1]
>       56128 blocks [1/1] [U]
>
> unused devices: <none>

Right, so the arrays you created in fact only had one partition in?
Now you're trying to re-assemble those arrays, but using 2 partitions?
If I'm understanding you correctly, that won't work. But if you create an 
array using the partition that is/was in an array it should sync the data 
already on it over to the next one.

> I tried stopping the device and editing my mdadm.conf to reflect the
> changes I made (see grep lines in previous post) but this doesn't work. I
> think I need to do an additional step to get this working?

The superblock contains all the information needed to assemble arrays, so 
perhaps it's overriding you configuration?

> (Im doing it this way because I dont want to have to do a Gentoo install
> all over again on the RAID drives...).

I sucesssfully converted my /home partition into a mirror like this.

-- 
Mike Williams

Attachment: pgpekAKz6oQJq.pgp
Description: PGP signature

Reply via email to