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
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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
Basically, you need the mdadm tools and I'll just assume you have them installed. My best guess would be:
mdadm --create /dev/md0 -n -l0 /dev/sdb /dev/sdc
This should create a block device
/dev/md0, which you can use as you please. Typically, I put LVM on top, but you do whatever you want. I couldn't actually test this right now.
Normally, I create partitions with the RAID partition type (Partition ID=FD, "Linux raid autodetect"), which I then raid... But it might work on the bare disks.
Since I like to verify, I googled around and found http://www.tecmint.com/create-raid0-in-linux/, which is pretty much all you need to know to get it up and running.