Thread (1 message) 1 message, 1 author, 2004-07-09

Re: Adding a new mirror disk to RAID1 configuration

flat view

From: Neil Brown <hidden>
Date: 2004-07-09 05:13:31

On Friday July 9, luke@neuro-tech.net wrote:
I have a system with two 40GB drives, and the first drive (hda) is setup 
  under an md device with RAID1 driving it.  I'm trying to now make the 
second disk, hdc, a mirror of the first.  When I try to add it using 
mdadm the second disk becomes a spare and no synchronization is done. 
Is there any way to add the second disk directly as a mirror?  Thanks.
If you have a very recent 2.6 kernel and very recent mdadm, then you
can

   mdadm --grow /dev/md0 --raid-disks 2

to tell it that there should really be 2 raid disks, and then the
spare will start synchronising.

Otherwise you will need to recreate the array telling that you really
wanted it to have to raid disks (one missing or failed) in the first
place.

This is assuming that it currently thinks it has one raid-disk.
A
  cat /proc/mdstat
or
  mdadm -D /dev/md0

would help.

NeilBrown
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help