[Openstack] howto rescue an instance from a dead host

gtt116 gtt116 at 126.com
Mon Nov 5 09:56:37 UTC 2012


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






More information about the Openstack mailing list