CHECK SIZE & STORAGE SPACE USED
- ssh into instance
- df -h
- This command shows a human readable version of space used. More info about Linux/Unix Free Disk Space
- /dev/xvda1 = your Elastic Block Storage
INCREASE SIZE
- AWS Management Console > EC2
- Instances > Right Click Instance that needs resized > Stop
- Volumes > Select Instance Volume > Actions > Create Snapshot (note the snapshot name & description)
- see newly created snapshot in Snapshots
- Volumes > Note Availability Zone & Attachment Information (e.g. /dev/sda1) of Existing Instance
- Right Click Existing, smaller size, Volume > Detach Volume
- Volumes > Create Volume
- Type: standard
- Size: choose desired larger size
- Availability Zone: choose same as noted in 4
- Snapshot: choose created snapshot in 3
- Yes, Create
- Right Click New, larger sized, Volume > Attach Volume
- Instance desired (note that instance will not show up if volume was not setup in the same Availability Zone are original)
- 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)
- Instances > Right Click Instance that needs resized > Start
- Reassign IP of Instance
- Elastic IPs > Associate Address
REFERENCES