how to reuse compute nodes instance?

asked 2017-11-30 09:54:37 -0600

yixuan178 gravatar image

updated 2017-12-02 23:44:53 -0600

hello all, i have one small cluster with RDO (Kilo) which include 1 controller, and 1 compute node. today, someone from my team suddenly reinstall that controller, all data has gone away. only left 1 compute nodes which still has vm instance in /var/lib/nova/instances. i want to know how to recover those VMs? or how to import to another complete OpenStack environment. can you help kindly provide some clue or line?

thanks, Eugene

edit retag flag offensive close merge delete


Your hypervisor is probably KVM. If so, the command you use to manage VMs is virsh. One strategy would be shutting down your VMs (virsh shutdown), copying their qcow2 files to a different Openstack installation, creating images from them and launch new instances. The devil is in the details.

Bernd Bausch gravatar imageBernd Bausch ( 2017-12-01 04:42:35 -0600 )edit

hello Bemd, thanks for your information. in compute nodes, instance locate at /var/lib/nova/instance. when i go to see that folder, it will have four files, one is disk file. is it qcow image? is it possible to import into kvm manager directly?

yixuan178 gravatar imageyixuan178 ( 2017-12-02 23:47:06 -0600 )edit

Use the file command to find out which is the qcow2. Most likely, it's based on another file in another directory under /var/lib/nova/instances. file or qemu-img will tell you. Use virsh dumpxml to get the VM description.

You can also try virsh migrate.

Bernd Bausch gravatar imageBernd Bausch ( 2017-12-04 00:20:27 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-12-10 21:17:10 -0600

yixuan178 gravatar image

finally, use qemu-nbd and mount my image to get files.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-11-30 09:54:37 -0600

Seen: 681 times

Last updated: Dec 10 '17