Pike
- Clean garbage file in /root and /home/stack for faster backup
- Play
ansible-playbook backup-undercloud/main.yaml
Queens
openstack undercloud backup
Use backup files to restore undercloud
Pike
- Time synchoronized
sudo yum install -y ntp
sudo chkconfig ntpd on
sudo service ntpd stop
sudo ntpdate pool.ntp.org
sudo service ntpd restart
- Extract backup files
mkdir /root/undercloud-extract
cd /root/undercloud-extract
gunzip UC-backup.gz /root/undercloud-extract
- Copy file to current path
- Install MariaDB service
- Restore DB backup
- Clean DB password to be able to reinstall the Undercloud
- Install glance and swift base packages, and then restore their data
- Reinstall undercloud
- Reconnetc the restored Undercloud to the Overcloud Having completed the steps above, the Undercloud can be expected to automatically restore its connection to the Overcloud. The nodes will continue to poll Orchestration (heat) for pending tasks, using a simple HTTP request issued every few seconds.