Ir para o conteúdo

Upgrading from t2.xlarge to t2.2xlarge - question on data retention

0

Hello, i have a EC2 instance currently on a t2.xlarge, and it keeps crashing due to not enough memory, i was thinking of upgrading it to a t2.2xlarge just for more CPU compute, i wondered, i currently have a EBS volume attached to it, if i change the instance type, will the volume be okay and the new instance start running with the volume still attached? In other words, i wont loose the storage? Thanks in advance

feita há 3 meses32 visualizações
1 Resposta
0

Yes, you can safely upgrade your EC2 instance from t2.xlarge to t2.2xlarge without losing your data or EBS volume. When you change the instance type of an EBS-backed instance, the EBS volume remains attached to the instance and all your data is preserved.

Here's how to change the instance type:

  1. First, as a precaution, it's always good practice to back up your data (create an EBS snapshot).
  2. Stop your EC2 instance (you cannot change the instance type while the instance is running).
  3. Once stopped, select the instance in the EC2 console.
  4. Go to "Actions" > "Instance Settings" > "Change Instance Type".
  5. Select "t2.2xlarge" as the new instance type.
  6. Click "Apply" to confirm the change.
  7. Start your instance again.

After the instance starts, it will be running as a t2.2xlarge with all your data and settings intact. The EBS volume will remain attached and function normally.

Note that changing the instance type only affects the compute resources (CPU, memory) allocated to your instance, not the storage. Your EBS volume is separate from the instance type and will persist through the change.
Sources
Change EC2 instance type | AWS re:Post
EBS Storage size not increased after Instance Type upgrade (Linux) | AWS re:Post

respondido há 3 meses
ESPECIALISTA
avaliado há 3 meses
AWS
ESPECIALISTA
avaliado há 3 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.