innobackupex恢复操作解压备份文件报错一例
来源:互联网 发布:c语言base64编码 编辑:程序博客网 时间:2024/06/07 16:47
该问题我也遇到过一次,后面又有网友也在问这个报错,现在重新测试后整理到blog中,供大家参考。
一.问题描述
在用xtrabackup工具恢复操作,由于备份时有带压缩参数,需要先解压:
innobackupex --decompress /apps/backup/xtrabackup_20160517010001
报如下错:
[apps@mvxl0784 xtrabackup_20160517010001]$ innobackupex --decompress /apps/backup/xtrabackup_20160517010001
innobackupex: got a fatal error with the following stacktrace: at /usr/local/percona-xtrabackup-2.2.9-Linux-x86_64/bin/innobackupex line 3999
main::check_args() called at /usr/local/percona-xtrabackup-2.2.9-Linux-x86_64/bin/innobackupex line 1531
innobackupex: Error: --decompress requires qpress
二.问题分析
我们先查看线上库的备份脚本:innobackupex --defaults-file=${this_conf_f} --user=${db_user} --password=${db_pass} --socket=${socket} --slave-info --lock-wait-timeout=120 --compress --no-timestamp ${this_back_p} 1>${base_p}/${logfilename} 2>&1
有带compress参数压缩备份,根据报错提示,需要qpress组件支持,才能解压。
三.问题处理
所以从网上下载qpress安装:
访问:http://www.quicklz.com/,下载qpress-11-linux-x64.tar包,并解压后,copy到/usr/bin下。
[root@mvxl0784 etc]# cd /apps/tool
[root@mvxl0784 tool]# tar -xvf qpress-11-linux-x64.tar
[root@mvxl0784 tool]# cp qpress /usr/bin/
再执行解压操作就正常了,如下:
[apps@mvxl0784 ~]$ innobackupex --decompress /apps/backup/xtrabackup_20160517010001
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
Get the latest version of Percona XtraBackup, documentation, and help resources:
http://www.percona.com/xb/p
160518 09:57:14 innobackupex: Starting the decryption and decompression operation
IMPORTANT: Please check that the decryption and decompression run completes successfully.
At the end of a successful decryption and decompression run innobackupex
prints "completed OK!"
...................................
160518 09:59:05 innobackupex: completed OK!
- innobackupex恢复操作解压备份文件报错一例
- innobackupex恢复操作报错两例
- mysqldumper 与 Innobackupex的备份和恢复操作实验过程
- innobackupex备份恢复详解
- innobackupex备份恢复使用!
- mysql innobackupex备份恢复
- Xtrabackup&Innobackupex备份和恢复
- 基于Innobackupex的完全恢复
- 基于Innobackupex的不完全恢复
- .bak备份文件如何恢复
- Innobackupex增量备份恢复BUG,解决方法
- innobackupex 基于时间点的恢复
- 基于Innobackupex的全备恢复
- 基于Innobackupex的增备及恢复
- innobackupex 在线 备份及恢复数据库
- 使用innobackupex、xtrabackup恢复Mysql数据库
- innobackupex全库增量备份与恢复
- innobackupex单表增量备份与恢复
- ubuntu下Qt cannot find -lGL错误的解决方法
- ssm(spring+springMVC+Mybatis)框架集成Mongodb
- https://github.com/hehonghui/android-tech-frontier
- nanipi iic驱动分析
- 2016武汉科技大学邀请赛现场赛 F题
- innobackupex恢复操作解压备份文件报错一例
- HDU3999-The order of a Tree
- matlab膨胀和腐蚀的案例详解
- WERTYU
- Java数组操作的疑惑(这篇错误,后来才知道是有static修饰的结果)
- Android:我遇到的OOM以及解决方法
- spring 源码如何导入到eclipse
- Android的5种布局
- UILabel 中文本的多样式显示