Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(bug): partial backup didn't backup the right partition for data_bin and logs #7242

Closed
wants to merge 1 commit into from

Conversation

pkriko
Copy link
Contributor

@pkriko pkriko commented Mar 1, 2019

Fix partial Backup

Description

When we enabled the partial backup from lvm snapshot, we can restore the partial backup because : - the partial backup method backup ibdata but not the new partitions ; - When we restore the full and the partial, we have a ibdata that need the new partitions not backuped - The tables logs and data_bin doesn't exist anymore in the innodb engine

So now I fix the issue following the smooth-db-backup.sh

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software
  • Updating documentation (missing information, typo...)

Target serie

Please delete series that are not relevant.

  • 2.8.x
  • 18.10.x
  • 19.04.x (master)

How this pull request can be tested ?

1. Enable the backup LVM partial and full. 2. Wait to have one full and one partial 3. Try to restore following theses commands : - mysqladmin shutdown - rm -rf /var/lib/mysql/* - tar -xzf 2018-02-28-mysql-full.tar.gz --strip-components=3 -C /var/lib/mysql/ - tar -xzf 2019-03-01-mysql-partial.tar.gz --strip-components=3 -C /var/lib/mysql/ - restart mysql

Try do it without this fix, you'll have the following error :
mysql > desc data_bin;
Table 'centreon_storage.data_bin' doesn't exist in engine

@garnier-quentin
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants