我要评分
获取效率
正确性
完整性
易理解

Installation Commands

Implementation of HAF Installation

The haf_installer script is provided to install HAF. The haf_installer script invokes the haf-tool CLI to complete the installation.

External Installation Interfaces in the Script

  • Host node:

    cd /home/omm/haf-software

    ./haf_installer -m <mode> -p <package> -t <target_dir> -s <communication_port>

    The -p option specifies the software package to be installed on the host node. A certificate is generated based on the haf_host_install.conf file. The haf_host_install.conf file is in the install-config folder in the same directory as the haf_installer script.

    Replace the /home/omm/haf-software directory based on site requirements.

  • Offload node:

    cd /home/omm/haf-software

    ./haf_installer -m <mode> -p <package> -t <target_dir> -w <ip_white_list> -j <java_home> -i <service_ip_duration> -c <cgroup_dir> -s <communication_port>

An offload node has four more options than a host node. Table 1 describes the options.
Table 1 Options in the haf_installer command

Option

Description

Mandatory

Host Node

Offload Node

-m <mode>

Whether the installation is performed on a host node or offload node. Possible values are host and offload.

Yes

Yes

Yes

-p <package>

Installation package, for example, haf-target-1.2.0.tar.gz.

Yes

Yes

Yes

-t <target_dir>

Root directory for installing the software package.

Yes

Yes

Yes

-w <ip_white_list>

IP address trustlist. The value can be an IP address or IP address segment. Use commas (,) to separate multiple IP addresses. Example: 127.0.0.1,10.10.0.2,10.10.10.0/24. This parameter is left empty by default.

NOTE:

The trustlist is used to verify the IP addresses of host nodes. Connections that are not in the trustlist will be rejected. If IP address trustlist verification is enabled but the trustlist is not configured, an offload node rejects connection requests from all host nodes.

No

No

Yes

-j <java_home>

Java installation path on the node.

  • If this option is left blank, it is automatically parsed based on system environment variables during installation.
  • Set this option if you want to use a customized path.
  • If the system default path is used, you can ignore this option.

No

No

Yes

-i <service_ip_duration>

Listening IP address segment of the offload node. The format is 10.10.0.0/24. The default value is the value configured in the haf_target_install.conf file.

NOTE:

The default listening IP address segment differs greatly from the onsite running network segment. You are advised to configure the listening IP address segment based on site requirements.

No

No

Yes

-c <cgroup_dir>

cgroup subdirectory created in Prerequisites. In the example, the value is omm_haf. Replace it with the actual cgroup subdirectory name.

Yes

No

Yes

-s <communication_port>

Communication port of the HAF service. The default port is 17531. The communication ports of the host node and the offload node must be the same.

No

Yes

Yes

External Installation Interfaces Provided by haf-tool

  • Host node:

    /home/omm/haf-install/haf-host/tools/haf-tool install -t install_dir

  • Offload node:
    /home/omm/haf-install/haf-target/tools/haf-tool install -t install_dir

    This interface is provided for the haf_installer script. You are advised not to invoke this interface separately.

Table 2 Parameters in the haf-tool installation command

Option

Description

Mandatory

-t instal_dir

Software installation path

Yes