Percona-Xtrabackup 2.3.3 慢查询不再堵塞备份(一)
在Percona-Xtrabackup 2.3.3
[root@b28-19-17 bak]# rpm -q percona-xtrabackup
percona-xtrabackup-2.3.3-1.el6.x86_64
session one:
mysql> begin;
Query OK, 0 rows affected (0.00 sec)
mysql> insert into yoon values(201,'HANK','HANK','2006-02-15 04:34:33');
Query OK, 1 row affected (0.00 sec)
session two:
mysql> delete from yoon where actor_id=201;
session three:
[root@b28-11-37 bak]# innobackupex --compress --parallel=4 --user=root --password=yoon /my/bak/
160125 13:44:06 innobackupex: Starting the backup operation
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
160125 13:44:06 version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;port=3306;mysql_socket=/my/log/mysql.sock' as 'root' (using password: YES).
160125 13:44:06 version_check Connected to MySQL server
160125 13:44:06 version_check Executing a version check against the server...
160125 13:44:06 version_check Done.
160125 13:44:06 Connecting to MySQL server host: localhost, user: root, password: set, port: 3306, socket: /my/log/mysql.sock
Using server version 5.6.16-64.0-56-log
innobackupex version 2.3.3 based on MySQL server 5.6.24 Linux (x86_64) (revision id: 525ca7d)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /my/data
xtrabackup: open files limit requested 0, set to 65535
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = /my/log
xtrabackup: innodb_data_file_path = ibdata1:256M:autoextend
xtrabackup: innodb_log_group_home_dir = /my/log
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 536870912
2016-01-25 13:44:06 7f482820e720 InnoDB: Using Linux native AIO
xtrabackup: using O_DIRECT
160125 13:44:06 >> log scanned up to (8584369)
xtrabackup: Generating a list of tablespaces
xtrabackup: Starting 4 threads for parallel data files transfer
160125 13:44:07 [04] Compressing ./mysql/innodb_index_stats.ibd to /my/bak//2016-01-25_13-44-06/mysql/innodb_index_stats.ibd.qp
160125 13:44:07 [01] Compressing /my/log/ibdata1 to /my/bak//2016-01-25_13-44-06/ibdata1.qp
160125 13:44:07 [02] Compressing ./mysql/slave_worker_info.ibd to /my/bak//2016-01-25_13-44-06/mysql/slave_worker_info.ibd.qp
160125 13:44:07 [03] Compressing ./yoon/yoon.ibd to /my/bak//2016-01-25_13-44-06/yoon/yoon.ibd.qp
160125 13:44:07 [04] ...done
160125 13:44:07 [02] ...done
160125 13:44:07 [03] ...done
160125 13:44:07 [04] Compressing ./mysql/innodb_table_stats.ibd to /my/bak//2016-01-25_13-44-06/mysql/innodb_table_stats.ibd.qp
160125 13:44:07 [02] Compressing ./mysql/slave_relay_log_info.ibd to /my/bak//2016-01-25_13-44-06/mysql/slave_relay_log_info.ibd.qp
160125 13:44:07 [04] ...done
160125 13:44:07 [03] Compressing ./mysql/slave_master_info.ibd to /my/bak//2016-01-25_13-44-06/mysql/slave_master_info.ibd.qp
160125 13:44:07 [02] ...done
160125 13:44:07 [04] Compressing ./sakila/rental.ibd to /my/bak//2016-01-25_13-44-06/sakila/rental.ibd.qp
160125 13:44:07 [03] ...done
160125 13:44:07 [02] Compressing ./sakila/actor.ibd to /my/bak//2016-01-25_13-44-06/sakila/actor.ibd.qp
160125 13:44:07 [03] Compressing ./sakila/payment.ibd to /my/bak//2016-01-25_13-44-06/sakila/payment.ibd.qp
160125 13:44:07 [02] ...done
160125 13:44:07 [02] Compressing ./sakila/country.ibd to /my/bak//2016-01-25_13-44-06/sakila/country.ibd.qp
160125 13:44:07 [02] ...done
160125 13:44:07 [02] Compressing ./sakila/film_actor.ibd to /my/bak//2016-01-25_13-44-06/sakila/film_actor.ibd.qp
160125 13:44:07 [04] ...done
160125 13:44:07 [04] Compressing ./sakila/language.ibd to /my/bak//2016-01-25_13-44-06/sakila/language.ibd.qp
160125 13:44:07 [02] ...done
160125 13:44:07 [02] Compressing ./sakila/category.ibd to /my/bak//2016-01-25_13-44-06/sakila/category.ibd.qp
160125 13:44:07 [03] ...done
160125 13:44:07 [04] ...done
160125 13:44:07 [02] ...done
160125 13:44:07 [02] Compressing ./sakila/store.ibd to /my/bak//2016-01-25_13-44-06/sakila/store.ibd.qp
160125 13:44:07 [04] Compressing ./sakila/city.ibd to /my/bak//2016-01-25_13-44-06/sakila/city.ibd.qp
160125 13:44:07 [03] Compressing ./sakila/staff.ibd to /my/bak//2016-01-25_13-44-06/sakila/staff.ibd.qp
160125 13:44:07 [02] ...done
160125 13:44:07 [03] ...done
160125 13:44:07 [03] Compressing ./sakila/film.ibd to /my/bak//2016-01-25_13-44-06/sakila/film.ibd.qp
160125 13:44:07 [02] Compressing ./sakila/film_category.ibd to /my/bak//2016-01-25_13-44-06/sakila/film_category.ibd.qp
160125 13:44:07 [03] ...done
160125 13:44:07 [04] ...done
160125 13:44:07 [02] ...done
160125 13:44:07 [02] Compressing ./sakila/customer.ibd to /my/bak//2016-01-25_13-44-06/sakila/customer.ibd.qp
160125 13:44:07 [03] Compressing ./sakila/address.ibd to /my/bak//2016-01-25_13-44-06/sakila/address.ibd.qp
160125 13:44:07 [04] Compressing ./sakila/inventory.ibd to /my/bak//2016-01-25_13-44-06/sakila/inventory.ibd.qp
160125 13:44:07 [02] ...done
160125 13:44:07 [04] ...done
160125 13:44:07 [03] ...done
160125 13:44:07 [01] ...done
160125 13:44:07 >> log scanned up to (8584369)
160125 13:44:08 Executing LOCK TABLES FOR BACKUP...
160125 13:44:08 Starting to backup non-InnoDB tables and files
160125 13:44:08 [01] Compressing ./yoon/db.opt to /my/bak//2016-01-25_13-44-06/yoon/db.opt.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./yoon/yoon.frm to /my/bak//2016-01-25_13-44-06/yoon/yoon.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./test/db.opt to /my/bak//2016-01-25_13-44-06/test/db.opt.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/servers.MYI to /my/bak//2016-01-25_13-44-06/mysql/servers.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/user.frm to /my/bak//2016-01-25_13-44-06/mysql/user.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_transition_type.MYI to /my/bak//2016-01-25_13-44-06/mysql/time_zone_transition_type.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_name.MYI to /my/bak//2016-01-25_13-44-06/mysql/time_zone_name.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/proxies_priv.frm to /my/bak//2016-01-25_13-44-06/mysql/proxies_priv.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/plugin.frm to /my/bak//2016-01-25_13-44-06/mysql/plugin.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_relation.MYD to /my/bak//2016-01-25_13-44-06/mysql/help_relation.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/event.frm to /my/bak//2016-01-25_13-44-06/mysql/event.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/procs_priv.MYI to /my/bak//2016-01-25_13-44-06/mysql/procs_priv.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone.MYI to /my/bak//2016-01-25_13-44-06/mysql/time_zone.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/slave_worker_info.frm to /my/bak//2016-01-25_13-44-06/mysql/slave_worker_info.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/tables_priv.MYD to /my/bak//2016-01-25_13-44-06/mysql/tables_priv.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/general_log.CSV to /my/bak//2016-01-25_13-44-06/mysql/general_log.CSV.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_transition.MYD to /my/bak//2016-01-25_13-44-06/mysql/time_zone_transition.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/plugin.MYD to /my/bak//2016-01-25_13-44-06/mysql/plugin.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/user.MYD to /my/bak//2016-01-25_13-44-06/mysql/user.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/db.frm to /my/bak//2016-01-25_13-44-06/mysql/db.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/proc.MYD to /my/bak//2016-01-25_13-44-06/mysql/proc.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/slow_log.frm to /my/bak//2016-01-25_13-44-06/mysql/slow_log.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/innodb_index_stats.frm to /my/bak//2016-01-25_13-44-06/mysql/innodb_index_stats.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_keyword.frm to /my/bak//2016-01-25_13-44-06/mysql/help_keyword.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/ndb_binlog_index.MYI to /my/bak//2016-01-25_13-44-06/mysql/ndb_binlog_index.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/user.MYI to /my/bak//2016-01-25_13-44-06/mysql/user.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/slow_log.CSV to /my/bak//2016-01-25_13-44-06/mysql/slow_log.CSV.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/proxies_priv.MYI to /my/bak//2016-01-25_13-44-06/mysql/proxies_priv.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/proc.frm to /my/bak//2016-01-25_13-44-06/mysql/proc.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/db.MYI to /my/bak//2016-01-25_13-44-06/mysql/db.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/procs_priv.MYD to /my/bak//2016-01-25_13-44-06/mysql/procs_priv.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/procs_priv.frm to /my/bak//2016-01-25_13-44-06/mysql/procs_priv.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/ndb_binlog_index.frm to /my/bak//2016-01-25_13-44-06/mysql/ndb_binlog_index.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_keyword.MYI to /my/bak//2016-01-25_13-44-06/mysql/help_keyword.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/servers.MYD to /my/bak//2016-01-25_13-44-06/mysql/servers.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/general_log.frm to /my/bak//2016-01-25_13-44-06/mysql/general_log.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_leap_second.MYI to /my/bak//2016-01-25_13-44-06/mysql/time_zone_leap_second.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/columns_priv.frm to /my/bak//2016-01-25_13-44-06/mysql/columns_priv.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/event.MYI to /my/bak//2016-01-25_13-44-06/mysql/event.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/plugin.MYI to /my/bak//2016-01-25_13-44-06/mysql/plugin.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/columns_priv.MYD to /my/bak//2016-01-25_13-44-06/mysql/columns_priv.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/db.MYD to /my/bak//2016-01-25_13-44-06/mysql/db.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_relation.MYI to /my/bak//2016-01-25_13-44-06/mysql/help_relation.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/general_log.CSM to /my/bak//2016-01-25_13-44-06/mysql/general_log.CSM.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_topic.MYI to /my/bak//2016-01-25_13-44-06/mysql/help_topic.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/ndb_binlog_index.MYD to /my/bak//2016-01-25_13-44-06/mysql/ndb_binlog_index.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_transition.MYI to /my/bak//2016-01-25_13-44-06/mysql/time_zone_transition.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_keyword.MYD to /my/bak//2016-01-25_13-44-06/mysql/help_keyword.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_relation.frm to /my/bak//2016-01-25_13-44-06/mysql/help_relation.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/func.frm to /my/bak//2016-01-25_13-44-06/mysql/func.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_transition_type.frm to /my/bak//2016-01-25_13-44-06/mysql/time_zone_transition_type.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/columns_priv.MYI to /my/bak//2016-01-25_13-44-06/mysql/columns_priv.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_transition.frm to /my/bak//2016-01-25_13-44-06/mysql/time_zone_transition.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/slow_log.CSM to /my/bak//2016-01-25_13-44-06/mysql/slow_log.CSM.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_topic.frm to /my/bak//2016-01-25_13-44-06/mysql/help_topic.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_category.MYD to /my/bak//2016-01-25_13-44-06/mysql/help_category.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_name.MYD to /my/bak//2016-01-25_13-44-06/mysql/time_zone_name.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone.MYD to /my/bak//2016-01-25_13-44-06/mysql/time_zone.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/event.MYD to /my/bak//2016-01-25_13-44-06/mysql/event.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/func.MYI to /my/bak//2016-01-25_13-44-06/mysql/func.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/proxies_priv.MYD to /my/bak//2016-01-25_13-44-06/mysql/proxies_priv.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/slave_master_info.frm to /my/bak//2016-01-25_13-44-06/mysql/slave_master_info.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_transition_type.MYD to /my/bak//2016-01-25_13-44-06/mysql/time_zone_transition_type.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/innodb_table_stats.frm to /my/bak//2016-01-25_13-44-06/mysql/innodb_table_stats.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/slave_relay_log_info.frm to /my/bak//2016-01-25_13-44-06/mysql/slave_relay_log_info.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/tables_priv.MYI to /my/bak//2016-01-25_13-44-06/mysql/tables_priv.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/func.MYD to /my/bak//2016-01-25_13-44-06/mysql/func.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/proc.MYI to /my/bak//2016-01-25_13-44-06/mysql/proc.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_category.frm to /my/bak//2016-01-25_13-44-06/mysql/help_category.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_name.frm to /my/bak//2016-01-25_13-44-06/mysql/time_zone_name.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_topic.MYD to /my/bak//2016-01-25_13-44-06/mysql/help_topic.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_leap_second.frm to /my/bak//2016-01-25_13-44-06/mysql/time_zone_leap_second.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/servers.frm to /my/bak//2016-01-25_13-44-06/mysql/servers.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone_leap_second.MYD to /my/bak//2016-01-25_13-44-06/mysql/time_zone_leap_second.MYD.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/time_zone.frm to /my/bak//2016-01-25_13-44-06/mysql/time_zone.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/tables_priv.frm to /my/bak//2016-01-25_13-44-06/mysql/tables_priv.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./mysql/help_category.MYI to /my/bak//2016-01-25_13-44-06/mysql/help_category.MYI.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_statements_summary_by_digest.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_summary_by_digest.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/session_account_connect_attrs.frm to /my/bak//2016-01-25_13-44-06/performance_schema/session_account_connect_attrs.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/db.opt to /my/bak//2016-01-25_13-44-06/performance_schema/db.opt.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/users.frm to /my/bak//2016-01-25_13-44-06/performance_schema/users.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_waits_summary_by_instance.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_summary_by_instance.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/setup_instruments.frm to /my/bak//2016-01-25_13-44-06/performance_schema/setup_instruments.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_waits_history_long.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_history_long.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_stages_history.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_stages_history.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/session_connect_attrs.frm to /my/bak//2016-01-25_13-44-06/performance_schema/session_connect_attrs.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/file_instances.frm to /my/bak//2016-01-25_13-44-06/performance_schema/file_instances.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_statements_summary_by_account_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_summary_by_account_by_event_name.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/rwlock_instances.frm to /my/bak//2016-01-25_13-44-06/performance_schema/rwlock_instances.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_stages_summary_global_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_stages_summary_global_by_event_name.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_stages_summary_by_thread_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_stages_summary_by_thread_by_event_name.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/socket_instances.frm to /my/bak//2016-01-25_13-44-06/performance_schema/socket_instances.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_statements_history_long.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_history_long.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_waits_current.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_current.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/setup_actors.frm to /my/bak//2016-01-25_13-44-06/performance_schema/setup_actors.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_waits_summary_by_thread_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_summary_by_thread_by_event_name.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/file_summary_by_instance.frm to /my/bak//2016-01-25_13-44-06/performance_schema/file_summary_by_instance.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_statements_history.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_history.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 >> log scanned up to (8584369)
160125 13:44:08 [01] Compressing ./performance_schema/events_statements_summary_global_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_summary_global_by_event_name.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/events_waits_summary_by_account_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_summary_by_account_by_event_name.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/accounts.frm to /my/bak//2016-01-25_13-44-06/performance_schema/accounts.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/table_io_waits_summary_by_index_usage.frm to /my/bak//2016-01-25_13-44-06/performance_schema/table_io_waits_summary_by_index_usage.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/threads.frm to /my/bak//2016-01-25_13-44-06/performance_schema/threads.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/socket_summary_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/socket_summary_by_event_name.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:08 [01] Compressing ./performance_schema/table_io_waits_summary_by_table.frm to /my/bak//2016-01-25_13-44-06/performance_schema/table_io_waits_summary_by_table.frm.qp
160125 13:44:08 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/setup_timers.frm to /my/bak//2016-01-25_13-44-06/performance_schema/setup_timers.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_stages_history_long.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_stages_history_long.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/socket_summary_by_instance.frm to /my/bak//2016-01-25_13-44-06/performance_schema/socket_summary_by_instance.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/host_cache.frm to /my/bak//2016-01-25_13-44-06/performance_schema/host_cache.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_statements_current.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_current.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/mutex_instances.frm to /my/bak//2016-01-25_13-44-06/performance_schema/mutex_instances.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/file_summary_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/file_summary_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_waits_summary_by_user_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_summary_by_user_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_waits_history.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_history.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/setup_consumers.frm to /my/bak//2016-01-25_13-44-06/performance_schema/setup_consumers.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_waits_summary_global_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_summary_global_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_statements_summary_by_thread_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_summary_by_thread_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/table_lock_waits_summary_by_table.frm to /my/bak//2016-01-25_13-44-06/performance_schema/table_lock_waits_summary_by_table.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_stages_summary_by_account_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_stages_summary_by_account_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_waits_summary_by_host_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_waits_summary_by_host_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_stages_summary_by_host_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_stages_summary_by_host_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_statements_summary_by_host_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_summary_by_host_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_stages_current.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_stages_current.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_stages_summary_by_user_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_stages_summary_by_user_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/events_statements_summary_by_user_by_event_name.frm to /my/bak//2016-01-25_13-44-06/performance_schema/events_statements_summary_by_user_by_event_name.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/performance_timers.frm to /my/bak//2016-01-25_13-44-06/performance_schema/performance_timers.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/hosts.frm to /my/bak//2016-01-25_13-44-06/performance_schema/hosts.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/cond_instances.frm to /my/bak//2016-01-25_13-44-06/performance_schema/cond_instances.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/setup_objects.frm to /my/bak//2016-01-25_13-44-06/performance_schema/setup_objects.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./performance_schema/objects_summary_global_by_type.frm to /my/bak//2016-01-25_13-44-06/performance_schema/objects_summary_global_by_type.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/payment_date.TRN to /my/bak//2016-01-25_13-44-06/sakila/payment_date.TRN.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/film_list.frm to /my/bak//2016-01-25_13-44-06/sakila/film_list.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/rental.TRG to /my/bak//2016-01-25_13-44-06/sakila/rental.TRG.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/db.opt to /my/bak//2016-01-25_13-44-06/sakila/db.opt.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/language.frm to /my/bak//2016-01-25_13-44-06/sakila/language.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/film.frm to /my/bak//2016-01-25_13-44-06/sakila/film.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/actor_info.frm to /my/bak//2016-01-25_13-44-06/sakila/actor_info.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/address.frm to /my/bak//2016-01-25_13-44-06/sakila/address.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/film_text.frm to /my/bak//2016-01-25_13-44-06/sakila/film_text.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/film.TRG to /my/bak//2016-01-25_13-44-06/sakila/film.TRG.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/actor.frm to /my/bak//2016-01-25_13-44-06/sakila/actor.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/sales_by_film_category.frm to /my/bak//2016-01-25_13-44-06/sakila/sales_by_film_category.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/category.frm to /my/bak//2016-01-25_13-44-06/sakila/category.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/rental.frm to /my/bak//2016-01-25_13-44-06/sakila/rental.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/country.frm to /my/bak//2016-01-25_13-44-06/sakila/country.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/customer_create_date.TRN to /my/bak//2016-01-25_13-44-06/sakila/customer_create_date.TRN.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/payment.TRG to /my/bak//2016-01-25_13-44-06/sakila/payment.TRG.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/ins_film.TRN to /my/bak//2016-01-25_13-44-06/sakila/ins_film.TRN.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/film_text.MYD to /my/bak//2016-01-25_13-44-06/sakila/film_text.MYD.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/city.frm to /my/bak//2016-01-25_13-44-06/sakila/city.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/payment.frm to /my/bak//2016-01-25_13-44-06/sakila/payment.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/film_category.frm to /my/bak//2016-01-25_13-44-06/sakila/film_category.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/upd_film.TRN to /my/bak//2016-01-25_13-44-06/sakila/upd_film.TRN.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/customer.TRG to /my/bak//2016-01-25_13-44-06/sakila/customer.TRG.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/film_text.MYI to /my/bak//2016-01-25_13-44-06/sakila/film_text.MYI.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/store.frm to /my/bak//2016-01-25_13-44-06/sakila/store.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/staff.frm to /my/bak//2016-01-25_13-44-06/sakila/staff.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/customer.frm to /my/bak//2016-01-25_13-44-06/sakila/customer.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/customer_list.frm to /my/bak//2016-01-25_13-44-06/sakila/customer_list.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/rental_date.TRN to /my/bak//2016-01-25_13-44-06/sakila/rental_date.TRN.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/film_actor.frm to /my/bak//2016-01-25_13-44-06/sakila/film_actor.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/staff_list.frm to /my/bak//2016-01-25_13-44-06/sakila/staff_list.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/nicer_but_slower_film_list.frm to /my/bak//2016-01-25_13-44-06/sakila/nicer_but_slower_film_list.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/inventory.frm to /my/bak//2016-01-25_13-44-06/sakila/inventory.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/del_film.TRN to /my/bak//2016-01-25_13-44-06/sakila/del_film.TRN.qp
160125 13:44:09 [01] ...done
160125 13:44:09 [01] Compressing ./sakila/sales_by_store.frm to /my/bak//2016-01-25_13-44-06/sakila/sales_by_store.frm.qp
160125 13:44:09 [01] ...done
160125 13:44:09 Finished backing up non-InnoDB tables and files
160125 13:44:09 Executing LOCK BINLOG FOR BACKUP...
160125 13:44:09 [00] Compressing xtrabackup_binlog_info
160125 13:44:09 [00] ...done
160125 13:44:09 Executing FLUSH NO_WRITE_TO_BINLOG ENGINE LOGS...
xtrabackup: The latest check point (for incremental): '8584369'
xtrabackup: Stopping log copying thread.
.160125 13:44:09 >> log scanned up to (8584369)
160125 13:44:09 Executing UNLOCK BINLOG
160125 13:44:09 Executing UNLOCK TABLES
160125 13:44:09 All tables unlocked
160125 13:44:09 Backup created in directory '/my/bak//2016-01-25_13-44-06'
MySQL binlog position: filename 'mysql-bin.000001', position '120'
160125 13:44:09 [00] Compressing backup-my.cnf
160125 13:44:09 [00] ...done
160125 13:44:09 [00] Compressing xtrabackup_info
160125 13:44:09 [00] ...done
xtrabackup: Transaction log of lsn (8584369) to (8584369) was copied.
160125 13:44:09 completed OK!
在Percona-Xtrabackup2.1.9
[root@hank-yoon backup]# rpm -q percona-xtrabackup
percona-xtrabackup-2.1.9-744.rhel6.x86_64
session one:
root(yoon)> begin;
Query OK, 0 rows affected (0.00 sec)
root(yoon)> insert into yoon values(201,'HANK','HANK','2006-02-15 04:34:33') ;
Query OK, 1 row affected (0.73 sec)
session two:
root(yoon)> delete from yoon where actor_id=201;
session three:
[root@hank-yoon export]# innobackupex --compress --parallel=4 --defaults-file=/export/servers/mysql/etc/my.cnf --user=root --password=yoon /export/backup/
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://www.percona.com/xb/p
160125 12:11:13 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/export/servers/mysql/etc/my.cnf;mysql_read_default_group=xtrabackup' as 'root' (using password: YES).
160125 12:11:13 innobackupex: Connected to MySQL server
160125 12:11:13 innobackupex: Executing a version check against the server...
160125 12:11:13 innobackupex: Done.
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
innobackupex: Using mysql server version 5.6.26-log
innobackupex: Created backup directory /export/backup/2016-01-25_12-11-13
160125 12:11:13 innobackupex: Starting ibbackup with command: xtrabackup_56 --defaults-file="/export/servers/mysql/etc/my.cnf" --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/export/backup/2016-01-25_12-11-13 --tmpdir=/export/data/mysql/tmp --compress --compress-threads=1 --parallel=4
innobackupex: Waiting for ibbackup (pid=8118) to suspend
innobackupex: Suspend file '/export/backup/2016-01-25_12-11-13/xtrabackup_suspended_2'
xtrabackup_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86_64) (revision id: 744)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /export/data/mysql/data/
xtrabackup: open files limit requested 65535, set to 65535
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = /export/data/mysql/data
xtrabackup: innodb_data_file_path = ibdata1:2G;ibdata2:2G:autoextend
xtrabackup: innodb_log_group_home_dir = /export/data/mysql/data
xtrabackup: innodb_log_files_in_group = 3
xtrabackup: innodb_log_file_size = 536870912
2016-01-25 12:11:13 7f2a641c3720 InnoDB: Using Linux native AIO
xtrabackup: using O_DIRECT
>> log scanned up to (10437686490)
InnoDB: Opened 4 undo tablespaces
xtrabackup: Starting 4 threads for parallel data files transfer
[04] Compressing /export/data/mysql/data/ibdata1 to /export/backup/2016-01-25_12-11-13/ibdata1.qp
[03] Compressing /export/data/mysql/data/ibdata2 to /export/backup/2016-01-25_12-11-13/ibdata2.qp
[02] Compressing /export/data/mysql/undo/undo001 to /export/backup/2016-01-25_12-11-13/undo001.qp
[01] Compressing /export/data/mysql/undo/undo002 to /export/backup/2016-01-25_12-11-13/undo002.qp
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
[01] ...done
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
[01] Compressing /export/data/mysql/undo/undo003 to /export/backup/2016-01-25_12-11-13/undo003.qp
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
[04] ...done
>> log scanned up to (10437686490)
[03] ...done
[03] Compressing /export/data/mysql/undo/undo004 to /export/backup/2016-01-25_12-11-13/undo004.qp
[04] Compressing ./sakila/inventory.ibd to /export/backup/2016-01-25_12-11-13/sakila/inventory.ibd.qp
[04] ...done
>> log scanned up to (10437686490)
[04] Compressing ./sakila/actor.ibd to /export/backup/2016-01-25_12-11-13/sakila/actor.ibd.qp
[04] ...done
[04] Compressing ./sakila/country.ibd to /export/backup/2016-01-25_12-11-13/sakila/country.ibd.qp
[04] ...done
>> log scanned up to (10437686490)
[04] Compressing ./sakila/film_actor.ibd to /export/backup/2016-01-25_12-11-13/sakila/film_actor.ibd.qp
[04] ...done
[03] ...done
[04] Compressing ./sakila/city.ibd to /export/backup/2016-01-25_12-11-13/sakila/city.ibd.qp
[04] ...done
[03] Compressing ./sakila/film.ibd to /export/backup/2016-01-25_12-11-13/sakila/film.ibd.qp
[03] ...done
[03] Compressing ./sakila/language.ibd to /export/backup/2016-01-25_12-11-13/sakila/language.ibd.qp
[03] ...done
[04] Compressing ./sakila/customer.ibd to /export/backup/2016-01-25_12-11-13/sakila/customer.ibd.qp
[04] ...done
>> log scanned up to (10437686490)
[04] Compressing ./sakila/film_category.ibd to /export/backup/2016-01-25_12-11-13/sakila/film_category.ibd.qp
[04] ...done
[03] Compressing ./sakila/store.ibd to /export/backup/2016-01-25_12-11-13/sakila/store.ibd.qp
[03] ...done
[03] Compressing ./sakila/staff.ibd to /export/backup/2016-01-25_12-11-13/sakila/staff.ibd.qp
[03] ...done
[04] Compressing ./sakila/category.ibd to /export/backup/2016-01-25_12-11-13/sakila/category.ibd.qp
[04] ...done
[04] Compressing ./sakila/payment.ibd to /export/backup/2016-01-25_12-11-13/sakila/payment.ibd.qp
[03] Compressing ./sakila/rental.ibd to /export/backup/2016-01-25_12-11-13/sakila/rental.ibd.qp
>> log scanned up to (10437686490)
[04] ...done
[03] ...done
>> log scanned up to (10437686490)
[03] Compressing ./sakila/address.ibd to /export/backup/2016-01-25_12-11-13/sakila/address.ibd.qp
[03] ...done
[04] Compressing ./mysql/innodb_table_stats.ibd to /export/backup/2016-01-25_12-11-13/mysql/innodb_table_stats.ibd.qp
[04] ...done
>> log scanned up to (10437686490)
[04] Compressing ./mysql/slave_worker_info.ibd to /export/backup/2016-01-25_12-11-13/mysql/slave_worker_info.ibd.qp
[03] Compressing ./mysql/innodb_index_stats.ibd to /export/backup/2016-01-25_12-11-13/mysql/innodb_index_stats.ibd.qp
[04] ...done
[03] ...done
[03] Compressing ./mysql/slave_master_info.ibd to /export/backup/2016-01-25_12-11-13/mysql/slave_master_info.ibd.qp
[04] Compressing ./mysql/slave_relay_log_info.ibd to /export/backup/2016-01-25_12-11-13/mysql/slave_relay_log_info.ibd.qp
[03] ...done
[04] ...done
[04] Compressing ./yoon/yoon.ibd to /export/backup/2016-01-25_12-11-13/yoon/yoon.ibd.qp
[04] ...done
[03] Compressing ./test/innodb_lock_monitor.ibd to /export/backup/2016-01-25_12-11-13/test/innodb_lock_monitor.ibd.qp
[03] ...done
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
[01] ...done
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
>> log scanned up to (10437686490)
[02] ...done
xtrabackup: Creating suspend file '/export/backup/2016-01-25_12-11-13/xtrabackup_suspended_2' with pid '8118'
160125 12:11:43 innobackupex: Continuing after ibbackup has suspended
160125 12:11:43 innobackupex: Starting to lock all tables...
160125 12:11:43 innobackupex: All tables locked and flushed to disk
160125 12:11:43 innobackupex: Starting to backup non-InnoDB tables and files
innobackupex: in subdirectories of '/export/data/mysql/data/'
innobackupex: Backing up files '/export/data/mysql/data//performance_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (53 files)
>> log scanned up to (10437686490)
innobackupex: Backing up files '/export/data/mysql/data//sakila/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (36 files)
innobackupex: Backing up file '/export/data/mysql/data//hank/db.opt'
innobackupex: Backing up files '/export/data/mysql/data//mysql/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (74 files)
innobackupex: Backing up file '/export/data/mysql/data//yoon/db.opt'
innobackupex: Backing up file '/export/data/mysql/data//yoon/yoon.frm'
innobackupex: Backing up file '/export/data/mysql/data//test/innodb_lock_monitor.frm'
160125 12:11:44 innobackupex: Finished backing up non-InnoDB tables and files
160125 12:11:44 innobackupex: Waiting for log copying to finish
xtrabackup: The latest check point (for incremental): '10437686490'
xtrabackup: Stopping log copying thread.
.>> log scanned up to (10437686490)
xtrabackup: Creating suspend file '/export/backup/2016-01-25_12-11-13/xtrabackup_log_copied' with pid '8118'
xtrabackup: Transaction log of lsn (10437686490) to (10437686490) was copied.
160125 12:11:45 innobackupex: All tables unlocked
innobackupex: Backup created in directory '/export/backup/2016-01-25_12-11-13'
innobackupex: MySQL binlog position: filename 'mysql-bin.000005', position 4772
160125 12:11:45 innobackupex: Connection to database server closed
160125 12:11:45 innobackupex: completed OK!
[root@hank-yoon export]# innobackupex --compress --parallel=4 --user=root --password=yoon /export/backup/
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://www.percona.com/xb/p
160125 13:05:59 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup' as 'root' (using password: YES).
160125 13:05:59 innobackupex: Connected to MySQL server
160125 13:05:59 innobackupex: Executing a version check against the server...
160125 13:05:59 innobackupex: Done.
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
innobackupex: Using mysql server version 5.6.26-log
innobackupex: Created backup directory /export/backup/2016-01-25_13-05-59
160125 13:05:59 innobackupex: Starting ibbackup with command: xtrabackup_56 --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/export/backup/2016-01-25_13-05-59 --tmpdir=/tmp --compress --compress-threads=1 --parallel=4
innobackupex: Waiting for ibbackup (pid=8375) to suspend
innobackupex: Suspend file '/export/backup/2016-01-25_13-05-59/xtrabackup_suspended_2'
xtrabackup_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86_64) (revision id: 744)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to
xtrabackup: open files limit requested 0, set to 1024
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = ./
xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 50331648
2016-01-25 13:05:59 7fe3210ae720 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: File ./ib_logfile0: 'open' returned OS error 71. Cannot continue operation
innobackupex: Error: The xtrabackup child process has died at /usr/bin/innobackupex line 2622.
[root@hank-yoon export]# innobackupex --compress --parallel=4 --defaults-file=/export/servers/mysql/etc/my.cnf --user=root --password=yoon /export/backup/
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://www.percona.com/xb/p
160125 13:06:19 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/export/servers/mysql/etc/my.cnf;mysql_read_default_group=xtrabackup' as 'root' (using password: YES).
160125 13:06:19 innobackupex: Connected to MySQL server
160125 13:06:19 innobackupex: Executing a version check against the server...
160125 13:06:19 innobackupex: Done.
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
innobackupex: Using mysql server version 5.6.26-log
innobackupex: Created backup directory /export/backup/2016-01-25_13-06-19
160125 13:06:19 innobackupex: Starting ibbackup with command: xtrabackup_56 --defaults-file="/export/servers/mysql/etc/my.cnf" --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/export/backup/2016-01-25_13-06-19 --tmpdir=/export/data/mysql/tmp --compress --compress-threads=1 --parallel=4
innobackupex: Waiting for ibbackup (pid=8380) to suspend
innobackupex: Suspend file '/export/backup/2016-01-25_13-06-19/xtrabackup_suspended_2'
xtrabackup_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86_64) (revision id: 744)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /export/data/mysql/data/
xtrabackup: open files limit requested 65535, set to 65535
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = /export/data/mysql/data
xtrabackup: innodb_data_file_path = ibdata1:2G;ibdata2:2G:autoextend
xtrabackup: innodb_log_group_home_dir = /export/data/mysql/data
xtrabackup: innodb_log_files_in_group = 3
xtrabackup: innodb_log_file_size = 536870912
2016-01-25 13:06:19 7fd232520720 InnoDB: Using Linux native AIO
xtrabackup: using O_DIRECT
>> log scanned up to (10437687387)
InnoDB: Opened 4 undo tablespaces
xtrabackup: Starting 4 threads for parallel data files transfer
[04] Compressing /export/data/mysql/data/ibdata1 to /export/backup/2016-01-25_13-06-19/ibdata1.qp
[03] Compressing /export/data/mysql/data/ibdata2 to /export/backup/2016-01-25_13-06-19/ibdata2.qp
[02] Compressing /export/data/mysql/undo/undo001 to /export/backup/2016-01-25_13-06-19/undo001.qp
[01] Compressing /export/data/mysql/undo/undo002 to /export/backup/2016-01-25_13-06-19/undo002.qp
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
[01] ...done
>> log scanned up to (10437687387)
[01] Compressing /export/data/mysql/undo/undo003 to /export/backup/2016-01-25_13-06-19/undo003.qp
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
[04] ...done
>> log scanned up to (10437687387)
[04] Compressing /export/data/mysql/undo/undo004 to /export/backup/2016-01-25_13-06-19/undo004.qp
[03] ...done
[03] Compressing ./sakila/inventory.ibd to /export/backup/2016-01-25_13-06-19/sakila/inventory.ibd.qp
[03] ...done
>> log scanned up to (10437687387)
[03] Compressing ./sakila/actor.ibd to /export/backup/2016-01-25_13-06-19/sakila/actor.ibd.qp
[03] ...done
[03] Compressing ./sakila/country.ibd to /export/backup/2016-01-25_13-06-19/sakila/country.ibd.qp
[03] ...done
[03] Compressing ./sakila/film_actor.ibd to /export/backup/2016-01-25_13-06-19/sakila/film_actor.ibd.qp
[04] ...done
>> log scanned up to (10437687387)
[03] ...done
[03] Compressing ./sakila/city.ibd to /export/backup/2016-01-25_13-06-19/sakila/city.ibd.qp
[03] ...done
[04] Compressing ./sakila/film.ibd to /export/backup/2016-01-25_13-06-19/sakila/film.ibd.qp
[03] Compressing ./sakila/language.ibd to /export/backup/2016-01-25_13-06-19/sakila/language.ibd.qp
[03] ...done
[04] ...done
[03] Compressing ./sakila/customer.ibd to /export/backup/2016-01-25_13-06-19/sakila/customer.ibd.qp
[03] ...done
>> log scanned up to (10437687387)
[03] Compressing ./sakila/film_category.ibd to /export/backup/2016-01-25_13-06-19/sakila/film_category.ibd.qp
[03] ...done
[04] Compressing ./sakila/store.ibd to /export/backup/2016-01-25_13-06-19/sakila/store.ibd.qp
[04] ...done
[04] Compressing ./sakila/staff.ibd to /export/backup/2016-01-25_13-06-19/sakila/staff.ibd.qp
[04] ...done
[03] Compressing ./sakila/category.ibd to /export/backup/2016-01-25_13-06-19/sakila/category.ibd.qp
[03] ...done
[03] Compressing ./sakila/payment.ibd to /export/backup/2016-01-25_13-06-19/sakila/payment.ibd.qp
[04] Compressing ./sakila/rental.ibd to /export/backup/2016-01-25_13-06-19/sakila/rental.ibd.qp
>> log scanned up to (10437687387)
[04] ...done
[03] ...done
[03] Compressing ./sakila/address.ibd to /export/backup/2016-01-25_13-06-19/sakila/address.ibd.qp
[03] ...done
[04] Compressing ./mysql/innodb_table_stats.ibd to /export/backup/2016-01-25_13-06-19/mysql/innodb_table_stats.ibd.qp
[04] ...done
[04] Compressing ./mysql/slave_worker_info.ibd to /export/backup/2016-01-25_13-06-19/mysql/slave_worker_info.ibd.qp
>> log scanned up to (10437687387)
[04] ...done
[03] Compressing ./mysql/innodb_index_stats.ibd to /export/backup/2016-01-25_13-06-19/mysql/innodb_index_stats.ibd.qp
[03] ...done
[03] Compressing ./mysql/slave_master_info.ibd to /export/backup/2016-01-25_13-06-19/mysql/slave_master_info.ibd.qp
[04] Compressing ./mysql/slave_relay_log_info.ibd to /export/backup/2016-01-25_13-06-19/mysql/slave_relay_log_info.ibd.qp
[03] ...done
[04] ...done
[04] Compressing ./yoon/yoon.ibd to /export/backup/2016-01-25_13-06-19/yoon/yoon.ibd.qp
[04] ...done
[03] Compressing ./test/innodb_lock_monitor.ibd to /export/backup/2016-01-25_13-06-19/test/innodb_lock_monitor.ibd.qp
[03] ...done
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
[01] ...done
>> log scanned up to (10437687387)
[02] ...done
>> log scanned up to (10437687387)
xtrabackup: Creating suspend file '/export/backup/2016-01-25_13-06-19/xtrabackup_suspended_2' with pid '8380'
160125 13:06:45 innobackupex: Continuing after ibbackup has suspended
160125 13:06:45 innobackupex: Starting to lock all tables...
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
160125 13:07:44 innobackupex: All tables locked and flushed to disk
160125 13:07:44 innobackupex: Starting to backup non-InnoDB tables and files
innobackupex: in subdirectories of '/export/data/mysql/data/'
innobackupex: Backing up files '/export/data/mysql/data//performance_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (53 files)
innobackupex: Backing up files '/export/data/mysql/data//sakila/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (36 files)
innobackupex: Backing up file '/export/data/mysql/data//hank/db.opt'
innobackupex: Backing up files '/export/data/mysql/data//mysql/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (74 files)
innobackupex: Backing up file '/export/data/mysql/data//yoon/db.opt'
innobackupex: Backing up file '/export/data/mysql/data//yoon/yoon.frm'
innobackupex: Backing up file '/export/data/mysql/data//test/innodb_lock_monitor.frm'
160125 13:07:45 innobackupex: Finished backing up non-InnoDB tables and files
160125 13:07:45 innobackupex: Waiting for log copying to finish
xtrabackup: The latest check point (for incremental): '10437687387'
xtrabackup: Stopping log copying thread.
.>> log scanned up to (10437687387)
xtrabackup: Creating suspend file '/export/backup/2016-01-25_13-06-19/xtrabackup_log_copied' with pid '8380'
xtrabackup: Transaction log of lsn (10437687387) to (10437687387) was copied.
160125 13:07:46 innobackupex: All tables unlocked
innobackupex: Backup created in directory '/export/backup/2016-01-25_13-06-19'
innobackupex: MySQL binlog position: filename 'mysql-bin.000005', position 4772
160125 13:07:46 innobackupex: Connection to database server closed
160125 13:07:46 innobackupex: completed OK!
在Percona-Xtrabackup2.1.9下,在备份MyISAM引擎表之前,需要加所有表的全表锁(innobackupex: Starting to lock all tables...)然后再去备份MyISAM引擎表,
160125 13:07:44 innobackupex: All tables locked and flushed to disk
160125 13:07:44 innobackupex: Starting to backup non-InnoDB tables and files
因此在有死锁的情况下,Percona-Xtranbackup需要等待死锁解除才能继续备份,因此在这会一直等待:
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
>> log scanned up to (10437687387)
在Percona-Xtrabackup2.3.3下,先对备份完的innodb引擎进行加锁,然后再去备份MyISAM引擎的表,也就是不是innodb引擎的表
160125 13:44:07 >> log scanned up to (8584369)
160125 13:44:08 Executing LOCK TABLES FOR BACKUP...
Starting to backup non-InnoDB tables and files
备份完不是innodb引擎的表之后,再加锁
160125 13:44:09 Finished backing up non-InnoDB tables and files
160125 13:44:09 Executing LOCK BINLOG FOR BACKUP...
因此,在Percona-Xtrabackup2.3.3下,将不同存储引擎的表备份,进行了分开加锁,因此慢查询,死锁等不再堵塞备份
Percona-Xtrabackup 2.3.3 慢查询不再堵塞备份(一)的更多相关文章
- 如何用Percona XtraBackup进行MySQL从库的单表备份和恢复【转】
前提 应该确定采用的是单表一个表空间,否则不支持单表的备份与恢复. 在配置文件里边的mysqld段加上 innodb_file_per_table = 1 环境说明: 主库:192.168.0.1 从 ...
- Percona-Xtrabackup 2.3.3 死锁不再堵塞备份(二)
在percona-xtrabackup2.1.9下备份: session one:root(yoon)> show tables;+----------------+| Tables_in_yo ...
- Percona XtraBackup 核心文档
1. 介绍 1.1 MySQL 备份工具特性对比 Features Percona XtraBackup MySQL Enterprise backup License GPL Proprietary ...
- Percona XtraBackup User Manual 阅读笔记
XtraBackup XtraBackup 2 安装XtraBackup 2.1 安装XtraBackup binary版本 2.1.1 yum的安装方法: 2.1.2 直接下载rpm包安装 3 Xt ...
- Percona XtraBackup 备份还原篇
Percona XtraBackup 安装介绍篇已经对Percona XtraBackup的功能和安装做了比较详细的介绍,那么本篇我们直接进入主题,如何使用XtraBackup做备份.还原,下面主要介 ...
- MySQL 大数据备份方案之Percona XtraBackup
Xtrabackup介绍 1.Xtrabackup是什么 Xtrabackup是一个对InnoDB做数据备份的工具,支持在线热备份(备份时不影响数据读写),是商业备份工具InnoDB Hotbacku ...
- Percona XtraBackup 8.0, 安装与测试
Percona XtraBackup 8.0 是Percona XtraBackup新推出了一个针对MySQL8.0的版本,主要是MySQL8.0在Redo 和 数据库字典方面有了新的改进. Xtra ...
- (转)CentOS 7 下 MySQL 5.7 配置 Percona Xtrabackup
CentOS 7 下 MySQL 5.7 配置 Percona Xtrabackup 原文:http://qizhanming.com/blog/2017/05/10/install-percona- ...
- Percona XtraBackup 完全及增量备份与恢复的方法
安装及备份.恢复实现 安装:其最新版的软件可从 http://www.percona.com/software/percona-xtrabackup/ 获得.本文基于CentOS6.x的系统,因此,直 ...
随机推荐
- 超图(hypergraph)
超图是什么? 超图的本质特征在于它的超边,它可以连接两个以上的结点(包括两个).按这样的意义来说,我们所熟悉的普通图只是超图的一个特例而已,而超图则定义了一个更加宽泛的图. 超图的数学定义为:对于超图 ...
- Android开发-API指南-<uses-library>
<uses-library> 英文原文:http://developer.android.com/guide/topics/manifest/uses-library-element.ht ...
- Laxcus大数据管理系统2.0(2)- 第一章 基础概述 1.1 基于现状的一些思考
第一章 基础概述 1.1 基于现状的一些思考 在过去十几年里,随着互联网产业的普及和高速发展,各种格式的互联网数据也呈现爆炸性增长之势.与此同时,在数据应用的另一个重要领域:商业和科学计算,在各种新兴 ...
- sendmessage和postmessage的区别
BOOL PostMessage( HWND hWnd, // handle of destination window ...
- extjs gride 显示序号
在使用Extjs框架时,有时为了在信息列表中显示数据项的序号,这就要构造一些方法来显示序号,其方法有两种,具体如下: 1.方法一 对 Ext.grid.PageRowNumberer 进行扩展,详细代 ...
- WF4 常用类<第二篇>
一.WorkflowInvoker 常用方法如下: 方法 说明 BeginInvoke() 使用指定的 AsyncCallback 和用户提供的状态以异步方式调用工作流 EndInvoke() 返回使 ...
- poj1840 哈希
虽然这题目我曾经在我们学校OJ上做过但是我那时候是用的暴力做的,这次我用的是哈希写的,我写这题目时候开始是在main函数里面写哈希感觉很麻烦很不清晰,然后我换用函数来写,清晰了很多,写完就AC了.用哈 ...
- 手机连上wifi热点后自动弹窗的功能
使用buildroot编译bind DNS服务器 用buildroot来制作文件系统很方便,编译出来的文件系统是直接可用的,不用添加脚本等麻烦的工作,很多的库和app都可以直接添加到文件系统里边,如常 ...
- iOS动画 三维透视投影 m34
transform的结构如下:struct CATransform3D{ CGFloat m11, m12, m13, m14; CGFloat m21, m22, m23, m24; CGFl ...
- 逻辑运算符||和| 、&&和&的区别
||和| .&&和&的区别 这里以&&和&为例.或与之一直 1.&和&&都可以用作逻辑与的运算符,表示逻辑与(and),当运算符 ...