Installing SAP HANA

Scenarios

This section uses the SAP HANA 1.0 installation package as an example. You can download the package from the official website.

Prerequisites

  • You have created BMSs, formatted disks attached to them, and completed required configurations.
  • You have synchronized the time of the BMSs.

Procedure

  1. Log in to the jump host and use SSH to switch to the active SAP HANA BMS.
  2. Enter the directory where the installation file is stored.

    For example, if the installation file is stored in /51052383/DATA_UNITS/HDB_SERVER_LINUX_X86_64, run the following command:

    cd /51052383/DATA_UNITS/HDB_SERVER_LINUX_X86_64

  3. Run the following command to assign permissions to the directory:

    chmod 777 -R /hana

  4. Run the following command to install SAP HANA:

    Set the parameters based on the actual planning. internal_network is the planned internal communication network segment.

    When the SAP HANA 2.0 is used, the parameter --db_mode=singledb is not required.

    For details, see section "Installing SAP HANA" in SAP HANA User Guide (BMS Cluster Deployment).

    ./hdblcm --action=install --sid=ANA --number=00 --sapmnt=/hana/shared/ --storage_cfg=/hana/shared/ --root_user=root --autostart=on --restrict_max_mem=off --max_mem=0 --logpath=/hana/log/ANA --nostart=off --datapath=/hana/data/ANA --shell=/bin/sh --hostname=hana001 --remote_execution=ssh --install_hostagent=on --db_mode=singledb --install_ssh_key=on --addhosts=hana002:role=worker:group=default:storage_partition=2,hana003:role=standby:group=default --password=Admin123 --system_user_password=Admin123 --root_password=Admin@123 --internal_network=10.0.2.0/24

For details about how to configure backup paths and storage parameters, see section "Installing SAP HANA (Cluster Deployment and Two NFS Servers Deployed)" in SAP HANA User Guide (BMS Cluster Deployment).