Saturday, October 15, 2011

Stopping and Starting Instance to Migrate to New Hardware

Received an email that my amazon instance is running on a host that is running on degraded hardware and will be brought down for maintenance. All I was asked to do was to stop and start my instance to migrate instance to new hardware.

So I issued the following command to stop:

~$ ec2-stop-instances i-22222
INSTANCE i-22222 running stopping

The status on the AWS console and from the command line said the instance is stopping:


~$ ec2-describe-instances


Got this message after issuing the start command:

~$ ec2-start-instances i-22222

Client.IncorrectInstanceState: The instance 'i-22222' is not in a state from which it can be started.

After waiting for approximately ten minutes, the instance was stopped and I issued the start command again:


t~$ ec2-start-instances i-22222
INSTANCE i-22222 stopped pending


The instance was started successfully.

No comments:

Post a Comment