Incremental restore removes myisam tables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Expired
|
Undecided
|
Unassigned |
Bug Description
i have one full backup and several incremental backups
when i do a restore i do this:
innobackupex --apply-log --redo-only /var/restore/full/
for i in inc1 inc2 inc3 inc4 inc5 ; do
innobackupex --apply-log --redo-only /var/restore/full/ --incremental-
done
innobackupex --apply-log /var/restore/full/ --incremental-
innobackupex --apply-log /var/restore/full/
innobackupex --copy-back /var/restore/full/
chown -R mysql:mysql /var/lib/mysql/
All works well and i have the innodb tables in the /var/lib/mysql/, yet trying to start the DB complains that the mysql/ database is missing tables. Checking i can see that the mysql/ directory only have this:
gtid_slave_pos.ibd
innodb_
innodb_
Checking the /var/restore/full/ , the mysql/ directory is now empty, but it had the myisam tables in the original backup. Also, all incremental backups also have the myisam tables.
I have repeated the process and i notice that after applying the first incremental, the myisam tables disappear.
the documentation in https:/
If i manually copy the myisam tables from the last incremental to the correct location, the mysql starts fine and everything works.
So, unless i'm doing something wrong, innobackupex is not copying the myisam tables as the documentation reports and there is a bug in the tool, or in the documentation :)
i'm using this version on debian jessie:
percona-
innobackupex reports this:
$ innobackupex --version
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
Get the latest version of Percona XtraBackup, documentation, and help resources:
http://
Thanks in advance for the help and for the great backup tool
higuita
I am unable to reproduce
I am using exactly this script:
innobackupex --no-timestamp $topdir/full/ basedir= $topdir/ full/ $topdir/inc1/ basedir= $topdir/ inc1/ $topdir/inc2/ basedir= $topdir/ inc2/ $topdir/inc3/ basedir= $topdir/ inc3/ $topdir/inc4/ basedir= $topdir/ inc4/ $topdir/inc5/ basedir= $topdir/ inc5/ $topdir/inc6/
innobackupex --no-timestamp --incremental --incremental-
innobackupex --no-timestamp --incremental --incremental-
innobackupex --no-timestamp --incremental --incremental-
innobackupex --no-timestamp --incremental --incremental-
innobackupex --no-timestamp --incremental --incremental-
innobackupex --no-timestamp --incremental --incremental-
innobackupex --apply-log --redo-only $topdir/full/ dir="$topdir/ $i/"
for i in inc1 inc2 inc3 inc4 inc5 ; do
innobackupex --apply-log --redo-only $topdir/full/ --incremental-
done
innobackupex --apply-log $topdir/full/ --incremental- dir="$topdir/ inc6/"
innobackupex --apply-log $topdir/full/
ls $topdir/full/mysql
The output of ls is:
columns_priv.MYD index_stats. frm index_stats. ibd table_stats. frm table_stats. ibd index.MYD index.MYI index.frm info.frm info.ibd log_info. frm log_info. ibd info.frm info.ibd leap_second. MYD leap_second. MYI leap_second. frm transition. MYD transition. MYI transition. frm transition_ type.MYD transition_ type.MYI transition_ type.frm
columns_priv.MYI
columns_priv.frm
db.MYD
db.MYI
db.frm
event.MYD
event.MYI
event.frm
func.MYD
func.MYI
func.frm
general_log.CSM
general_log.CSV
general_log.frm
help_category.MYD
help_category.MYI
help_category.frm
help_keyword.MYD
help_keyword.MYI
help_keyword.frm
help_relation.MYD
help_relation.MYI
help_relation.frm
help_topic.MYD
help_topic.MYI
help_topic.frm
innodb_
innodb_
innodb_
innodb_
ndb_binlog_
ndb_binlog_
ndb_binlog_
plugin.MYD
plugin.MYI
plugin.frm
proc.MYD
proc.MYI
proc.frm
procs_priv.MYD
procs_priv.MYI
procs_priv.frm
proxies_priv.MYD
proxies_priv.MYI
proxies_priv.frm
servers.MYD
servers.MYI
servers.frm
slave_master_
slave_master_
slave_relay_
slave_relay_
slave_worker_
slave_worker_
slow_log.CSM
slow_log.CSV
slow_log.frm
tables_priv.MYD
tables_priv.MYI
tables_priv.frm
time_zone.MYD
time_zone.MYI
time_zone.frm
time_zone_
time_zone_
time_zone_
time_zone_name.MYD
time_zone_name.MYI
time_zone_name.frm
time_zone_
time_zone_
time_zone_
time_zone_
time_zone_
time_zone_
user.MYD
user.MYI
user.frm
Do you see any error messages? Could you maybe provide a list of files in full and first incremental backups?