Friday 5 April 2019

How to resolve if our Amazon EBS-backed instance fails to connect by Raj Gupta

An Amazon EBS-backed instance can be stopped and later restarted without affecting data stored in the attached volumes




If an Amazon EBS-backed instance fails, we can restore our session by following one of these methods:

Below are my Production EC2 server which Root volume are EBS type



Step 1:-

Stop and then start again (This will change the hardware of our server without affecting our data because it is EBS-backed instance in this way if any issue due to hardware will be resolved.)

Stop it as shown below

Select EC2 server --> Actions --> Instance State --> Then Click on Stop


Now Start it again as shown below

Select EC2 server --> Actions --> Instance State --> Then Click on Start


In this way all the issue related with hardware will be resolved without loss of any data.

Step 2:-

Create a snapshot of the root volume

Go to Volumes --> select the root volume -->Then click on Create Snapshot


Now fill the Description and click on create Snapshot


Create a new AMI using this snapshot.

Snapshots --> Select the snapshot ---> Actions --> create Image


Now fill the Name and Description then click on create


Now create the new EC2 by using this AMI

Go to AMIs tab --> Select the AMI --> Then click on Launch to create new EC2 server


( In this way we will get new Server/hardware of our old server without affecting our data because it is EBS-backed instance in this way if any issue due to hardware will be resolved.)

If we have any other volume other then root volume attached with old server then Detach the remaining Amazon EBS volumes from the old instance.


Reattach the Amazon EBS volumes to the new instance.


No comments:

Post a Comment