Prerequisites
All commands in this section are for reference in the following scenarios. Change the values based on site requirements.
- The installation user is omm.
- The software package is stored in /home/omm/haf-software.
- The installation directory is /home/omm/haf-install. In this case, the /home/omm/haf-install/haf-host directory is generated after OmniData is installed on the host node, and the /home/omm/haf-install/haf-target directory is generated after OmniData is installed 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, perform the following operations as the root user first:
- Grant the permission for creating scheduled tasks to the current user. Assume that the current user is omm. Run the following command:
echo "omm" >> /etc/cron.allow
- To control the CPU and memory used by applications running in HAF, create a cgroup subdirectory for the current user. Assume that 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_haf
cd /sys/fs/cgroup/memory
mkdir omm_haf
chown -R 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.
- You do not need to perform the preceding operations when installing HAF on host nodes.
- 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.
- The name of the cgroup subdirectory can be customized. 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.
Parent topic: Deploying OmniData Using SmartKit