Mysql MHA部署-03MHA軟體安裝
Mysql MHA部署-03MHA軟體安裝
一 Mysql MHA部署-01介紹
二 Mysql MHA部署-02主從複製
三 Mysql MHA部署-03MHA軟體安裝
四 Mysql MHA部署-04MHA配置
五 Mysql MHA部署-05故障轉移
六 Mysql MHA部署-06手動切換
七 Mysql MHA部署-07常見問題
架構說明:
參考:
1 MHA Node安裝(rac1,rac2,rac3,rac4)
我們需要在所有機器上安裝Node軟體(包括管理節點)
安裝之前我們需要先安裝相關perl的依賴包
下載安裝包:
這裡使用yum安裝,未聯網的請使用作業系統ISO中的軟體包配置本地yum源
安裝包網盤連結: 提取碼: mwkq
[root@rac1 mha]# pwd
/package/mysql/MHA/mha
[root@rac1 mha]# ll -rth
total 700K
-rw-r--r-- 1 root root 400 Mar 14 13:42 download.txt
-rw-r--r-- 1 root root 84K Mar 14 13:42 mha4mysql-manager-0.56-0.el5.noarch.rpm
-rw-r--r-- 1 root root 86K Mar 14 13:42 mha4mysql-manager-0.56-0.el6.noarch.rpm
-rw-r--r-- 1 root root 112K Mar 14 13:42 mha4mysql-manager-0.56.tar.gz
-rw-r--r-- 1 root root 80K Mar 14 13:42 mha4mysql-manager-0.57-0.el7.noarch.rpm
-rw-r--r-- 1 root root 116K Mar 14 13:42 mha4mysql-manager-0.57.tar.gz
-rw-r--r-- 1 root root 36K Mar 14 13:42 mha4mysql-node-0.56-0.el5.noarch.rpm
-rw-r--r-- 1 root root 36K Mar 14 13:42 mha4mysql-node-0.56-0.el6.noarch.rpm
-rw-r--r-- 1 root root 49K Mar 14 13:42 mha4mysql-node-0.56.tar.gz
-rw-r--r-- 1 root root 35K Mar 14 13:42 mha4mysql-node-0.57-0.el7.noarch.rpm
-rw-r--r-- 1 root root 54K Mar 14 13:42 mha4mysql-node-0.57.tar.gz
開始安裝:
[root@rac1 mha]# yum install perl-DBD-MySQL
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
Trying other mirror.
Package perl-DBD-MySQL-4.023-6.el7.x86_64 already installed and latest version
Nothing to do
[root@rac1 mha]# rpm -ivh mha4mysql-node-0.56-0.el6.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:mha4mysql-node-0.56-0.el6 ################################# [100%]
2 MHA Manager安裝
我們需要在manager上安裝Manager軟體
同樣安裝Manager需要一些依賴包
這裡使用yum安裝,未聯網的請使用作業系統ISO中的軟體包配置本地yum源
一些rpm包包含在上面的網盤中
由於依賴有點多,大家可以按照我下面的步驟進行,注意有的命令最後有星號
root使用者
rpm -ivh perl-Config-Tiny-2.12-1.el6.rfx.noarch.rpm
rpm -ivh perl-Time-HiRes-1.9724-1.el6.rfx.x86_64.rpm
yum install perl-Params-Validate
rpm -ivh perl-Log-Dispatch-2.26-1.el6.rf.noarch.rpm
yum install perl-Parallel-ForkManager*
rpm -ivh mha4mysql-manager-0.56-0.el6.noarch.rpm
其中perl-Parallel-ForkManager下載地址:
Binary Package
Source Package
或者全部手動安裝
rpm -ivh perl-Config-Tiny-2.12-7.1.el6.noarch.rpm
rpm -ivh mha4mysql-node-0.56-0.el6.noarch.rpm
rpm -ivh perl-DBD-MySQL-4.013-3.el6.i686.rpm
rpm -ivh compat-db43-4.3.29-15.el6.x86_64.rpm
rpm -ivh perl-Mail-Sender-0.8.16-3.el6.noarch.rpm
rpm -ivh perl-Parallel-ForkManager-0.7.9-1.el6.noarch.rpm
rpm -ivh perl-TimeDate-1.16-11.1.el6.noarch.rpm
rpm -ivh perl-MIME-Types-1.28-2.el6.noarch.rpm
rpm -ivh perl-MailTools-2.04-4.el6.noarch.rpm
rpm -ivh perl-Email-Date-Format-1.002-5.el6.noarch.rpm
rpm -ivh perl-Params-Validate-0.92-3.el6.
rpm -ivh perl-Params-Validate-0.92-3.el6.x86_64.rpm
rpm -ivh perl-MIME-Lite-3.027-2.el6.noarch.rpm
rpm -ivh perl-Mail-Sendmail-0.79-12.el6.noarch.rpm
rpm -ivg perl-Log-Dispatch-2.27-1.el6.noarch.rpm
rpm -ivh mha4mysql-manager-0.56-0.el6.noarch.rpm
3. 驗證安裝
到這裡我們已經安裝完成了,下面來驗證下
[root@rac4 mha]# rpm -ql mha4mysql-manager
/usr/bin/masterha_check_repl
/usr/bin/masterha_check_ssh
/usr/bin/masterha_check_status
/usr/bin/masterha_conf_host
/usr/bin/masterha_manager
/usr/bin/masterha_master_monitor
/usr/bin/masterha_master_switch
/usr/bin/masterha_secondary_check
/usr/bin/masterha_stop
/usr/share/man/man1/masterha_check_repl.1.gz
/usr/share/man/man1/masterha_check_ssh.1.gz
/usr/share/man/man1/masterha_check_status.1.gz
/usr/share/man/man1/masterha_conf_host.1.gz
/usr/share/man/man1/masterha_manager.1.gz
/usr/share/man/man1/masterha_master_monitor.1.gz
/usr/share/man/man1/masterha_master_switch.1.gz
/usr/share/man/man1/masterha_secondary_check.1.gz
/usr/share/man/man1/masterha_stop.1.gz
/usr/share/perl5/vendor_perl/MHA/Config.pm
/usr/share/perl5/vendor_perl/MHA/DBHelper.pm
/usr/share/perl5/vendor_perl/MHA/FileStatus.pm
/usr/share/perl5/vendor_perl/MHA/HealthCheck.pm
/usr/share/perl5/vendor_perl/MHA/ManagerAdmin.pm
/usr/share/perl5/vendor_perl/MHA/ManagerAdminWrapper.pm
/usr/share/perl5/vendor_perl/MHA/ManagerConst.pm
/usr/share/perl5/vendor_perl/MHA/ManagerUtil.pm
/usr/share/perl5/vendor_perl/MHA/MasterFailover.pm
/usr/share/perl5/vendor_perl/MHA/MasterMonitor.pm
/usr/share/perl5/vendor_perl/MHA/MasterRotate.pm
/usr/share/perl5/vendor_perl/MHA/SSHCheck.pm
/usr/share/perl5/vendor_perl/MHA/Server.pm
/usr/share/perl5/vendor_perl/MHA/ServerManager.pm
[root@rac4 mha]# rpm -ql mha4mysql-node
/usr/bin/apply_diff_relay_logs
/usr/bin/filter_mysqlbinlog
/usr/bin/purge_relay_logs
/usr/bin/save_binary_logs
/usr/share/man/man1/apply_diff_relay_logs.1.gz
/usr/share/man/man1/filter_mysqlbinlog.1.gz
/usr/share/man/man1/purge_relay_logs.1.gz
/usr/share/man/man1/save_binary_logs.1.gz
/usr/share/perl5/vendor_perl/MHA/BinlogHeaderParser.pm
/usr/share/perl5/vendor_perl/MHA/BinlogManager.pm
/usr/share/perl5/vendor_perl/MHA/BinlogPosFindManager.pm
/usr/share/perl5/vendor_perl/MHA/BinlogPosFinder.pm
/usr/share/perl5/vendor_perl/MHA/BinlogPosFinderElp.pm
/usr/share/perl5/vendor_perl/MHA/BinlogPosFinderXid.pm
/usr/share/perl5/vendor_perl/MHA/NodeConst.pm
/usr/share/perl5/vendor_perl/MHA/NodeUtil.pm
/usr/share/perl5/vendor_perl/MHA/SlaveUtil.pm
歡迎關注我的微信公眾號"IT小Chen",共同學習,共同成長!!!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2680386/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【MySQL】MHA安裝MySql
- MySQL MHA部署 Part 5 MHA部署指南MySql
- MHA安裝和部署步驟
- Mysql MHA部署-04MHA配置MySql
- MYSQL + MHA +keepalive + VIP安裝配置(一)--MYSQL安裝配置MySql
- MYSQL + MHA +keepalive + VIP安裝配置(二)--MHA的配置MySql
- MySQL MHA部署實戰MySql
- MMM安裝、MHA安裝
- MySQL MHA部署 Part 6 MHA故障轉移測試MySql
- Mysql MHA部署-05故障轉移MySql
- mysql MHA 高可用架構部署MySql架構
- MySQL MHA部署與測試-下篇MySql
- MYSQL + MHA +keepalive + VIP安裝配置(三)--keepalived安裝配置MySql
- MySQL MHA部署 Part 7 MHA手動切換測試MySql
- mysql proxy 安裝部署MySql
- MHA安裝手記
- Mysql MHA部署-02主從複製MySql
- Mysql MHA部署-06手動切換MySql
- Mysql MHA部署-07常見問題MySql
- weblogic軟體安裝與配置部署大全Web
- vs2005安裝部署軟體過程
- MySQL 高可用架構 - MHA環境部署記錄MySql架構
- MySQL高可用架構-MHA環境部署記錄MySql架構
- MySQL所有的安裝部署方式MySql
- MySQL 5.7安裝部署總結MySql
- mysql-cluster安裝和部署MySql
- MHA安裝搭建和測試
- 軟體安裝
- 【MHA】mysql高可用之MHAMySql
- jdk、tomcat、mysql軟體的安裝步驟JDKTomcatMySql
- weblogic中介軟體安裝與部署一些文章Web
- MySQL——MHA高可用群集部署及故障測試MySql
- MySQL高可用群集MHA部署及故障測試分析MySql
- mysql5.7GeleraCluster安裝部署(二)MySql
- MySQL高可用MMM方案安裝部署MySql
- docker安裝軟體Docker
- ubuntu 軟體安裝Ubuntu
- AIX 軟體安裝AI