AWS EC2 - Increase Root Storage

EC2 servers use Elastic Block Storage as the resource for its storage volumes. In this article, we saw how to add to the storage size so that the EC2 server has more storage capabilities.

a month ago

Latest Post Free Pluralsight Courses - April 2020 by Tyler Moon

Amazon EC2 servers provide a simple and relatively cheap way of provisioning virtual machines on the fly. After much usage as the server host for this blog, my EC2 instance ran out of disk space. While I could spend time cleaning out logs, npm caches, unused project code, etc, storage these days is quite cheap so I can just increase the storage size.

Prerequisites

Locating the EBS Instance

Elastic Block Storage (aka EBS) is the AWS resource that provides storage for many AWS resources including EC2 servers. The EC2 server initializes and creates the EBS resources on creation so it can is not necessarily named the same as the server. Luckily in the AWS console, there is a link to the EBS resource from the EC2 description.

Navigate to the EC2 resource and select the server you want to increase the storage for.

EC2 Instance Dashboard

On the Description tab scroll down to the "Root device" link and select the "/dev/sda1" link.

EBS Instance Link

Then click on the "EBS ID" link to open the attached storage resource

EBS ID link

With the EBS instance open right click on the row and select Modify Volume

EBS Instance

And now you can change the size and click "Modify" to change the size.

Modify Volume

This may take some time to take effect but after a few minutes then the EC2 server should show a larger storage size!

Summary

EC2 servers use Elastic Block Storage as the resource for its storage volumes. In this article, we saw how to add to the storage size so that the EC2 server has more storage capabilities.

Tyler Moon

Published a month ago