Skip to content

Instantly share code, notes, and snippets.

@ssudharsan
Last active August 29, 2015 14:02
Show Gist options
  • Save ssudharsan/d0d41c7e21e31381330f to your computer and use it in GitHub Desktop.
Save ssudharsan/d0d41c7e21e31381330f to your computer and use it in GitHub Desktop.
mounting instance storage on ec2
umount /media/ephemeral0
mdadm --create /dev/md1 --chunk=4 --level=0 --raid-devices=2 /dev/xvdb /dev/xvdc
mkfs.ext4 /dev/md1
mkfs.ext4 /dev/md1
mkdir /data
mount /dev/md1 /data
mount --bind /var/test /data/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment