I have 2 Amazon EC2 on demand instances running.
- Instance A - micro - Root Device = EBS backed
- Instance B - large - Root Device = EBS backed
Both instance are accesible using SSH. Both instances have their proper pem key.
I wanted to move everything from the micro to the large device without causing downtime on instance A so I did the following :
- Created a snapshot of the Instance A EBS volume
- Created an EBS volume from that snapshot
- Stopped instance B (to be able to detach its EBS root)
- Detached instance B EBS root
- Attached the volume from step2 as EBS root (dev/sda1) on instance B
- Start Instance B
Although the instance was started I wasn't able to SSH to the machine anymore.
ssh: connect to host ec2-xx-xx-xx-xx.compute-1.amazonaws.com port 22: Connection refused
Is this the correct way to copy the ESB volume from one instance to another and how is it possible that the SSH connectivity was down after the move ?
When I attached the original EBS root of Instance B SSH connectivity was possible. So only when booting from the EBS volume created by the instance A snapshot is the SSH connectivity lost.
Any ideas what might be causing this ?