percona-xtrabackup安装问题

今天在rhel6.3 x86-64上安装了下percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm,存在一些问题,记录如下:

1.安装环境

操作系统版本

# lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 6.3 (Santiago)
Release:        6.3
Codename:       Santiago
# uname -a
Linux bssnwcesu 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

MySQL版本

# mysql -uroot -pSqzr\@Syea\!12138
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 123146
Server version: 5.7.11-log MySQL Community Server (GPL)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select version();
+------------+
| version()  |
+------------+
| 5.7.11-log |
+------------+
1 row in set (0.00 sec)

2.安装过程

# rpm -ivh percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm
warning: percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
        libev.so.4()(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
        libz.so.1(ZLIB_1.2.0)(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
        perl(DBD::mysql) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64

发现缺三个包
libev.so.4从http://rpm.pbone.net/下载libev4-4.15-22.1.x86_64.rpm,直接安装差问题不大。
在RHEL 6.3 x86-64的ISO安装包里取出perl-DBD-MySQL-4.013-3.el6.x86_64.rpm,直接安装问题也不大。
libz.so.1(ZLIB_1.2.0)(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64,这个报错有点迷惑性,实际上zlib在rhel6.3上已经安装,只是版本太旧,需要升级。
当前版本是zlib 1.2.3-27,需要升级到zlib 1.2.3-29,并且升级过程中需要和zlib-devel一起安装。
从RHEL 6.8 x86-64人ISO安装包里取出:
zlib-devel-1.2.3-29.el6.x86_64.rpm zlib-1.2.3-29.el6.x86_64.rpm
这两个文件相互依赖,需要同时升级

# rpm -Uvh zlib-devel-1.2.3-29.el6.x86_64.rpm zlib-1.2.3-29.el6.x86_64.rpm
warning: zlib-devel-1.2.3-29.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:zlib                   ########################################### [ 50%]
   2:zlib-devel             ########################################### [100%]

安装这三个包,后面就可以顺利安装percona-xtrabackup了

# rpm -ivh percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm
warning: percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...                ########################################### [100%]
   1:percona-xtrabackup-24  ########################################### [100%]

3. 其它问题

后面机器安装,发现SSL存在问题:

# rpm -ivh percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm
warning: percona-xtrabackup-24-2.4.6-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
        libcrypto.so.10(libcrypto.so.10)(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64
        libssl.so.10(libssl.so.10)(64bit) is needed by percona-xtrabackup-24-2.4.6-2.el6.x86_64

当前openssl版本为1.0.0
需要升级为openssl-1.0.1e

# rpm -Uvh openssl-1.0.1e-15.el6.x86_64.rpm openssl-devel-1.0.1e-15.el6.x86_64.rpm
warning: openssl-1.0.1e-15.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:openssl                ########################################### [ 50%]
   2:openssl-devel          ########################################### [100%]

关于紫砂壶

感悟技术人生
此条目发表在MySQL故障诊断分类目录,贴了标签。将固定链接加入收藏夹。