innobackupex 執行報錯:
html
innobackupex --defaults-file="/log/my.cnf" /log/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 140718 10:49:09 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/log/my.cnf;mysql_read_default_group=xtrabackup' as 'root' (using password: YES). 140718 10:49:09 innobackupex: Connected to MySQL server 140718 10:49:09 innobackupex: Executing a version check against the server... 140718 10:49:09 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.5.37-35.1-log innobackupex: Created backup directory /log/backup/cuucaa/full/2014-07-18_10-49-09 140718 10:49:09 innobackupex: Starting ibbackup with command: xtrabackup --defaults-file="/log/my.cnf" --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/log/backup/2014-07-18_10-49-09 --tmpdir=/data/tmp --extra-lsndir='/data/tmp' innobackupex: Waiting for ibbackup (pid=23867) to suspend innobackupex: Suspend file '/log/backup/2014-07-18_10-49-09/xtrabackup_suspended_2' xtrabackup version 2.2.3 based on MySQL server 5.6.17 Linux (x86_64) (revision id: ) xtrabackup: uses posix_fadvise(). xtrabackup: cd to /data/mysql xtrabackup: open files limit requested 0, set to 81920 InnoDB: The universal page size of the database is set to 8192. xtrabackup: using the following InnoDB configuration: xtrabackup: innodb_data_home_dir = ./ xtrabackup: innodb_data_file_path = ibdata1:100M;ibdata2:100M:autoextend xtrabackup: innodb_log_group_home_dir = ./ xtrabackup: innodb_log_files_in_group = 3 xtrabackup: innodb_log_file_size = 268435456 xtrabackup: using O_DIRECT >> log scanned up to (85900602) 2014-07-18 10:49:09 7fac25fde720 InnoDB: Assertion failure in thread 140377348499232 in file fil0fil.cc line 1035 InnoDB: Failing assertion: fsp_flags_is_valid(flags) InnoDB: We intentionally generate a memory trap. InnoDB: Submit a detailed bug report to http://bugs.mysql.com. InnoDB: If you get repeated assertion failures or crashes, even InnoDB: immediately after the mysqld startup, there may be InnoDB: corruption in the InnoDB tablespace. Please refer to InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html InnoDB: about forcing recovery. innobackupex: Error: The xtrabackup child process has died at /usr/bin/innobackupex line 2672.
剛開始覺得是my.cnf 配置有問題,使勁的調整。折騰了一個多小時後仍是沒有效果。這個時候注意到提示信息裏面去看5.6的文檔。難道是兼容性問題。試着下載了一個percona XtraBackup 2.1 的版本,而後再執行備份。徹底沒有問題。被坑了接近2小時,唉。mysql