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 個月前檢視次數 241 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南