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 online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
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)