Web-server – Amazon EBS : Is it flexible and expandable or is it a static disk

amazon ec2amazon-ebscloudweb-server

I just started the journey into cloud and my choice was Amazon. The free tier was very cool so i opted for this stuff.

In the free tier there was a free storage of 30Gb (EBS), so i made a EBS Volume of 15 Gb for a start and attached it to an instance i created (Ubuntu 12.04).

When i try to find the disk under /dev/sda(xvda) or /dev/sdf(xvdf)

There is no disk mounted at all. I also tried mount -a but no use on that either. I did not actually create any 8 Gb disk but yet there is a 8 gb disk with the OS.

Before i move my sites to aws and burn my hands, i wanted to know if the disk of 8Gb can be expanded or not. If in future the 8 Gb gets full then it would be difficult moving the sites to something other provider.

Apart from creating snapshots and mounting them on a bigger disk is there any process to increase the disk space without effecting anything on the disk (Websites, databases etc).

Please clarify the EBS terminologies and processes.

Best Answer

Yes, you can change the EBS root volume to a size larger than 8 GB, but it requires a bit of work including stopping your instance for a few minutes. The basic procedures is:

  1. stop instance
  2. detach EBS volume
  3. snapshot EBS volume
  4. create new, larger EBS volume from snapshot
  5. attach new EBS volume
  6. start instance
  7. resize file system

I have written an article describing this process in more detail including sample commands: http://alestic.com/2010/02/ec2-resize-running-ebs-root

That said, I generally recommend storing your data on an EBS volume separate from the root EBS volume. You can use similar processes to resize the data volume.

Related Topic