InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy.
All Rights Reserved.This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.option_ibbackup_binary is autodetect, trying to connect to MySQL
Connected to MySQL with pid 3044
110117 19:40:51  innobackupex-1.5.1: Connection to database server closed
Connected successfully
110117 19:40:51  innobackupex-1.5.1: Starting mysql with options:  --defaults-file="/etc/my.cnf" --password=xxxxxxxxxx --user=root --unbuffered --
110117 19:40:51  innobackupex-1.5.1: Connected to database with mysql child process (pid=3046)
110117 19:40:57  innobackupex-1.5.1: Connection to database server closed
IMPORTANT: Please check that the apply-log run completes successfully.
           At the end of a successful apply-log run innobackupex-1.5.1
           prints "completed OK!".110117 19:40:57  innobackupex-1.5.1: Starting ibbackup with command: xtrabackup_51  --defaults-file="/etc/my.cnf" --prepare --target-dir=/data/backupxtrabackup_51  Ver 1.5 Rev 203 for 5.1.52 unknown-linux-gnu (x86_64)
xtrabackup: cd to /data/backup
xtrabackup: Error: cannot open ./xtrabackup_checkpoints
xtrabackup: error: xtrabackup_read_metadata()
xtrabackup: This target seems not to have correct metadata...
110117 19:40:57  InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
xtrabackup: Warning: cannot open ./xtrabackup_logfile. will try to find.
110117 19:40:57  InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
  xtrabackup: Fatal error: cannot find ./xtrabackup_logfile.
xtrabackup: Error: xtrabackup_init_temp_log() failed.
innobackupex-1.5.1: Error: 
innobackupex-1.5.1: ibbackup failed at /usr/bin/innobackupex-1.5.1 line 542.

解决方案 »

  1.   

    http://blog.csdn.net/mr_mablevi/archive/2010/09/03/5860571.aspx看看这个有帮助没
      

  2.   


    xtrabackup 1.5不是很稳定,建议用比较稳定的1.2版本为好。
      

  3.   

    #innobackupex-1.5.1 --user=root --defaults-file=/etc/my.cnf /data/backup --password=xxxx --slave-info --apply-log不用参数apply-log就行了,不知道啥原因
      

  4.   


    apply-log是同步日志功能的,你不用这个参数就成功了,证明你的主从的binlog有某些地方不是同步的。
    可能是主从日志不同步的原因造成的吧。我也是猜测的。