I am using a large EC2 instance but just realized that I don't have the space promised. I only get 8 gigs when it says I should have 850 GB.
From what I understand two extra 420 gb drives should be avail for me to format/mount to setup, but I can't seem to find it. If I look in the dev directory its not there. I tried to enter "df -h " and it didn't show up either.
Is there something I need to do to get access to the drives?
if it helps, I'm using the standard amazon linux image.
Best Answer
To access the ephemeral (instance-store) storage Amazon includes with an EC2 instance, you need to define it when you launch an instance. Using the EC2 command line tools all you need to do is include the -b or --block-device-mapping option flag.
For example, this command would launch a single m1.large instance in us-east-1a, with ephemeral0 and ephemeral1 mapped to sdb1 and sdb2 respectively and the following options:
-
Then you can format and mount the devices. (repeat each command once for each device)
You can then either add the following two lines to your /etc/fstab (feel free to adjust your mount options, file system, etc.)
And mount the devices
Or, just mount the devices without adding these devices to the fstab file
Verify
Sample Output:
By the way, once you customize your instance. Create your own AMI based on this instance and whenever you launch an instance from the resulting AMI the ephemeral storage will already be configured.
Also, take a look at the documentation provided on the AWS website.
Amazon Command Line Tools Documentation
Good Luck!