Steve Schaefer's picture

I deployed LAMP on the cloud Friday. The cloud works great. I was able to install virtualmin and migrate one concrete5 web site to the server. Today I wanted to do some backing up so I used the EC2 management interface to create a snapshot of the volume. I decided to shut the server down to see how the menu choices change in EC2 when I do that. I issed shutdown -h now and the server shutdown. The problem is that as soon as it shudown the server went to terminated status. I was surprised. I am not able to figure out how to change the status so the server will start again.

Is the server lost for ever now?

Note I was able to click on the "Launch a new server like this one" link and the system created a new server. but it was a crystal clean install of TKL LAMP.

What does the Unregister from Hub link do

Thanks for any help

Jeremy Davis's picture

I don't have a lot of cloud and/or AWS experience so I can only speak in general. AFAIK unless you have an EBS volume mounted, server instances on AWS do not have persistent data ie you turn them off and everything is gone! As you made a snapshot though, perhaps there is some way of bringing it back using that? Also perhaps TKL attach EBS by default? I haven't played enough to be able to tell you. Hopefully (for your sake) they do (or you can somehow access your snapshot), and you just need to attach your persistent EBS drive to a new instance.

Hopefully someone who knows more about TKL on AWS will be along and able to help you out.

See this image

from this page

As far as i know "shutdown -h" now and shutdown option on console are two different things .

So if you want to stop and EBS instance , you should choose "shutdown" option on AWS console.

Again , when an instance is terminated , the data is gone :(

Alon Swartz's picture

As I described here, Amazon support two types of images, instance-store-backed (root partition stored on s3) and EBS-backed (root partition stored on an EBS volume), each with their own pro's and con's. TurnKey AMI's are of type instance-store-backed.

EBS-backed images can be "stopped" and restarted later. But instance-store-backed can't. Once they are terminated they are gone.

This is one of the reasons we developed TKLBAM, it will make sure that all customizations and data is backed up so you can terminate the instance, and restore to a new instance.

Other answers:

  • Launch a new server like this one - Convenience option to launch another instance like the original one, using the region and ebs/eip that were optionally configured on launch. This is not the same as "cloning", which we might, possibly, support now that TKLBAM has been released.
  • Unregister from hub - Removes the instance from the Hubs database.

I hope the above helps.

Add new comment