Upgrading the HA Using the CLI
Prerequisites
- The AtlasEdge and HA software have been installed in the system.
- Before upgrading the HA software, ensure that the dual backup function is enabled.
Software Preparation
- You have downloaded the upgrade package. For details, see Obtaining the Upgrade Software Package.
- You have uploaded the software package and signature file to the system (for example, /home/work).
Upgrade Procedure
- You have logged in to the system background as the root user using SSH or other methods
- Run the following command to go to the AtlasEdge software installation path/AtlasEdge directory:
cd AtlasEdge installation path/AtlasEdge
- Run the following command to upgrade the installed HA software:
./run.sh upgrade -i Upgrade mode -f Upgrade package path -s Signature file path -c CRL file path -e Effective mode -t HA
Table 5-3 describes the parameters. During the upgrade process, the system automatically verifies the software package. If the verification fails, the system displays a message indicating that the upgrade fails.
Example:
./run.sh upgrade -i force -f /home/work/Ascend-mindxedge-ha_20.10.x.x_linux-aarch64.tar.gz -s /home/work/Ascend-mindxedge-ha_20.10.x.x_linux-aarch64.tar.gz.cms -c /home/work/Ascend-mindxedge-ha_20.10.x.x_linux-aarch64.tar.gz.crl -e now -t HA
Table 5-3 Parameter descriptionParameter
Description
-i Upgrade mode
Upgrade mode. The options are as follows:
- force: indicates a forced upgrade, which skips the version number check.
- normal: indicates a normal upgrade, which involves the version number check. If the target version number is smaller than the source version number, the upgrade cannot be performed.
-f Upgrade package path
Path of the HA upgrade package, for example, /home/work/Ascend-mindxedge-ha_{version}_linux-{arch}.tar.gz. The Ascend-mindxedge-ha_{version}_linux-{arch}.tar.gz installation package is obtained by decompressing the Ascend-mindxedge-ha_{version}_linux-{arch}.zip installation package.
-s Signature file path
Path of the signature file for verifying the installation package during the upgrade, for example, /home/work/Ascend-mindxedge-ha_{version}_linux-{arch}.tar.gz.cms. The Ascend-mindxedge-ha_{version}_linux-{arch}.tar.gz.cms installation package is obtained by decompressing the Ascend-mindxedge-ha_{version}_linux-{arch}.zip installation package.
-c CRL file path
Path of the CRL file for verifying the installation package during the upgrade, for example, /home/work/Ascend-mindxedge-ha_{version}_linux-{arch}.tar.gz.crl. The Ascend-mindxedge-ha_{version}_linux-{arch}.tar.gz.crl installation package is obtained by decompressing the Ascend-mindxedge-ha_{version}_linux-{arch}.zip installation package.
-e Effective mode
Upgrade effective mode. The options are as follows:
- now: The upgrade takes effect immediately after the upgrade.
- delay: The upgrade takes effect only when a command is executed. This mode is not supported at present.