Created
February 6, 2015 10:47
-
-
Save ipedrazas/4370dc4c1e0cac2f4643 to your computer and use it in GitHub Desktop.
Raid 0 in EC2 with Ephemeral Disks
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
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