r/openstack • u/cathy_john • Sep 19 '22
How do you take backup of entire openstack environment -including private cloud NFVI?
We use avamar with data domain for other parts of enterprise which includes VMware, bare metal, nutanix etc. But how do we do this in openstack? Some of the VMs in openstack are running in memory(ephemeral volume), some has database and other has applications . New to openstack, please guide
I need an approach where I should be able to rebuild the entire environment or part of it(based on situations) from scratch in case of a disaster -same like we have for other traditional and virtualization environments
2
u/sekh60 Sep 20 '22
I use openstack kolla-ansible for my home lab deployment. The things to backup are the kolla configs, and the openstack mysql database. Kolla-ansible has a playbook to backup the database, and another to restore it. VMs backup depends on your storage infrastructure. I use ceph and sadly don't backup my more pet like VMs, but if I had a production environment, i'd just use ceph's built in block replication to take a "snapshot" to a remote cluster.
So easiest setup: make an off-openstack vm to deploy openstack with kolla, back up that vm, i just use libvirt on whatever host i want, that'll back up your config files; backup the database for openstack using kolla-ansible, copy the backup offsite. Use ceph for storage, and just use it's built in replication and snapshots to script something up, it's not hard.
2
u/cathy_john Sep 20 '22
Thank you, appreciated. But the issue with replication is, if I need multiple version of backup(say daily increment , weekly full etc).
1
u/sekh60 Sep 20 '22
Sorry for not being more clear. You replicate once, then export the rbd files to whatever backup media you want. Still not incremenals though unless you use something like Borg on the exported block devices. Remember though that Ceph is CoW, so you could take snapshots every hour and it only would take up a small amount of space. I don't remember the docs on it, but I think there may be a performance hour on too many snapshots
2
1
u/DTKT Sep 20 '22
I don't think there is an "openstack" way to do this.
The Freezer project helps for backups inside one Openstack cloud.
3
u/gren_dizer Sep 19 '22
I don’t think there is something like that for OpenStack. If you want to backup the entire cloud, you basically backup all the service databases and the VM volumes.
I would be interested in something like that too, if there is a solution out there.