openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #18284
Re: howto rescue an instance from a dead host
Using nova reboot --hard uuid has a better chance of working than nova
start. This should bring back everything but volumes. There are a couple if
bugfixes being back ported to stable folsom. When those are in it should
reconnect everything for you.
On Nov 5, 2012 1:57 AM, "gtt116" <gtt116@xxxxxxx> wrote:
> Thomas, Thanks very much for your help!
>
> 于 2012年11月05日 17:15, Thomas Kärgel 写道:
> > Hi gtt,
> >
> > Am 05.11.2012 07:53, schrieb gtt116:
> >> Hi all,
> >>
> >> Any way to rescure an instance when its host is dead.
> >> Although that teminate and boot a new one is a choice, but is there any
> >> way to keep the instance's fixed-ips, UUID, floating-ips, etc?
> > a few days ago i was also confronted with this requirement. Imho there
> > is only a manual way to do this at the current time.
> > To "resurrect" a instance on an other host you have to set it to state
> > "shutdown" in the database, change host value in database, define the
> > instance in new hypervisor and start it.
> >
> > Perform the following steps:
> > -Try to have a look at a database-entries of an instance which you
> > stopped with "nova stop {instance-name}" and adjust necessary columns in
> > the entry of the instance to be resurrected. Look for table instances in
> > nova db. Then set the instance to be resurrected to the same state as
> > the stopped instance.
> > -Next change the host value in database of this instance to an available
> > host.
> > -Copy over the instance-files to the new host if you are not using
> > shared storage or whatever...
> > -Take action to define your instance in hypervisor. How to do this
> > depends on what type of hypervisor you are using.
> besides, we need to deal with the reassociate floating-ip and volumns.
> Hope someday openstack can do these jobs for us. 8-):-)
> > -Now you should be able to start your instance on the new host via "nova
> > start {instance-name}".
> >
> >
> > kind regards
> > Thomas
> >
> >
> >
>
>
> --
> best regards,
> gtt
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
References