Last active
August 29, 2015 14:18
-
-
Save shiranGinige/9140270de9700e1d1edc to your computer and use it in GitHub Desktop.
AWS / EBS creating and attaching volumes
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
1. create the EBS volume /snapshot from the console and attach it with the instance | |
$ sudo mkfs -t ext3 /dev/sdf | |
$ sudo mkdir /mnt/data-store | |
$ sudo mount /dev/sdf /mount/data-store | |
2. to map a drive from a snapshot | |
- make the snapshot a volume from the console and attach it with the instance | |
to view how the new drive is mapped with the instance | |
$ lsblk | |
for example the new drive might be mapped as /dev/xvdp. find that out and mount it to a seperate directory | |
$ sudo mount /dev/xvdp /mount/data-store2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment