내용으로 건너뛰기

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

질문됨 3달 전32회 조회
1개 답변
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

답변함 3달 전
전문가
검토됨 3달 전
AWS
전문가
검토됨 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠