Upgrading the HAF
The HAF upgrade will interrupt services. Therefore, obtain customers' approval before performing the upgrade.
The haf_upgrade script is provided to upgrade the HAF. The haf_upgrade script calls the haf-tool CLI interface.
- On a host node:
A host node is deployed with the service as a database. Therefore, no independent upgrade script is provided.
To upgrade the HAF on the host node separately, perform the following operations:
- Obtain the latest software package.
For details, see Obtaining Software.
- Decompress the software package.
unzip BoostKit-haf_1.0.1.zip
- Decompress the host installation package.
tar -zxvf haf-host-1.0.1.tar.gz
- Back up the bin and lib directories in the original installation directory.
mv /opt/haf-host/bin /opt/haf-host/bin.bak mv /opt/haf-host/lib /opt/haf-host/lib.bak
- Copy the bin and lib directories to the original installation directory and change the permissions.
cp ./bin /opt/haf-host/bin cp ./lib /opt/haf-host/lib chmod -R 550 /opt/haf-host/bin chmod -R 550 /opt/haf-host/lib chown -R user :group /opt/haf-host/
- user indicates the user of the files in the original installation path.
- group indicates the user group of the user corresponding to the files in the original installation path.
- In the following example, both user and group are root.
dr-xr-x--- 2 root root 4.0K Nov 12 2021 bin -r--r--r-- 1 root root 241 Nov 12 11:07 env.sh -rw------- 1 root root 220 Nov 12 11:07 haf_host_install.conf -r--r----- 1 root root 221 Nov 12 11:07 haf_user.conf dr-xr-x--- 3 root root 4.0K Nov 12 2021 lib dr-x------ 4 root root 4.0K Nov 12 11:07 tools
- Check whether the service on the host node is running properly.
Run the service based on the actual service requirements and check whether the service is running properly.
- Delete the backup files.
rm -rf /opt/haf-host/bin.bak rm -rf /opt/haf-host/lib.bak
- Obtain the latest software package.
- On an offload node:
cd /opt/haf-software ./haf_upgrade -m offload -p <upgrade package>
Option
Description
Mandatory
-m <mode>
mode: offload
Yes
-p <upgrade package>
Specify the new installation package.
Yes
haf-tool provides the following upgrade interface:
Parent topic: Running and Maintaining the HAF