Simple increasing disk space on AWS EC2

top-hard-disk-download-icon-images-for-clip-artFrom time to time you might face the issue when you’re running out of disk space on AWS EC2 instance.
There’re a couple of ways to fix it, but if you’re running single instance and if 5 min downtime is OK for you, here’s the simplest way to do it.

First of all check a current disk space (I have enough disk space on this box, but nevermind):

Screen Shot 2016-06-06 at 16.13.45

Shutdown instance (it’s not 100% necessary, but small downtime is OK in our case):

Screen Shot 2016-06-06 at 16.14.25

Initiate image creating:

Screen Shot 2016-06-06 at 16.15.24

Enter desired amount of the storage:

Screen Shot 2016-06-06 at 16.16.36

Go to Snapshots section and wait until it’s done (few minutes, but it depends on size):

Screen Shot 2016-06-06 at 16.18.12

Go to AMI section, select created image and Launch new instance from it:

Screen Shot 2016-06-06 at 16.19.16

Follow regular instance launching procedure (during launching you’re able to enter new size again if needed):

Screen Shot 2016-06-06 at 16.19.47

As soon as new instance is up & running login and check disk size, as you can see it’s desired 30Gb:

Screen Shot 2016-06-06 at 16.23.13

Check your service (If you use ElasticIP don’t forget to assign it to a new instance) and if it’s ok delete an old instance:

Screen Shot 2016-06-06 at 16.23.46

Now you can delete AMI or keep it as “backup” (I’ll definitely prefer to delete it):

Screen Shot 2016-06-06 at 16.33.01

And also delete snapshot:

Screen Shot 2016-06-06 at 16.45.34

That’s all for simple increasing disk space on AWS EC2.

I hope this info will be useful for you, and if you need any help feel free to use contact form on the main page.