Best way to grow Linux software RAID 1 to RAID 10

Posted by Hans Malherbe on Server Fault See other posts from Server Fault or by Hans Malherbe
Published on 2009-07-21T18:20:07Z Indexed on 2010/05/05 14:38 UTC
Read the original article Hit count: 317

Filed under:
|
|

mdadm does not seem to support growing an array from level 1 to level 10.

I have two disks in RAID 1. I want to add two new disks and convert the array to a four disk RAID 10 array.

My current strategy:

  1. Make good backup.
  2. Create a degraded 4 disk RAID 10 array with two missing disks.
  3. rsync the RAID 1 array with the RAID 10 array.
  4. fail and remove one disk from the RAID 1 array.
  5. Add the available disk to the RAID 10 array and wait for resynch to complete.
  6. Destroy the RAID 1 array and add the last disk to the RAID 10 array.

The problem is the lack of redundancy at step 5.

Is there a better way?

© Server Fault or respective owner

Related posts about linux

Related posts about software-raid