在前幾天的一次常規備份恢復過程中,出現了不能恢復的情況
數據庫版本:5.7.11
xtrabackup版本:2.4.1
報錯情況:
InnoDB: Ignoring data file './wangwangwang/miaomiao.ibd' with space ID 1871, since the redo log references ./wangwangwang/miaomiao.ibd with space ID 1868. InnoDB: Ignoring data file './wangwangwang/miaomiao.ibd' with space ID 1869. Another data file called ./wangwangwang/#sql-ib7386-389430697.ibd exists with the same space ID. InnoDB: Cannot rename './wangwangwang/#sql-ib7386-389430697.ibd' to './wangwangwang/miaomiao.ibd' for space ID 1869 because the target file exists. Remove the target file and try again. InnoDB: Cannot replay file rename. Remove either file and try again. InnoDB: Plugin initialization aborted with error Generic error xtrabackup: innodb_init(): Error occured.
查看報錯及事後詢問程序員得知,當時應該是在進行表的rename操作
解決:
按照提示,刪除
./wangwangwang/miaomiao.ibd
文件後,備份恢復仍失敗,未找到解決辦法,
最後還是重新備份了一份,沒有問題
備份時還有哪些操作會造成備份不能恢復的情況呢?