Is It Possible to Dynamically Increase the Volume of an EC2 Instance?

0

Started this Ubuntu 22.04 instance with gp3 64 GB volume. But now I ran out of space in this, with a lot of data and dependencies already set up. Is there a way to dynamically increase the volume to 300 GB or something?

By dynamic, I do not mean without shutting it down. I mean to say, in a way that retains the current setting, with the dependencies set up.

For further clarity, my root device and block device have the same name, i.e.

/dev/sda1

So it seems the ebs volume is the only storage in my ec2.

  • Yes, you can definitely increase it from the AWS console by modifying volume to according to your demand.

asked 3 months ago231 views
1 Answer
1

Yes you can, although ensure you have a backup or snapshot of the volume before you start.

You may also want to spin up a temporary EC2 to practise on before doing it for real.

The method for increasing the EBS volume is here https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/requesting-ebs-volume-modifications.html

After that is complete, you will want to grow the filesystem to match the underlying volume https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

This tutorial goes through the steps in more detail https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/modify-ebs-volume-on-instance.html

profile picture
EXPERT
Steve_M
answered 3 months ago
profile pictureAWS
EXPERT
reviewed 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions