zoukankan      html  css  js  c++  java
  • 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下,将不同存储引擎的表备份,进行了分开加锁,因此慢查询,死锁等不再堵塞备份

  • 相关阅读:
    平衡二叉树之RB树
    平衡二叉树之AVL树
    实现哈希表
    LeetCode Median of Two Sorted Arrays
    LeetCode Minimum Window Substring
    LeetCode Interleaving String
    LeetCode Regular Expression Matching
    PAT 1087 All Roads Lead to Rome
    PAT 1086 Tree Traversals Again
    LeetCode Longest Palindromic Substring
  • 原文地址:https://www.cnblogs.com/hankyoon/p/5174643.html
Copyright © 2011-2022 走看看