Chapter 3. Installing SAP HANA for a 2-node HA cluster setup


3.1. Installing a scale-up SAP HANA instance

Install the HANA instance with the same SID and instance number on all nodes. The setup of the instances must be identical.

Prerequisites

  • You have identical systems installed according to the OS requirements.
  • You have prepared the details for your HANA instances, see SAP HANA planning.
  • You have downloaded the SAP HANA installation media from SAP Software Downloads and the media is available on each node.

Procedure

  1. Go to the directory which contains the installation media, for example /sapmedia/hana:

    [root]# cd /sapmedia/hana
    Copy to Clipboard
  2. Unpack the installation media:

    [root]# unzip IMDB_SERVER20_*.ZIP
    Copy to Clipboard
  3. Go into the path of the unpacked installation media:

    [root]# cd /sapmedia/hana/DATA_UNITS/HDB_LCM_LINUX_<arch>
    Copy to Clipboard
  4. Run the SAP HANA Lifecycle Management tool (HDBLCM) for an interactive installation:

    [root]# ./hdblcm
    Copy to Clipboard

    In the interactive mode the installer asks you for all the required information, including the System ID (SID), Installation Number (instance), the filesystem location of data and log volumes, and more.

  5. Repeat steps 1-4 on all nodes.

Verification

  1. Switch to the <sid>adm user:

    [root]# su - rh1adm
    Copy to Clipboard
  2. Check the HANA instance runtime information as user <sid>adm:

    rh1adm $ HDB info
    USER          PID     PPID  %CPU        VSZ        RSS COMMAND
    rh1adm      17897    17895   0.0       8972       5248 -sh
    rh1adm      24461    17897   0.0       7524       3840  \_ /bin/sh /usr/sap/RH1/HDB02/HDB info
    rh1adm      24490    24461   0.0      10104       3456      \_ ps fx -U rh1adm -o user:8,pid:8,ppid:8,pcpu:5,vsz:10,rss:10,args
    rh1adm      12924        1   0.0     581456      40072 hdbrsutil  --start --port 34203 --volume 3 --volumesuffix ...
    rh1adm      12284        1   0.0     581376      40000 hdbrsutil  --start --port 34201 --volume 1 --volumesuffix ...
    rh1adm      12193        1   0.0       9028       3028 sapstart pf=/usr/sap/RH1/SYS/profile/RH1_HDB02_node1
    rh1adm      12200    12193   0.0     476372      87652  \_ /usr/sap/RH1/HDB02/node1/trace/hdb.sapRH1_HDB02 -d -nw -f /usr/sap/RH1/HDB02/node1/daemon.ini pf=/usr/sap/RH1/SYS/profile/RH1_HDB02_node1
    rh1adm      12222    12200   9.6   19986956   16126960      \_ hdbnameserver
    rh1adm      12787    12200   0.3    1464980     214468      \_ hdbcompileserver
    rh1adm      12790    12200  94.0    7669612    6970948      \_ hdbpreprocessor
    rh1adm      12828    12200  12.7   19716232   14994012      \_ hdbindexserver -port 34203
    rh1adm      12831    12200   1.1    4995088    1465724      \_ hdbxsengine -port 34207
    rh1adm      13269    12200   0.4    2660096     461776      \_ hdbwebdispatcher
    rh1adm      12016        1   0.0     499404      58336 /usr/sap/RH1/HDB02/exe/sapstartsrv pf=/usr/sap/RH1/SYS/profile/RH1_HDB02_node1
    Copy to Clipboard
  3. Additionally, you can verify the landscapeHostConfiguration.py output for status ok:

    rh1adm $ cdpy; python landscapeHostConfiguration.py
    | Host  | Host   | Host   | Failover | Remove | Storage   | Storage   | Failover | Failover | NameServer | NameServer | IndexServer | IndexServer | Host   | Host   | Worker  | Worker  |
    |       | Active | Status | Status   | Status | Config    | Actual    | Config   | Actual   | Config     | Actual     | Config      | Actual      | Config | Actual | Config  | Actual  |
    |       |        |        |          |        | Partition | Partition | Group    | Group    | Role       | Role       | Role        | Role        | Roles  | Roles  | Groups  | Groups  |
    | ----- | ------ | ------ | -------- | ------ | --------- | --------- | -------- | -------- | ---------- | ---------- | ----------- | ----------- | ------ | ------ | ------- | ------- |
    | node1 | yes    | ok     |          |        |         1 |         1 | default  | default  | master 1   | master     | worker      | master      | worker | worker | default | default |
    
    overall host status: ok
    Copy to Clipboard
  4. Repeat the steps on all nodes. Note that the HANA profiles contain the individual node name in the format <SID>_HDB<instance>_<node>.

3.2. Disabling SAP HANA instance autostart

The cluster controls startup and shutdown of the HANA instance in a HA cluster setup. You must configure the HANA instance profile to not automatically start the instance itself.

Procedure

  1. Go to the HANA instance profile directory:

    [root]# cd /usr/sap/<SID>/SYS/profile
    Copy to Clipboard
  2. Edit the instance profile:

    [root]# vi <SID>_HDB<instance>_<hostname>
    Copy to Clipboard

    Ensure that Autostart is set to 0.

  3. Repeat steps 1-2 for each HANA instance that will be managed as part of the HA cluster.

Verification

  • Check that Autostart = 0 is set in the instance profiles of all HANA instances that will be managed by the HA cluster:

    [root]# grep Autostart /usr/sap/RH1/SYS/profile/*
    /usr/sap/RH1/SYS/profile/RH1_HDB02_node1:Autostart = 0
    Copy to Clipboard
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat