Skip to content

Instantly share code, notes, and snippets.

@ipedrazas
Created February 6, 2015 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipedrazas/4370dc4c1e0cac2f4643 to your computer and use it in GitHub Desktop.
Save ipedrazas/4370dc4c1e0cac2f4643 to your computer and use it in GitHub Desktop.
Raid 0 in EC2 with Ephemeral Disks
lsblk
# umount any disk that you want to use in the raid
umount /mnt
sudo apt-get install lvm2
sudo mkdir /mnt/stripe1
sudo vgcreate vg1 /dev/xvdb /dev/xvdc
sudo lvcreate -i 2 -L 300G -n lv1 vg1
sudo mkfs -t ext4 /dev/vg1/lv1
# add to fstab
/dev/vg1/lv1 /mnt/stripe1 ext4 defaults 0 2
df -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment