ZStack Cloud Platform
Single Server, Free Trial for One Year
This section uses H84r as an example to introduce a step-by-step guide for upgrading a single management node environment.
[root@localhost ~]# zstack-ctl status [root@localhost ~]# cat /etc/readhat-release
# Back up the database to the /var/lib/zstack/mysql-backup/ directory [root@localhost ~]# zstack-ctl dump_mysql --file-name zstack-db-backup # Back up the upgrade script to the /root/ directory [root@localhost ~]# cp /usr/local/bin/zstack-upgrade /root/zstack-upgrade-bk
# Two offline upgrade methods are supported. The first method is recommended. # Method 1: Upgrade the local repository and management services [root@zstack-1 opt]# zstack-upgrade ZStack-ZSphere-x86_64-DVD-4.10.10-H84r.iso # Method 2: First upgrade the local repository and then upgrade the management services [root@zstack-1 opt]# zstack-upgrade -r ZStack-ZSphere-x86_64-DVD-4.10.10-H84r.iso [root@zstack-1 opt]# bash ZStack-ZSphere-installer-4.10.10.bin -u -P MYSQL_ROOT_PASSWORD
-P MYSQL_ROOT_PASSWORD
parameter.zstack-upgrade
command, ensure that the prepared ISO is based on version H84r to avoid using other ISOs that may overwrite the local source.Ctrl+F5
or Ctrl+Shift+R
.This section uses H84r as an example to introduce a step-by-step guide for upgrading a dual management node environment.
[root@localhost ~]# zstack-ctl status [root@localhost ~]# cat /etc/readhat-release
# Back up the database to the /var/lib/zstack/mysql-backup/ directory [root@localhost ~]# zstack-ctl dump_mysql --file-name zstack-db-backup # Back up the upgrade script to the /root/ directory [root@localhost ~]# cp /usr/local/bin/zstack-upgrade /root/zstack-upgrade-bk
[root@localhost ~]# zsha2 status
zsha2
and zstack-hamon
files:# Unpack the HA suite [root@localhost ~]# tar zxvf ZStack-ZSphere-Multinode-HA-Suite.tar.gz # Grant executable permissions [root@localhost ~]# chmod +x zsha2 zstack-hamon
[root@localhost ~]# ./zsha2 upgrade-ha
zsha2 version
command to check if the commit id
matches the one in the latest version package. zsha2 upgrade-mn -peerpass password ZStack-ZSphere-x86_64-DVD-4.10.10-H84r.iso
-peerpass
is optional and can be set to the SSH login password for the peer management node.Ctrl+F5
or Ctrl+Shift+R
.