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.

preguntada hace 4 meses241 visualizaciones
1 Respuesta
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
EXPERTO
Steve_M
respondido hace 4 meses
profile pictureAWS
EXPERTO
revisado hace 4 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas