Upgrade ZStack ZSphere


Single Management Node Upgrade

This section uses H84r as an example to introduce a step-by-step guide for upgrading a single management node environment.

Procedure

  1. Check the current environment version and the operating system version.
    [root@localhost ~]# zstack-ctl status [root@localhost ~]# cat /etc/readhat-release
  2. Obtain the upgrade packages.
    Download the zstack-upgrade script, ISO software package, upgrade packages, and the HA suite for dual management node as needed.
  3. Disable the HA policy.
    Before the upgrade, you need to disable the global switch for virtual machine high availability to avoid triggering it accidentally, which could affect the upgrade. After the upgrade is complete, manually enable the HA policy.
    1. Log in to ZStack ZSphere.
    2. Click Business Reliability > HA Policy to enter the HA Policy page.
    3. Disable the HA policy switch.
  4. Back up the database and upgrade script.
    Log in to the management node system and the run the following commands to back up the database and upgrade script for emergency recovery:
    # 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
  5. Upgrade ZStack ZSphere.
    # 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.6-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.6-H84r.iso  [root@zstack-1 opt]# bash ZStack-ZSphere-installer-4.10.6.bin -u -P MYSQL_ROOT_PASSWORD
    Note:
    • If the database root password uses the system default password zstack.mysql.password, you can omit the -P MYSQL_ROOT_PASSWORD parameter.
    • Before executing the zstack-upgrade command, ensure that the prepared ISO is based on version H84r to avoid using other ISOs that may overwrite the local source.
  6. Clear the browser cache.
    To ensure that the new features work properly, it is recommended that after the upgrade is complete, you log in to the UI management interface and manually clear the browser cache by pressing Ctrl+F5 or Ctrl+Shift+R.
  7. Enable the HA policy.

Dual Management Node Upgrade

This section uses H84r as an example to introduce a step-by-step guide for upgrading a dual management node environment.

Procedure

  1. Check the current environment version and the operating system version.
    [root@localhost ~]# zstack-ctl status [root@localhost ~]# cat /etc/readhat-release
  2. Obtain the upgrade packages.
    Download the zstack-upgrade script, ISO software package, upgrade packages, and the HA suite for dual management node as needed.
  3. Disable the HA policy.
    Before the upgrade, you need to disable the global switch for virtual machine high availability to avoid triggering it accidentally, which could affect the upgrade. After the upgrade is complete, manually enable the HA policy.
    1. Log in to ZStack ZSphere.
    2. Click Business Reliability > HA Policy to enter the HA Policy page.
    3. Disable the HA policy switch.
  4. Back up the database and upgrade script.
    Log in to the management node system and the run the following commands to back up the database and upgrade script for emergency recovery:
    # 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
  5. Obtain the IP address of the management node where the VIP is located.
    Run the following command to obtain the IP address of the management node where the VIP is located. The node with VIP marked as yes in the returned results is the management node where the VIP is located:
    [root@localhost ~]# zsha2 status
  6. Unpack the HA suite and grant executable permission.
    On the management node where the VIP is located, run the following commands in sequence to unpack the HA suite and grant executable permissions to the 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
  7. Upgrade the HA suite.
    On the management node where the VIP is located, run the following command to upgrade the HA suite:
    [root@localhost ~]# ./zsha2 upgrade-ha
  8. Run the zsha2 version command to check if the commit id matches the one in the latest version package.
  9. Upgrade ZStack-ZSphere.
    On the management node where the VIP is located, run the following command to upgrade the virtualization platform:
    zsha2 upgrade-mn -peerpass password ZStack-ZSphere-x86_64-DVD-4.10.6-H84r.iso
    Note: -peerpass is optional and can be set to the SSH login password for the peer management node.
  10. Clear the browser cache.
    To ensure that the new features work properly, it is recommended that after the upgrade is complete, you log in to the UI management interface and manually clear the browser cache by pressing Ctrl+F5 or Ctrl+Shift+R.
  11. Enable the HA policy.

Archives

Download Document Archives

Back to Top

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.
同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.