Does not work: MariaDB database backup and restore in kolla-ansible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
Undecided
|
Unassigned |
Bug Description
- [x] This doc is inaccurate in this way: The restore procedure on ubuntu does not work. Tried wallaby and xena with the same problem
Restore:
1. I create a restore container with the volume attached:
sudo docker run --rm -it --volumes-from mariadb --name dbrestore --volume mariadb_
2. I iun the restore commands inside the restore container as per the documentation:
cd /backup
rm -rf /backup/restore
mkdir -p /backup/
gunzip mysqlbackup-
mbstream -x -C /backup/
mariabackup --prepare --target-dir /backup/
Result is: [00] 2021-12-01 22:24:41 completed OK!
exit
3. I stop the restore container:
sudo docker stop mariadb
4. I start up a new mariadb container:
sudo docker run --rm -it --volumes-from mariadb --name dbrestore --volume mariadb_
5. I restore mariadb to the new container:
rm -rf /var/lib/mysql/*
rm -rf /var/lib/
mariabackup --copy-back --target-dir /backup/
Result is [00] 2021-12-01 22:25:48 completed OK!
exit
6. I start mariadb:
sudo docker start mariadb
Check that it started:
sudo docker logs mariadb
output is:
Running command: '/usr/bin/
211201 21:26:20 mysqld_safe Logging to '/var/log/
211201 21:26:20 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql/
Running command: '/usr/bin/
211201 22:26:52 mysqld_safe Logging to '/var/log/
211201 22:26:52 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql/
Running command: '/usr/bin/
211201 22:27:26 mysqld_safe Logging to '/var/log/
211201 22:27:26 mysqld_safe Starting mariadbd daemon with databases from /var/lib/mysql/
It does not show "Recovered position" or anything like what the documentation shows and is borked.
Running kolla-ansible -i ~/multinode mariadb_recovery fixes it but returns it to the last known database state not to the full backup that I am trying to restore.
Thanks!
If you have a troubleshooting or support issue, use the following resources:
- The mailing list: https:/
- IRC: 'openstack' channel on OFTC
-------
Release: 13.1.0.dev51 on 2021-01-18 23:14:14
SHA: fa2a0d572bd195a
Source: https:/
URL: https:/
Changed in kolla-ansible: | |
status: | Incomplete → New |
What do the mariadb logs in /var/log/ kolla/mariadb say?