Increase Size of Amazon Instance

CHECK SIZE & STORAGE SPACE USED

  1. ssh into instance
  2. df -h
    1. This command shows a human readable version of space used.  More info about Linux/Unix Free Disk Space
    2. /dev/xvda1 = your Elastic Block Storage
INCREASE SIZE
  1. AWS Management Console > EC2
  2. Instances > Right Click Instance that needs resized > Stop
  3. Volumes > Select Instance Volume > Actions > Create Snapshot (note the snapshot name & description)
    1. see newly created snapshot in Snapshots
  4. Volumes > Note Availability Zone & Attachment Information (e.g. /dev/sda1) of Existing Instance
  5. Right Click Existing, smaller size, Volume > Detach Volume
  6. Volumes > Create Volume
    1. Type: standard
    2. Size:  choose desired larger size
    3. Availability Zone:  choose same as noted in 4
    4. Snapshot:  choose created snapshot in 3
    5. Yes, Create
  7. Right Click New, larger sized, Volume > Attach Volume
    1. Instance desired (note that instance will not show up if volume was not setup in the same Availability Zone are original)
    2. Device:  e.g. /dev/sda1/ (your's may be different) under Attachment Information from above (if not correct, you will get an error when trying to restart instance)
  8. Instances > Right Click Instance that needs resized > Start
  9. Reassign IP of Instance
    1. Elastic IPs > Associate Address
REFERENCES