Speeding up Red Hat Satellite 6.1 backup by using LVM snapshots
Hi everyone,
katello-backup script is recommended backup procedure for the satellite 6.x requires the satellite service to go off-line before creating file level backup of relevant directories :
/etc/katello
/etc/elasticsearch
/etc/candlepin
/etc/pulp
/etc/grinder
/etc/tomcat
/etc/pki/katello
/etc/pki/pulp
/etc/qpidd.conf
/etc/sysconfig/katello
/etc/sysconfig/elasticsearch
/root/ssl-build
/var/www/html/pub/*
/var/lib/katello
/usr/share/katello/candlepin-cert.crt
/var/lib/mongodb
/var/lib/pgsql/data/
/var/lib/elasticsearch
/var/lib/pulp
/var/www/pub
With /var/lib/pulp being large that 1/2 of Terabyte, this methodology will require a downtime that is rather undesirable.
I am wondering if the outage can be reduced by first snapshoting and then creating a backup of the file system snapshots instead. Consider following steps:
- Stop the application
- Snapshot file system containing directories which contain file which in turn store an application state e.g.
/var/www/html/pub/*
/var/lib/pgsql
/var/lib/mongodb
/var/lib/pulp
/var/lib/katello ?
/var/www/pub ?
3 Start The Satellite services - Run system backup using standard backup tool ( we user Networker )
- Merge snapshots
Any comments and/or suggestions are greatly appreciated.
Ivan.