0

I am using "devstack" to play with the openstack in my desktop.

I had configured several vms in my instance. What happened was couple of days ago there was a power failure which caused my desktop to power down(I didnt have a UPS) attached to it. This resulted in my losing all the vms since i didnt unstack.

One of the solution to prevent this from happening next time is using a UPS. Are there any other solutions that I can use to back the vms so that even if there is a power loss the vms will run if i just restart and do ./stack.sh

user1647708
  • 447
  • 3
  • 9
  • 22

2 Answers2

0

Create snapshot of VM

enter image description here

Instance snapshots are uploaded to Glance which will store them in /var/lib/glance/images on the controller node.

Backup this folder.

When there is a data lose occurs , just restore this folder and Launch new instance by boot from image. select the snapshot and click launch.

Harikrishnan
  • 9,688
  • 11
  • 84
  • 127
  • Hi, I tried to create a snapshot and it did create one. however, I cant find it in /var/lib/glance. I saw /opt/stack/data/glance/images/ where the rest of the images -including the one i uploaded (custom ubuntu) is present. Do you know where I can look to back it up? – user1647708 Nov 25 '14 at 22:35
  • In the openstack UI when I create the snapshot it says 0 bytes although in custom properties it has a proper size. – user1647708 Nov 25 '14 at 22:44
  • Then try backup of `/opt/stack/data/glance/images/` – Harikrishnan Nov 26 '14 at 03:10
0

Devstack is a developer environment, it is not meant to recover from power losses.

You should consider using another all-in-one openstack installer which should support restarting the openstack services without losing state. For instance, you can use Redhat's packstack - https://openstack.redhat.com/Quickstart

Barak
  • 3,066
  • 2
  • 20
  • 33