我通过MySQL工具创建了一个PerconaXtrabackup备份(多亏了本指南):
innobackupex --user=backupmysqluser --password=xyz --compress --stream=xbstream ./ > /var/backups/db/firstBackup.db它成功地创建了热备份。现在我想测试它的恢复,所以,首先,我解压它:
cd /var/backups/db
mkdir decompressed
xbstream -x -C decompressed现在我试着准备:
innobackupex --apply-log /var/backups/db/decompressed/其结果是这个错误:
160719 20:06:28 innobackupex: Starting the apply-log operation
IMPORTANT: Please check that the apply-log run completes successfully.
At the end of a successful apply-log run innobackupex
prints "completed OK!".
innobackupex version 2.4.3 based on MySQL server 5.7.11 Linux (x86_64) (revision id: 6a46905)
xtrabackup: cd to /var/backups/db/decompressed
xtrabackup: This target seems to be not prepared yet.
InnoDB: Number of pools: 1
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.
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.这很奇怪,因为在decompressed文件夹中没有xtrabackup_logfile,但是有一个名为xtrabackup_logfile.qp的文件。
我做错什么了?
发布于 2016-07-20 00:51:43
如果Xtrabackup文件仍然具有.qp扩展名,则没有解压缩它们。
在当前文件夹中尝试使用此方法:
sudo innobackeupex --decompress --parallel=4其中4代表要使用的线程数。
另外,为了事后的清理:
sudo find ${DEST_DIR}/ -name "*.qp" -deletehttps://dba.stackexchange.com/questions/144309
复制相似问题