Skip to content

Instantly share code, notes, and snippets.

@colllin
Last active October 29, 2018 18:59
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 colllin/da55ba6513e489fdca2ea42c74b0410b to your computer and use it in GitHub Desktop.
Save colllin/da55ba6513e489fdca2ea42c74b0410b to your computer and use it in GitHub Desktop.
Setting up raid on EC2 instance
# xvdg1 and xvdh1 are 2 attached volumes; md0 will be the (virtual) raid volume
mdadm -C /dev/md0 -l raid0 -c 64 -n 2 /dev/xvdg1 /dev/xvdh1
mdadm -E /dev/xvd[g-h]1
mdadm --detail /dev/md0
mkfs.ext4 /dev/md0
df -h
mount /dev/md0 /mnt/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment