Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 need to install a software raid-0 array on a Ubuntu 12.04 server with mdadm through commandline (SSH).

The drive setup is as follows:

  • SDA = OS SSD
  • SDB = HDD for raid 0
  • SDC = HDD for raid 0
share|improve this question
Please be aware that RAID0 is a very bad idea on a server in general. What have you tried? Is this a new installation or an existing one? What installation medium are you using? (for 12.04 you'll need the alternate installer I believe) On an existing setup, you can just create an array using mdadm. – gertvdijk Dec 19 '12 at 15:58

You can setup RAID 0 array from this tutorial how ever the chunk size while telling mdadm is not provided in the tutorial and will use from the default setting from your config file but you can do it yourself just by adding --chunk=128 on the command

share|improve this answer
Thank you...... – Aurigae Dec 19 '12 at 16:33… --> who reads / tries the linked tutorial might want to read this too... – Aurigae Dec 21 '12 at 18:14

Why you don't use LVM (Logical Volume Management) to do this :

1-Create a physical volume on the first hard drive, and another physical volume on the second hard drive.

2-Create a new volume group, assigning both physical volumes to it.

3-Create a new logical volume in that volume group.

share|improve this answer
I don't think LVM is for servers... well that type of LVM. – Star OS Nov 23 '15 at 17:49

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.