[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Permanently adding device to a RAID array.



> Hi.
>
> I just installed Sarge with the netinst cd. I choose RAID1, but at the
> time of install I only had one drive so I marked one as missing. Now
> I've added the second drive with
>
> mdadm /dev/md0 -add /dev/hdc1
>
> That went fine. But every time I reboot the added drive has
> disappeared from the RAID array and I have to readd it. What should I
> do to add it permanently?
>

you need to add it to your /etc/mdadm/mdadm.conf

try:

conf='/etc/mdadm/mdadm.conf'
echo 'DEVICES partitions' > $conf
mdadm --examine --scan >> $conf

I think that should do it.

-davidc



Reply to: