Percona XtraBackup是一个基于MySQL的服务器的开源热备份实用程序 ,它不会在备份期间锁定您的数据库。
无论是24x7高负载服务器还是低事务量环境,Percona XtraBackup都旨在使备份成为一个无缝过程,而不会破坏生产环境中服务器的性能。
问题描述:
今天安装xtrabackup出现了问题,显示如下问题:
Failing package is: percona-xtrabackup-24-2.4.14-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Percona [[email protected]_mongodb_116 data]# cat hins7683145_data_20190508051605_qp.xb | xbstream -x -v -bash: xbstream: command not found
直接显示没有找到xbstream这个命令,因为xtrabackup没有安装成功的原因
解决方法:
- 1.从存储库安装Percona XtraBackup(推荐)
- 2.从Downloaded rpm或apt软件包安装Percona XtraBackup
1.从Percona 存储库安装Percona XtraBackup Yum
通过以root
用户或sudo运行以下命令来安装Percona yum存储库 :
[[email protected]_mongodb_116 data]# yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
启用存储库:
[[email protected]_mongodb_116 data]# percona-release enable-only tools release * Disabling all Percona Repositories * Enabling the Percona Tools repository <*> All done!
如果Percona XtraBackup打算与MySQL服务器结合使用,您只需要启用tools
存储库:
[[email protected]_mongodb_116 data]# percona-release enable-only tools
运行以下命令安装Percona XtraBackup:
[[email protected]_mongodb_116 data]# yum install -y percona-xtrabackup-80 #安装8.0版本
[[email protected]_mongodb_116 data]# yum install -y percona-xtrabackup-24 #安装2.4版本
注意:
libev
在安装Percona XtraBackup之前,请确保已安装该软件包 。
该libev
软件包可从EPEL存储库获得。
可以自行去http://rpm.pbone.net搜索系统所需要的rpm包进行下载安装
#wget ftp://ftp.pbone.net/mirror/apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/libev-4.15-1.el6.rf.x86_64.rpm #rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
2.使用下载的rpm软件包安装Percona XtraBackup
从下载页面下载适用于您的体系结构的所需系列的软件包 。以下示例为CentOS 7 下载Percona XtraBackup 8.0.4发行包:
#8.0版本 $ wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-8.0.4/binary/redhat/7/x86_64/percona-xtrabackup-80-8.0.4-1.el7.x86_64.rpm #2.4版本 $ wget https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-2.4.4/\ binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm
安装Percona XtraBackup:
yum localinstall percona-xtrabackup-80-8.0.4-1.el7.x86_64.rpm yum localinstall percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm
卸载Percona XtraBackup:
yum remove percona-xtrabackup
原文地址:https://www.cnblogs.com/Sungeek/p/10837658.html
时间: 2024-10-09 06:06:20