一、DDL操做與Xtrabackup備份衝突app
當MySQL使用xrabckup進行備份時,若是執行DDL進行表修改,會致使xrabckup備份失敗。性能
錯誤相似於:日誌
InnoDB: Last flushed lsn: 3375345258517 load_index lsn 3379255303757 InnoDB: An optimized (without redo logging) DDLoperation has been performed. All modified pages may not have been flushed to the disk yet. PXB will not be able take a consistent backup. Retry the backup operation
二、磁盤性能太差致使xtrabckup備份失敗code
Innodb產生日誌的速度遠超於Xtrabackup複製的速度,部分Innodb日誌被截斷,致使備份失敗。orm
錯誤相似於:blog
xtrabackup: error: log block numbers mismatch: xtrabackup: error: expected log block no. 201901064, but got no. 208192508 from the log file. xtrabackup: error: it looks like InnoDB log has wrapped around before xtrabackup could process all records due to either log copying being too slow, or log files being too small. xtrabackup: Error: xtrabackup_copy_logfile() failed.