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.

gefragt vor 4 Monaten240 Aufrufe
1 Antwort
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
EXPERTE
Steve_M
beantwortet vor 4 Monaten
profile pictureAWS
EXPERTE
überprüft vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen