Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a system already configured with raid 1 with 2 disks:

/dev/md1             918347072 249416692 621528596  29% /var
/dev/md0               9920532    160640   9247828   2% /tmp

# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdc5[0] sdb5[1]
      948035712 blocks [2/2] [UU]

md0 : active raid1 sdc2[0] sdb2[1]
      10241344 blocks [2/2] [UU]

I have asked for changing this into Raid 0+1 (strips are mirrored, )

How can I change this partition into Raid 01 after adding 2 more disks without formatting?

share|improve this question
What you probably want is 1+0. In almost all cases, this is preferred to 0+1. – MDMarra Nov 30 '12 at 0:23
No unfortunately, it is 0+1 because of a customer! – seaquest Nov 30 '12 at 0:45
If these drives are already handled by lvm, I might be able to come up with some commands for you. Can you share the output of the pvs command, please? – dafydd Nov 30 '12 at 0:49
@dafydd, give then df output in the question, I don't think he has LVM. – Zoredache Nov 30 '12 at 1:10

The Linux software MD RAID10 personality not exactly the same as the standard RAID 1+0 or 0+1, or 10. Also, AFAIK it simply is not possible to reshape from a RAID1 to RAID10.

If you plan on using the RAID10 personality, then ignore all that 0+1 vs 1+0 stuff since you don't really get a choice with MD your bigger question is about the near|far|offset question which determines how the chunks are distributed between the various disks in the volume.

As dafydd alluded to in his comment if you had LVM on top of your RAID devices, then you would be able to setup an additional RAID1 volume with your two new disks, add it as a PV, and then use LVM to do the stripping. But from your df output it doesn't look like you have LVM in place.

It seems like it would be very dangerous, but it might be possible to create a new RAID10 with 4 disk, but with two of the disk set as marked as missing (basically RAID0. Copy the data over to the new RAID10, then add the existing RAID1 disks to the RAID10. But your data would be effectively be on a RAID0 until the rebuild completes after adding the two new disk from the RAID1. I believe you have to a near style layout for this to work though.

See this answer for the procedure.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.