Upgrade the Management Node HA Environment

This task applies to a ZSphere environment where management node HA is configured.

Before you begin

Before performing this task, complete Prepare for Upgrade.

Procedure

  1. Obtain the IP address of the management node where the VIP resides.
    Run the following command to obtain the IP address of the management node where the VIP resides. In the returned results, the node whose VIP value is yes is the management node where the VIP resides.
    [root@localhost ~]# zsha2 status
  2. Unpack the HA suite and grant executable permissions.
    On the management node where the VIP resides, 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
  3. Upgrade the HA suite.
    On the management node where the VIP resides, run the following command to upgrade the HA suite.
    [root@localhost ~]# ./zsha2 upgrade-ha
  4. Run the zsha2 version command to check whether the commit id matches the one in the latest version package.
  5. Upgrade ZStack-ZSphere.
    On the management node where the VIP resides, run the following command to upgrade the virtualization platform.
    zsha2 upgrade-mn -peerpass password ZStack-ZSphere-x86_64-DVD-5.1.0-H84r.iso
    Note: -peerpass is optional. You can use it to specify the SSH login password of the peer management node.

What to do next

After the upgrade is complete, continue with Post-Upgrade Checks and Handling.