Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question
2  
Why wouldn't you just create an AMI from your snapshot and then launch a new large instance from that? –  EEAA Apr 20 '13 at 23:05
    
Will try that ... but any reason why my steps wouldn't work and why the vm boots but doesn't allow me to SSH to it ? –  ddewaele Apr 20 '13 at 23:17
1  
What does the console log say? –  EEAA Apr 20 '13 at 23:28
    
When you ssh you can use the -v flag for more verbose output. Connection refused sounds like it might be firewall related. –  Drew Khoury Apr 21 '13 at 4:44
    
@DrewKhoury : Security group has inbound SSH (port 22) enabled so that doesn't seem to be the issue –  ddewaele Apr 21 '13 at 7:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.