Ask Your Question
0

Can OpenStack live backup instances (Pike)?

asked 2018-04-19 08:38:05 -0500

elliotp gravatar image

Hi,

We're running Pike. I'm trying to implement backups - incremental, non incremental, snapshots, anything. At the moment we can't work out if it is at all possible to live backup instances, i.e without interruption to normal functionality? Or is Ceph / other storage required for CoW?

We've tried both with volume backed instances (cinder nfs), and local storaged backed instances with the following:

openstack server backup create

openstack volume backup create

In both cases, the instance is taken offline for 20 minutes to backup.

Thanks,

Elliot

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-04-20 00:52:27 -0500

Deepa gravatar image

You can use snapshot to backup instances ,openstack volume list --all-projects gives volume id and openstack volume snapshot create --force --volume (volume to be backed up) "snapshot-name" where --force is used for inuse volume to be backed up .When needed you need to convert snapshot back to volume and use .You can customize a script using it add to cron accordingly

edit flag offensive delete link more

Comments

1

That's great for instances that use volumes. I think the OP wanted to know how to back up instances that use ephemeral storage while the instance continues running (and so do I :).

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-20 01:09:57 -0500 )edit

I think to make a backup of the ephemeral disk we will need to create a snapshot of instance itself. The resulting snapshot in this case will be a openstack image type.Can use below command as well openstack server image create --name <snapshot_name> <server>(Server name or ID).Not sure though :P

Deepa gravatar imageDeepa ( 2018-04-20 01:57:52 -0500 )edit

Our storage backend is Ceph, and we run weekly backups without interruptions of the running instances, but this is done on the rbd layer (rbd export <nova_id>_disk...). This is the best solution for us as doing a nova snapshot (dashboard or CLI) would result in a new glance image every time.

eblock gravatar imageeblock ( 2018-04-20 03:11:29 -0500 )edit
1

Additionally, you can set

[workarounds]
disable_libvirt_livesnapshot = false

on compute nodes (nova.conf) to enable live snapshots with nova. This should prevent the instances from freezing.

eblock gravatar imageeblock ( 2018-04-20 03:16:31 -0500 )edit

This is the actual answer. Just a note: Setting it to false carries risks as described in https://docs.openstack.org/nova/pike/....

Bernd Bausch gravatar imageBernd Bausch ( 2018-04-20 03:40:18 -0500 )edit

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

1 follower

Stats

Asked: 2018-04-19 08:38:05 -0500

Seen: 617 times

Last updated: Apr 20 '18