本章节介绍ZStack多管理节点物理机高可用的升级方案。
[root@localhost ~]#zstack-ctl dump_mysql --file-name zstack-db-backup
[root@localhost ~]#cd /root/
#bash /root/zstack-upgrade -r ZStack-x86_64-DVD-3.10.0-c76.iso
[root@localhost ~]#zsha2 status
[root@localhost ~]#tar zxvf Multinode-HA-Suite-3.10.0.tar.gz
[root@localhost ~]#chmod +x zsha2 zstack-hamon
[root@localhost ~]# ./zsha2 upgrade-ha
zsha2 status
查看管理节点状态:[root@localhost ~]# zsha2 status
Status report from 192.168.195.200
=================================
Owns virtual address: yes //管理节点1已获取VIP,同一时刻只允许一个管理节点获取VIP
Self 192.168.195.200 reachable: yes //管理节点1可达
Gateway 192.168.0.1 reachable: yes //当前网关可达
VIP 192.168.199.151 reachable: yes //VIP可达
Peer 192.168.196.125 reachable: yes //管理节点2可达
Keepalived status: active //Keepalived服务处于工作状态
ZStack HA Monitor: active //高可用监控服务处于工作状态
MySQL status: mysqld is alive //数据库正常工作
MN status: Running [PID:6500] //管理节点正常工作
UI status: Running [PID:9785] http://192.168.195.200:5000 //UI正常工作
Slave Status:
-------------
Slave_IO_Running: Yes //Slave IO正常运行
Slave_SQL_Running: Yes //Slave SQL正常运行
Last_Error:
Seconds_Behind_Master: 0
Last_IO_Error:
Last_SQL_Error:
Warning: Permanently added '192.168.196.125' (ECDSA) to the list of known hosts.
Status report from 192.168.196.125 //查看管理节点2的状态
================================
Owns virtual address: no
Self 192.168.196.125 reachable: yes
Gateway 192.168.0.1 reachable: yes
VIP 192.168.199.151 reachable: yes
Peer 192.168.195.200 reachable: yes
Keepalived status: active
ZStack HA Monitor: active
MySQL status: mysqld is alive
Slave Status:
-------------
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Last_Error:
Seconds_Behind_Master: 0
Last_IO_Error:
Last_SQL_Error:
Note: visit ZStack UI with http://192.168.199.151:5000
[root@localhost ~]# bash zstack-upgrade -r ZStack-x86_64-DVD-3.10.0-c76.iso
[root@localhost ~]# zsha2 upgrade-mn -peerpass password ZStack-installer-3.10.0.bin
[root@localhost ~]# zsha2 upgrade-mn -peerpass password ZStack-x86_64-DVD-3.10.0-c76.iso
-peerpass
为可选参数,可设置Peer管理节点SSH登录密码。学习路径
ZStack Cloud 产品学习路径
快速梳理文档,点击相应文本链接,快速跳转到相应文档的页面,学习 ZStack Cloud 产品。
商务咨询:
400-962-2212 转 1售后咨询:
400-962-2212 转 2商务联系:
sales@zstack.io商务咨询:
400-962-2212 转 1商务联系:
channel@zstack.io商务咨询:
400-962-2212 转 1售后咨询:
400-962-2212 转 2商务联系:
sales@zstack.io商务咨询:
400-962-2212 转 1商务联系:
channel@zstack.io商务咨询:
400-962-2212 转 1商务联系:
channel@zstack.io下载链接已发送至您的邮箱。
如未收到,请查看您的垃圾邮件、订阅邮件、广告邮件。 当您收到电子邮件后,请点击 URL 链接,以完成下载。感谢您使用 ZStack 产品和服务。
成功提交申请。
我们将安排工作人员尽快与您取得联系。感谢您使用 ZStack 产品和服务。
立即体验
联系我们
回到顶部
商务咨询:
400-962-2212 转 1售后咨询:
400-962-2212 转 2商务联系:
sales@zstack.io成功提交申请。
我们将安排工作人员尽快与您取得联系。感谢您使用 ZStack 产品和服务。