Created
January 12, 2012 17:58
-
-
Save andrewgross/1602081 to your computer and use it in GitHub Desktop.
AWS RAID Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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