Skip to content

Instantly share code, notes, and snippets.

@andrewgross
Created January 12, 2012 17:58
Show Gist options
  • Save andrewgross/1602081 to your computer and use it in GitHub Desktop.
Save andrewgross/1602081 to your computer and use it in GitHub Desktop.
AWS RAID Setup
yum update
yum install mdadm
yum install xfsprogs
Attach your drives, ephemeral or EBS (/dev/sdf* here)
mdadm --create /dev/md0 --verbose --metadata=1.1 --level=0 --chunk=256 --raid-devices=8 /dev/sdf1 /dev/sdf2 /dev/sdf3 /dev/sdf4 /dev/sdf5 /dev/sdf6 /dev/sdf7 /dev/sdf8
mdadm --examine --scan --config=partitions > /etc/mdadm.conf
mkfs.xfs /dev/md0
mkdir /data
echo "/dev/md0 /data xfs defaults,noatime 0 0" >> /etc/fstab
mount /data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment