Ask Your Question
0

MANUAL: recover instances to newly built system

asked 2016-03-03 07:41:11 -0500

madejackson gravatar image

updated 2016-03-03 09:52:19 -0500

Hi all there,

I made a terrible mistake in my openstack environment and my controller & compute1 needed to be rebuilt on a new system. I now have a backup of /var/lib/nova/instances which I'd like to migrate.

How can i migrate all my instances on a new openstack-environment? Notes: I don't have any snapshots, sql-Backup or other backups to use.

Do I need to edit the xml-Files of the instances?

System information: I am running Kilo as an all-in-one-setup with additional compute-node both servers are on a freshly installed Ubuntu Server 14.04.4 LTS

Thanks for your help.

UPDATE:

I went a bit further:

according to this: https://www.datalounges.com/blogposts/instances-how-to-recover-move-openstack-instances (https://www.datalounges.com/blogposts...)

I imported my instance as an image and launched a new intance from this image. But I get following error:

2016-03-03 15:44:59.041 12878 ERROR nova.compute.manager [req-460c0425-fb83-497e-b121-854c032e0958 21041f7574bc4ecdb9c857f6eb04ff1d 2d52db7d292446c7b2a2d6e039e47e6b - - -] [instance: becc69d1-3845-4dc8-88ae-bf6c3a528f4b] Build of instance becc69d1-3845-4dc8-88ae-bf6c3a528f4b aborted: Image b02e6827-875f-4a4d-b119-62a0af7dc6fa is unacceptable: fmt=qcow2 backed by: /var/lib/nova/instances/_base/f11c5a8a8d146b9593312f5c57bf99372ae78861

Update 2:

I was able to fix this error with following command: qemu-img convert -f qcow2 -O qcow2 DISK NEWDISK This command imports the backing file into the image

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-03-03 08:30:51 -0500

Hi,

You need to recover your instance's data into another compute node, you can follow admin guide to do that.

http://docs.openstack.org/openstack-ops/content/maintenance.html#compute_node_failures

http://docs.openstack.org/admin-guide-cloud/compute-node-down.html

Regards

edit flag offensive delete link more

Comments

I'm not sure you do understand my problem... My whole Openstack-Environment is new. There is no another compute node. There is also a new controller.

madejackson gravatar imagemadejackson ( 2016-03-03 08:53:17 -0500 )edit
0

answered 2016-03-03 09:54:07 -0500

madejackson gravatar image

I was able to fix this error with following command: qemu-img convert -f qcow2 -O qcow2 DISK NEWDISK This command imports the backing file into the image

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2016-03-03 07:41:11 -0500

Seen: 577 times

Last updated: Mar 03 '16