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.

已提问 4 个月前240 查看次数
1 回答
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
专家
Steve_M
已回答 4 个月前
profile pictureAWS
专家
已审核 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则