Applying the HAF Patch Package
- Obtain the patch files BoostKit-haf_1.3.0.SPC2.zip and BoostKit-haf_1.3.0.SPC6.zip, and upload them to the server. For details, see Obtaining the Patch Package.
- Stop the HAF applications and service.
- On the host node, stop the HAF service applications.
- On the offload node with the HAF library, stop the HAF service applications.
- On the offload node with the HAF service, stop all HAF service applications and the HAF service.
./tools/haf-tool service --stop -s <service_name> ./tools/haf-tool stop
- Decompress BoostKit-haf_1.3.0.SPC2.zip.
unzip BoostKit-haf_1.3.0.SPC2.zip
- Replace the existing SO and binary files.
- Replace the following files on the host node:
chmod 700 -R haf-host/lib /usr/bin/cp -rf libhaf_link_host.so haf-host/lib/ /usr/bin/cp -rf libssl.so.1.1 haf-host/lib/ /usr/bin/cp -rf libcrypto.so.1.1 haf-host/lib/ /usr/bin/cp -rf libkmc_tool.so haf-host/lib/ /usr/bin/cp -rf haf-1.3.0.jar haf-host/lib/jar/ chmod 500 -R haf-host/lib chmod 700 -R haf-host/tools/ /usr/bin/cp -rf haf-tool haf-host/tools/ chmod 500 -R haf-host/tools chmod 700 -R haf-host/bin /usr/bin/cp -rf kmc_tool_bin haf-host/bin chmod 500 -R haf-host/bin
- Replace the corresponding files on the offload node with the HAF service:
chmod 700 -R haf-target/lib /usr/bin/cp -rf libhaf_link_target.so haf-target/lib/ /usr/bin/cp -rf libhaf_offload_device.so haf-target/lib/ /usr/bin/cp -rf libkmc_tool.so haf-target/lib/ /usr/bin/cp -rf libssl.so.1.1 haf-target/lib/ /usr/bin/cp -rf libcrypto.so.1.1 haf-target/lib /usr/bin/cp -rf haf-1.3.0.jar haf-target/lib/jar/ chmod 500 -R haf-target/lib chmod 700 -R haf-target/tools/ /usr/bin/cp -rf haf-tool haf-target/tools/ chmod 500 -R haf-target/tools chmod 700 -R haf-target/bin/ /usr/bin/cp -rf verification haf-target/bin/ /usr/bin/cp -rf kmc_tool_bin haf-target/bin /usr/bin/cp -rf haf_daemon haf-target/bin chmod 500 -R haf-target/bin
- Replace the corresponding files on the offload node with the HAF library:
chmod 700 -R haf-offload/lib /usr/bin/cp -rf libhaf_link_target.so haf-offload/lib/ /usr/bin/cp -rf libhaf_offload_device.so haf-offload/lib/ /usr/bin/cp -rf libkmc_tool.so haf-offload/lib/ /usr/bin/cp -rf haf-1.3.0.jar haf-offload/lib/jar/ /usr/bin/cp -rf libssl.so.1.1 haf-offload/lib/ /usr/bin/cp -rf libcrypto.so.1.1 haf-offload/lib chmod 500 -R haf-offload/lib chmod 700 -R haf-offload/tools/ /usr/bin/cp -rf haf-tool haf-offload/tools/ chmod 500 -R haf-offload/tools chmod 700 -R haf-offload/bin /usr/bin/cp -rf kmc_tool_bin haf-offload/bin chmod 500 -R haf-offload/bin
- Replace the following files on the host node:
- Delete the patch files.
rm -f libhaf_link_host.so rm -f libhaf_link_target.so rm -f libssl.so.1.1 rm -f libcrypto.so.1.1 rm -f libkmc_tool.so rm -f libhaf_offload_device.so rm -f haf-tool rm -f verification rm -f kmc_tool_bin rm -f haf-1.3.0.jar rm -f haf_daemon
- Decompress BoostKit-haf_1.3.0.SPC6.zip.
unzip BoostKit-haf_1.3.0.SPC6.zip
- Replace the existing SO and binary files.
- Replace the following files on the host node:
chmod 700 -R haf-host/lib /usr/bin/cp -rf libhaf_link_host.so haf-host/lib/ /usr/bin/cp -rf libssl.so.1.1 haf-host/lib/ /usr/bin/cp -rf libcrypto.so.1.1 haf-host/lib/ chmod 500 -R haf-host/lib chmod 700 -R haf-host/tools/ /usr/bin/cp -rf haf-tool haf-host/tools/ chmod 500 -R haf-host/tools
- Replace the corresponding files on the offload node with the HAF service:
chmod 700 -R haf-target/lib /usr/bin/cp -rf libhaf_link_target.so haf-target/lib/ /usr/bin/cp -rf libssl.so.1.1 haf-target/lib/ /usr/bin/cp -rf libcrypto.so.1.1 haf-target/lib chmod 500 -R haf-target/lib chmod 700 -R haf-target/tools/ /usr/bin/cp -rf haf-tool haf-target/tools/ chmod 500 -R haf-target/tools chmod 700 -R haf-target/bin/ /usr/bin/cp -rf verification haf-target/bin/ chmod 500 -R haf-target/bin/
- Replace the corresponding files on the offload node with the HAF library:
chmod 700 -R haf-offload/lib /usr/bin/cp -rf libhaf_link_target.so haf-offload/lib/ /usr/bin/cp -rf libssl.so.1.1 haf-offload/lib/ /usr/bin/cp -rf libcrypto.so.1.1 haf-offload/lib chmod 500 -R haf-offload/lib chmod 700 -R haf-offload/tools/ /usr/bin/cp -rf haf-tool haf-offload/tools/ chmod 500 -R haf-offload/tools
- Replace the following files on the host node:
- Delete the patch files.
rm -f libhaf_link_host.so rm -f libhaf_link_target.so rm -f libssl.so.1.1 rm -f libcrypto.so.1.1 rm -f haf-tool rm -f verification
- Restart the HAF service and applications.
- On the offload node with the HAF service, restart the HAF service.
./tools/haf-tool restart
- On the offload node with the HAF library, restart the HAF service applications.
- On the host node, restart the HAF service applications.
- On the offload node with the HAF service, restart the HAF service.
Parent topic: Applying Patches