XtraBackup binary installation

This installation method is also very simple, unlike the rpm package that needs to install the dependency package, just decompress the installation file, and create a soft link for convenience.

1. Check the version of libgcrypt:

 
 
[root@qht131 home]# rpm -aq | grep libgcrypt
libgcrypt-1.4.5-9.el6_2.2.x86_64

The version is 1.4.5, download the corresponding XtraBackup version

https://www.percona.com/downloads/XtraBackup/LATEST/

2. Unzip the file

[root@qht131 home]# tar -zxvf percona-xtrabackup-2.4.10-Linux-x86_64.libgcrypt145.tar.gz
[root@qht131 home]# mv percona-xtrabackup-2.4.10-Linux-x86_64 /usr/local/xtrabackup
[root@qht131 home]# ln -sf /usr/local/xtrabackup/bin/* /usr/bin/ #Create a soft link for the command
3. View version
[root@qht131 home]# xtrabackup --version
xtrabackup: /lib64/libz.so.1: no version information available (required by xtrabackup)
xtrabackup version 2.4.10 based on MySQL server 5.7.19 Linux (x86_64) (revision id: 3198bce)

The solution to this error can refer to:

http://www.mafutian.net/353.html

[root@qht131 zlib]# rpm -qa | grep zlib
zlib-1.2.3-27.el6.x86_64

The current version is 1.2.3, you can upgrade to 1.2.7 or above.


Problem 1 that may occur after installation:

When upgrading the zlib version, gcc must be installed, otherwise an error will still be reported.

[root@qht131 zlib-1.2.8]# ./configure --prefix=/usr/local/zlib
Checking for gcc...
Checking for shared library support...
No shared library support.
Building static library libz.a version 1.2.8 with cc.
Checking for off64_t... No.
Checking for fseeko... No.
Checking for strerror... No.
Checking for unistd.h... No.
Checking for stdarg.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf().
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.

Problem 2 that may occur after installation:

After upgrading zlib, the server cannot be started, and the network is connected, but the ssh connection cannot be reached. It is always in a black screen state when starting, and it will be displayed briefly after ctrl+alt_del: error while loading shared libraris:libz.so.1:failed to map from hared object: Permission denied

I checked the reason on the Internet, and it is OK to disable Selinux, but it needs to be modified in linux rescue mode:

How to do rescue mode: https://www.linuxidc.com/Linux/2015-03/114942.htm

Disable SELinux method :

modify the configuration file /etc/selinux/config to find the following:

SELINUX=enforcing

change into:

SELINUX=disabled


I thought it wouldn't take long to install XtraBackup, but I didn't expect the twists and turns in the middle, but the installation was finally successful!

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326813899&siteId=291194637