Rate This Document
Findability
Accuracy
Completeness
Readability

Prerequisites for Deployment

All commands in this section meet the following conditions. Change the parameter values based on your requirements.

  • The installation user is omm.
  • The installation package is stored in /home/omm/haf-software.
  • The installation directory is /home/omm/haf-install. The /home/omm/haf-install/haf-host directory is generated after installing HAF on the host node, and the /home/omm/haf-install/haf-target directory is generated after installing the HAF service on the offload node. The /home/omm/haf-install/haf-offload directory is generated after installing the HAF library on the offload node.
  • The cgroup subdirectory is omm_haf. For details, see Prerequisites for Installing HAF.

Prerequisites for Installing HAF

Before installing HAF as a common user on the offload node, perform the following operations as the root user first:

  • Grant the permission for creating scheduled tasks to the current user. If the current user is omm. Run the following command:
    echo "omm"  >> /etc/cron.allow
  • To control the CPU and memory used by applications running on HAF, create a cgroup subdirectory for the current user. If the current user is omm and the subdirectory is omm_haf, run the following commands:
    cd /sys/fs/cgroup/cpu
    mkdir omm_haf
    chown -R omm:omm omm_haf
    cd /sys/fs/cgroup/memory
    mkdir omm_haf
    chown -R omm:omm omm_haf
  • To ensure system security, disable remote login for user omm who installs and runs HAF. That is, set the permission of user omm to nologin.
  • Prerequisites for Installing HAF is not required for installing HAF on the host node or installing the HAF library on the offload node.
  • When using the root user for installation, you do not need to configure a scheduled task, but you need to create subdirectories in /sys/fs/cgroup/cpu and /sys/fs/cgroup/memory.
  • You can rename the cgroup subdirectories as needed. The names of the subdirectories created in /sys/fs/cgroup/cpu and /sys/fs/cgroup/memory must be the same and will be used as the value of the cgroup_dir parameter during HAF installation on offload nodes.