Read more

Create RAID on Amazon EC2 EBS volumes

Thomas Eisenbarth
August 08, 2011Software engineer at makandra GmbH

If you use Amazon AWS cloud services you definitively want to utilize software raid for IO intensive stuff such as database data directories and the like.

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Here's how you create it:

  • Create some EBS volumes within management console or
  • sudo mdadm --create -f /dev/md0 --chunk=256 --level 10 --raid-devices 4 /dev/sdf /dev/sdg /dev/sdh /dev/sdi
  • Create a fs on /dev/md0 using mkfs*-tools
  • As soon as this is running, you should do that:
    sudo mdadm --detail --scan >> /etc/mdadm/mdadm.conf

Make sure the last line in /etc/mdadm/mdadm.conf looks like that

ARRAY /dev/md0 level=raid0 num-devices=4 metadata=00.90 UUID=1234567893:abcdef:123
Posted by Thomas Eisenbarth to makandra dev (2011-08-08 14:00)