Skip to main content
NetApp solutions for SAP

Contributors netapp-mschoen

Multiple hosts

This section describes the configuration of the NetApp storage system specific to SAP HANA multiple-hosts systems

LUN Overview

The following table shows the LUN configuration of a 2+1 multiple-host SAP HANA system.

Purpose LUNs LVM logical volume

Data host 1

FC5_data_mnt00001_1
FC5_data_mnt00001_2

FC5_data_mnt00001-vol

Data host 2

FC5_data_mnt00002_1
FC5_data_mnt00002_2

FC5_data_mnt00002-vol

Log host 1

FC5_log_mnt00001_1
FC5_log_mnt00001_2

FC5_log_mnt00001-vol

Log host 2

FC5_log_mnt00002_1
FC5_log_mnt00002_2

FC5_log_mnt00002-vol

Note The /hana/shared volume must be accessible by all SAP HANA hosts and is therefore usually exported by using NFS. As NetApp ASA systems do not support NFS as a protocol, NetApp recommends using an additional AFF or FAS system for the /hana/shared file system.
Note With the described configuration, the /usr/sap/SID directory in which the default home directory of user SIDadm is stored, is on the local disk for each HANA host. In a disaster recovery setup with disk-based replication, NetApp recommends creating four additional subdirectories in the SID_shared volume for the /usr/sap/SID file system so that each database host has all its file systems on the central storage.
Note If SAP Local Secure Store service (LSS) is used, the /lss/shared/SID directory must be accessible at all hosts and is therefore usually exported by using NFS. As NetApp ASA systems do not support NFS as a protocol, NetApp recommends using an additional AFF or FAS system for the /lss/shared file system.

Creating LUNs and mapping LUNs to initiator groups

You can use NetApp ONTAP System Manager to create storage volumes and LUNs and the map them to the igroups of the servers and the ONTAP CLI.

Creating LUNs and mapping LUNs to initiator groups using the CLI

This section shows an example configuration using the command line with ONTAP 9 for a 2+1 SAP HANA multiple host system with SID FC5 using LVM and two LUNs per LVM volume group:

  1. Create all LUNs.

    lun create -path FC5_data_mnt00001_1 -size 1t -ostype linux  -class regular
    lun create -path FC5_data_mnt00001_2 -size 1t -ostype linux  -class regular
    lun create -path FC5_data_mnt00002_1 -size 1t -ostype linux  -class regular
    lun create -path FC5_data_mnt00002_2 -size 1t -ostype linux  -class regular
    lun create -path FC5_log_mnt00001_1 -size 260g -ostype linux  -class regular
    lun create -path FC5_log_mnt00001_2 -size 260g -ostype linux  -class regular
    lun create -path FC5_log_mnt00002_1 -size 260g -ostype linux  -class regular
    lun create -path FC5_log_mnt00002_2 -size 260g -ostype linux  -class regular
    Note Disable autonomous ransom protection for these LUNs using the GUI
  2. Create the initiator group for all servers belonging to system FC5.

    lun igroup create -igroup HANA-FC5 -protocol fcp -ostype linux -initiator 10000090fadcc5fa,10000090fadcc5fb,10000090fadcc5c1,10000090fadcc5c2,10000090fadcc5c3,10000090fadcc5c4 -vserver svm1
  3. Map all LUNs to created initiator group.

    lun map -path FC5_data_mnt00001_1 -igroup HANA-FC5
    lun map -path FC5_data_mnt00001_2 -igroup HANA-FC5
    lun map -path FC5_data_mnt00002_1 -igroup HANA-FC5
    lun map -path FC5_data_mnt00002_2 -igroup HANA-FC5
    lun map -path FC5_log_mnt00001_1 -igroup HANA-FC5
    lun map -path FC5_log_mnt00001_2 -igroup HANA-FC5
    lun map -path FC5_log_mnt00002_1 -igroup HANA-FC5
    lun map -path FC5_log_mnt00002_2 -igroup HANA-FC5

Creating LUNs and mapping LUNs to initiator groups using the GUI

This section shows an example configuration using ONTAP System Manager for a 2+1 SAP HANA multiple host system with SID FC5 using LVM and two LUNs per LVM volume group:

  1. Log on to the ONTAP System Manager of your ONTAP Cluster and choose Storage from the left menu.

    1. Press Add

      ONTAP System Manager - Storage

  2. Choose More options

    ONTAP System Manager - Add Storage

  3. Provide the required information:

    1. name of the data LUNs, e.g.FC5_data_mnt00001

    2. the amount of LUNs to be combined with LVM, e.g. 2

    3. the size of each LUN, e.g. 1000 GB

    4. choose SCSI (FC or iSCSI)

    5. choose Linux as Host Operating system

    6. choose New host for the Host mapping option, provide a nam, e.g FC5_host, pick or add the desired initiators

    7. Keep Schedule snapshots unchecked

    8. press Add

      ONTAP System Manager - Create Data LUNs

  4. Create the data LUNs for the next worker host by pressing Add

    ONTAP System Manager - Create additional Data LUNs

  5. Provide the required information:

    1. the name of the additional data LUNs , e.g. FC5_data_mnt00002

    2. the amount of LUNs to be combined with LVM, e.g. 2

    3. the size of each LUN, e.g. 1000 GB

    4. choose Linux as Host Operating system

    5. choose the previously created mapping FC5_host for the Host mapping option

    6. press Add

    ONTAP System Manager - Create data LUNs

  6. Repeat steps 4 and 5 for every additional worker host

  7. After successful creation of the data LUNs create the log LUNs by pressing Add

    ONTAP System Manager - Create log LUNs

  8. Provide the required information:

    1. the name of the log LUNs to be combined with LVM, e.g. FC5_log_mnt00001

    2. the amount of LUNs to be combined with LVM, e.g. 2

    3. the size of each LUN, e.g. 260 GB

    4. choose Linux as Host Operating system

    5. choose the previously created mapping FC5_host for the Host mapping option

    6. press Add

      ONTAP System Manager - Create log LUNs

  9. Create the log LUNs for the next worker host by pressing Add

    ONTAP System Manager - Create additional log LUNs

  10. Provide the required information:

    1. the name of the additional log LUNs, e.g. FC5_log_mnt00002

    2. the amount of LUNs to be combined with LVM, e.g. 2

    3. the size of each LUN, e.g. 260 GB

    4. choose Linux as Host Operating system

    5. choose the previously created mapping FC5_host for the Host mapping option

    6. press Add

      ONTAP System Manager - Create additional log LUNs

  11. Repeat steps 9 and 10 for every additional worker host

All required LUNs for a SAP HANA multiple-hosts system have been created.

ONTAP System Manager - LUN Overview

Disable Autonomous Ransomware Protection for all data und log LUNS

Open the context menu of each data and log LUN and disable ransomware-protection

ONTAP System Manager - LUN Overview