xtrabackup: Fatal error: cannot find ./xtrabackup_logfile
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# /usr/bin/xtrabackup --defaults-file=/etc/my.cnf --prepare --target-dir=/tmp/axtrabackup: recognized server arguments:xtrabackup: recognized client arguments: --prepare=1 --target-dir=/tmp/a/usr/bin/xtrabackup version 2.4.26 based on MySQL server 5.7.31 Linux (x86_64) (revision id: 19de43b)xtrabackup: cd to /tmp/a/xtrabackup: This target seems to be not prepared yet.InnoDB: Number of pools: 1InnoDB: 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. |
从这里看是,找不到备份文件xtrabackup_logfile。
很明显,备份时使用了压缩选项。而在prepare之前,没有做解压缩操作。
解压一下即可:
|
1
|
/usr/bin/xtrabackup --decompress --parallel=4 --target-dir=/tmp/a |
浙公网安备 33010602011771号