Friday, March 1, 2013

how we can change size of EBS volume in EC2 of AWS using AWS console

Simple Steps to change size of EBS volume in EC2 of AWS using AWS console.


I found many of us who use EC2 (Amazon Elastic Compute Cloud) instances of AWS (Amazon Web Services) face issue of increasing size of their current EC2 instance without disturbing environment at run time.
Here are simple steps which will help you to change your current EC2 instance’s EBS (Elastic Block Store) volume size at run time through AWS console only.
  1. Create snapshot of existing (old) volume
  2. Create Snapshot of Existing Volume
  3. Then create new volume from created snapshot with new size
  4. Create New Volume With New Snapshot
  5. Put new size there
  6. Put New Volume
  7. Stop running instance
  8. Stop Running Instance
  9. Detach current volume
  10. Detach Current Volume
  11. Attach newly created volume in step 2 with Device as /dev/sda1 (It works only with /dev/sda1)
  12. Attach Newly Created Volume
  13. Then check with elastic IP address
  14. Check With Elastic IP For Same
  15. Then start instance.If you are not able to log-in, then disassociate IP and attach again and then start instance
  16. Finally after you gets connected through putty using either ec2-user for fedora/Amazon AMI and root for centOS
    Run following commands
  17. sudo su
    sudo resize2fs /dev/sda1
    If this command does not work, then give sudo resize2fs /dev/xvda1. Basically /dev/xvda1 denotes your existing name on file system.
    It’s done. :)
Reference Link:

No comments:

Post a Comment