Last active
December 11, 2015 00:59
-
-
Save sholloway/4520281 to your computer and use it in GitHub Desktop.
Basic directions to attach an EBS volume to an EC2 instance.
This file contains hidden or 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
Attached the EBS volume to the EC2 Instance | |
http://www.webmastersessions.com/how-to-attach-ebs-volume-to-amazon-ec2-instance | |
Logged in to the EC2 instance, | |
The volume should show up as /dev/sdf or something. | |
#Format the volume | |
sudo mkfs.ext3 /dev/sdf | |
#create the directory to link the volume to. | |
mkdir /spatial-db | |
#link the directory to the EDS Volume by modifying the fstab file | |
echo “/dev/sdf /spatial-db ext3 noatime 0 0″ >> /etc/fstab | |
#mount the directory | |
mount /spatial-db | |
#check the disk size | |
df -h /spatial-db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment