Sap Hana On Netapp Fas Systems With NFS: Configuration Guide
Sap Hana On Netapp Fas Systems With NFS: Configuration Guide
Abstract
The NetApp® FAS product family has been certified for use with SAP HANA in tailored data
center integration (TDI) projects. This document describes best practices for a NAS (NFS)
storage setup using NetApp ONTAP® with the FAS product family.
TABLE OF CONTENTS
1 Introduction ........................................................................................................................................... 4
1.1 SAP HANA Tailored Data Center Integration ..................................................................................................5
2 Architecture........................................................................................................................................... 5
2.1 SAP HANA Backup .........................................................................................................................................7
4.9 Adding Additional Data Volume Partitions for SAP HANA Single-Host Systems ..........................................32
LIST OF TABLES
Table 1) Supported NFS versions. .................................................................................................................................4
Table 2) Number of SAP HANA hosts per disk shelf. ...................................................................................................11
Table 3) Performance test tool configuration file parameter values. .............................................................................12
Table 4) Maximum number of mounts per physical interface. ......................................................................................19
Table 5) Volume configuration for SAP HANA single-host systems. ............................................................................20
Table 6) Mount points for single-host systems. ............................................................................................................21
Table 7) Volume configuration for SAP HANA multiple-host systems. .........................................................................22
Table 8) Mount points for multiple-host systems. .........................................................................................................22
Table 9) Volume options...............................................................................................................................................23
2 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Table 10) NFSv3 options. .............................................................................................................................................23
Table 11) NFSv4 options. .............................................................................................................................................23
Table 12) Additional NFSv4 options for SAP HANA multiple host systems ..................................................................24
Table 13) Setting SAP HANA Failover Parameters ......................................................................................................25
Table 14) NFS versions to be used. .............................................................................................................................28
Table 15) Mount options. ..............................................................................................................................................28
Table 16) Volume configuration for SAP HANA single-host system with two data partitions........................................32
Table 17) Mount points for single-host system with two data partitions. .......................................................................32
Table 18) Volume configuration for SAP HANA multiple-host system with two data partitions.....................................33
Table 19) Mount points for multiple-host system with two data partitions. ....................................................................34
LIST OF FIGURES
Figure 1) SAP HANA TDI. ..............................................................................................................................................5
Figure 2) Example configuration with eight SAP HANA hosts. .......................................................................................6
Figure 3) Scaling by adding more storage capacity. .......................................................................................................6
Figure 4) Scaling with additional storage systems. .........................................................................................................7
Figure 5) Backup architecture. .......................................................................................................................................8
Figure 6) Disaster Recovery with Synchronous and Asynchronous SnapMirror Replication. .........................................9
Figure 7) Synchronous storage replication. ..................................................................................................................10
Figure 8) Storage sizing overview. ...............................................................................................................................14
Figure 9) Network configuration example. ....................................................................................................................15
Figure 10) Disk shelf connection with HDDs. ...............................................................................................................17
Figure 11) Disk shelf connection with SSDs. ................................................................................................................17
Figure 12) Aggregate layout with HDDs. ......................................................................................................................18
Figure 13) Aggregate layout with ADPv2......................................................................................................................19
Figure 14) Volume layout for SAP HANA multiple single-host systems. ......................................................................20
Figure 15) Volume layout for SAP HANA multiple-host systems. .................................................................................21
Figure 16) Add additional data volume partition. ..........................................................................................................35
3 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
1 Introduction
The NetApp FAS product family has been certified for use with SAP HANA in tailored data center
integration (TDI) projects. The certified enterprise storage system is characterized by the NetApp ONTAP
software.
This certification is currently only valid for the following models:
• FAS2620, FAS2650, FAS2720, FAS2750, FAS8200, FAS8300, FAS8700, and FAS9000
A complete list of NetApp certified storage solutions for SAP HANA can be found at the Certified and
Supported SAP HANA Hardware Directory.
This document describes the ONTAP configuration requirements for the NFS version 3 (NFSv3) protocol
or the NFS version 4 (NFSv4.0 and NFSv4.1) protocol. For the remainder of this document, NFSv4 refers
to both NFSv4.0 and NFSv4.1.
Note: The configuration described in this paper is necessary to achieve the required SAP HANA KPIs
and the best performance for SAP HANA. Changing any settings or using features not listed
herein might cause performance degradation or unexpected behavior and should only be
performed if advised by NetApp support.
The configuration guides for NetApp FAS systems using FCP and for AFF systems using NFS or FC can
be found at the following links:
• SAP HANA on NetApp FAS Systems with Fibre Channel Protocol
• SAP HANA on NetApp AFF Systems with NFS
• SAP HANA on NetApp AFF Systems with Fibre Channel Protocol
Table 1 shows the supported combinations for NFS versions, NFS locking, and the required isolation
implementations, depending on the SAP HANA database configuration. For SAP HANA single-host
systems, NFSv3 and NFSv4 are supported.
For SAP HANA multiple host systems, NetApp only supports NFSv4, while using NFSv4 locking as an
alternative to a server-specific STONITH (SAP HANA HA/DR provider) implementation.
SAP HANA NFS Version NFS Locking SAP HANA HA/DR Provider
SAP HANA single host NFSv3 Off N/A
NFSv4 On N/A
This document covers configuration recommendations for SAP HANA running on physical servers and on
virtual servers that use VMware vSphere.
For more information about using vSphere with SAP HANA, see the following links:
• Best Practices and Recommendations for Scale-Up Deployments of SAP HANA on VMware vSphere
• Best Practices and Recommendations for Scale-Out Deployments of SAP HANA on VMware
vSphere
• TR-4338: SAP HANA on VMware vSphere and NetApp FAS Systems
Note: Always refer to the relevant SAP notes for operating system configuration guidelines and HANA-
specific Linux kernel dependencies. For more information, you see SAP note 2235581: SAP
HANA Supported Operating Systems.
4 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
1.1 SAP HANA Tailored Data Center Integration
NetApp FAS storage controllers are certified in the SAP HANA TDI program using both NFS (NAS) and
FC (SAN) protocols. They can be deployed in any of the current SAP HANA scenarios such as SAP
Business Suite on HANA, S/4HANA, BW/4HANA, or SAP Business Warehouse on HANA in either single-
host or multiple-host configurations. Any server that is certified for use with SAP HANA can be combined
with NetApp certified storage solutions. See Figure 1 for an architecture overview.
For more information regarding the prerequisites and recommendations for production SAP HANA
systems, see the following SAP resources:
• SAP HANA Tailored Data Center Integration Frequently Asked Questions
• SAP HANA Storage Requirements
2 Architecture
SAP HANA hosts are connected to storage controllers by using a redundant 10GbE or faster network
infrastructure. Data communication between SAP HANA hosts and storage controllers is based on the
NFS protocol. A redundant switching infrastructure is recommended to provide fault-tolerant SAP HANA
host-to-storage connectivity in case of switch or network interface card (NIC) failure. The switches might
aggregate individual port performance with port channels in order to appear as a single logical entity at
the host level.
Different models of the FAS system product family can be mixed and matched at the storage layer to
allow for growth and differing performance and capacity needs. The maximum number of SAP HANA
hosts that can be attached to the storage system is defined by the SAP HANA performance requirements
and the model of NetApp controller used. The number of required disk shelves is only determined by the
capacity and performance requirements of the SAP HANA systems. Figure 2 shows an example
configuration with eight SAP HANA hosts attached to a storage high availability (HA) pair.
5 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Figure 2) Example configuration with eight SAP HANA hosts.
Independent of the deployed FAS system, the SAP HANA landscape can also be scaled by adding any of
the certified storage controllers to meet the desired node density (Figure 4).
6 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Figure 4) Scaling with additional storage systems.
7 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Figure 5) Backup architecture.
Storage-based Snapshot backups provide significant advantages when compared to conventional file-
based backups. These advantages include, but are not limited to, the following:
• Faster backup (a few minutes)
• Reduced recovery time objective (RTO) due to a much faster restore time on the storage layer (a few
minutes) as well as more frequent backups
• No performance degradation of the SAP HANA database host, network, or storage during backup
and recovery operations
• Space-efficient and bandwidth-efficient replication to secondary storage based on block changes
For detailed information about the SAP HANA backup and recovery solution using SnapCenter, see TR-
4614: SAP HANA Backup and Recovery with SnapCenter.
8 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Protection against failures of both the primary and the local DR site is performed by replicating the data to
a third remote DR datacenter using asynchronous SnapMirror. The RPO depends on the frequency of
replication updates and how fast they can be transferred. In theory, the distance is unlimited, but the limit
depends on the amount of data that must be transferred and the connection that is available between the
data centers. Typical RPO values are in the range of 30 minutes to multiple hours.
The RTO for both replication methods primarily depends on the time needed to start the HANA database
at the DR site and load the data into memory. With the assumption that the data is read with a throughput
of 1000MBps, loading 1TB of data would take approximately 18 minutes.
The servers at the DR sites can be used as dev/test systems during normal operation. In the case of a
disaster, the dev/test systems would need to be shut down and started as DR production servers.
Both replication methods allow to you execute DR workflow testing without influencing the RPO and RTO.
FlexClone volumes are created on the storage and are attached to the DR testing servers.
Synchronous replication offers StrictSync mode. If the write to secondary storage is not completed for any
reason, the application I/O fails, thereby ensuring that the primary and secondary storage systems are
identical. Application I/O to the primary resumes only after the SnapMirror relationship returns to InSync
status. If the primary storage fails, application I/O can be resumed on the secondary storage after failover,
with no loss of data. In StrictSync mode, the RPO is always zero.
9 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Figure 7) Synchronous storage replication.
3 Storage Sizing
The following section provides an overview of the required performance and capacity considerations
needed for sizing a storage system for SAP HANA.
Note: Contact NetApp or your NetApp partner sales representative to assist you in creating a properly
sized storage environment.
10 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
fulfill SAP HANA TDI performance KPIs. Examples include NetApp Storage Encryption (NSE)
and NetApp FlexArray® technology.
This document describes disk sizing for SAS HDDs and solid-state drives (SSDs).
HDDs
A minimum of 10 data disks (10k RPM SAS) per SAP HANA node is required to fulfill the storage
performance KPIs from SAP.
Note: This calculation is independent of the storage controller and disk shelf used as well as the
capacity requirements of the database.
Solid-State Drives
With SSDs, the number of data disks is determined by the SAS connection throughput from the storage
controllers to the SSD shelf.
The maximum number of SAP HANA hosts that can be run on a single disk shelf and the minimum
number of SSDs required per SAP HANA host were determined by running the SAP performance test
tool. This test does not consider the actual storage capacity requirements of the hosts. In addition, you
must also calculate the capacity requirements to determine the actual storage configuration needed.
• The 12Gb SAS disk shelf (DS224C) with 24 SSDs supports up to 14 SAP HANA hosts when the disk
shelf is connected with 12Gb.
• The 6Gb SAS disk shelf (DS2246) with 24 SSDs supports up to 4 SAP HANA hosts.
The SSDs and the SAP HANA hosts must be equally distributed between both storage controllers.
Table 2 summarizes the supported number of SAP HANA hosts per disk shelf.
11 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
3.3 Capacity Considerations
A detailed description of the capacity requirements for SAP HANA is in the SAP HANA Storage
Requirements white paper.
Note: The capacity sizing of the overall SAP landscape with multiple SAP HANA systems must be
determined by using SAP HANA storage sizing tools from NetApp. Contact NetApp or your
NetApp partner sales representative to validate the storage sizing process for a properly sized
storage environment.
For more information about the configuration of the SAP test tool, see SAP note 1943937 for HWCCT
(SAP HANA 1.0) and SAP note 2493172 for HCMT/HCOT (SAP HANA 2.0).
The following example shows how variables can be set for the HCMT/HCOT execution plan.
…
{
"Comment": "Log Volume: Controls whether read requests are submitted asynchronously,
default is 'on'",
"Name": "LogAsyncReadSubmit",
"Value": "on",
"Request": "false"
},
{
"Comment": "Data Volume: Controls whether read requests are submitted asynchronously,
default is 'on'",
"Name": "DataAsyncReadSubmit",
"Value": "on",
"Request": "false"
},
{
"Comment": "Log Volume: Controls whether write requests can be submitted
asynchronously",
"Name": "LogAsyncWriteSubmitActive",
"Value": "on",
"Request": "false"
},
{
"Comment": "Data Volume: Controls whether write requests can be submitted
asynchronously",
"Name": "DataAsyncWriteSubmitActive",
"Value": "on",
"Request": "false"
},
{
12 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
"Comment": "Log Volume: Controls which blocks are written asynchronously. Only relevant
if AsyncWriteSubmitActive is 'on' or 'auto' and file system is flagged as requiring asynchronous
write submits",
"Name": "LogAsyncWriteSubmitBlocks",
"Value": "all",
"Request": "false"
},
{
"Comment": "Data Volume: Controls which blocks are written asynchronously. Only relevant
if AsyncWriteSubmitActive is 'on' or 'auto' and file system is flagged as requiring asynchronous
write submits",
"Name": "DataAsyncWriteSubmitBlocks",
"Value": "all",
"Request": "false"
},
{
"Comment": "Log Volume: Maximum number of parallel I/O requests per completion queue",
"Name": "LogExtMaxParallelIoRequests",
"Value": "128",
"Request": "false"
},
{
"Comment": "Data Volume: Maximum number of parallel I/O requests per completion queue",
"Name": "DataExtMaxParallelIoRequests",
"Value": "128",
"Request": "false"
},
…
These variables must be used for the test configuration. This is usually the case with the predefined
execution plans SAP delivers with the HCMT/HCOT tool. The following example for a 4k log write test is
from an execution plan.
…
{
"ID": "D664D001-933D-41DE-A904F304AEB67906",
"Note": "File System Write Test",
"ExecutionVariants": [
{
"ScaleOut": {
"Port": "${RemotePort}",
"Hosts": "${Hosts}",
"ConcurrentExecution": "${FSConcurrentExecution}"
},
"RepeatCount": "${TestRepeatCount}",
"Description": "4K Block, Log Volume 5GB, Overwrite",
"Hint": "Log",
"InputVector": {
"BlockSize": 4096,
"DirectoryName": "${LogVolume}",
"FileOverwrite": true,
"FileSize": 5368709120,
"RandomAccess": false,
"RandomData": true,
"AsyncReadSubmit": "${LogAsyncReadSubmit}",
"AsyncWriteSubmitActive": "${LogAsyncWriteSubmitActive}",
"AsyncWriteSubmitBlocks": "${LogAsyncWriteSubmitBlocks}",
"ExtMaxParallelIoRequests": "${LogExtMaxParallelIoRequests}",
"ExtMaxSubmitBatchSize": "${LogExtMaxSubmitBatchSize}",
"ExtMinSubmitBatchSize": "${LogExtMinSubmitBatchSize}",
"ExtNumCompletionQueues": "${LogExtNumCompletionQueues}",
"ExtNumSubmitQueues": "${LogExtNumSubmitQueues}",
"ExtSizeKernelIoQueue": "${ExtSizeKernelIoQueue}"
}
},
…
13 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
3.5 Storage Sizing Process Overview
The number of disks per HANA host and the SAP HANA host density for each storage model were
determined with the SAP performance test tool.
The sizing process requires details such as the number of production and nonproduction SAP HANA
hosts, the RAM size of each host, and the backup retention of the storage-based Snapshot copies. The
number of SAP HANA hosts determines the storage controller and the number of disks required.
The size of the RAM, net data size on the disk of each SAP HANA host, and the Snapshot copy backup
retention period are used as inputs during capacity sizing.
Figure 8 summarizes the sizing process.
14 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Figure 9 shows an example with four SAP HANA hosts attached to a storage controller HA pair using a
10GbE network. Each SAP HANA host has an active-passive connection to the redundant fabric.
At the storage layer, four active connections are configured to provide 10Gb throughput for each SAP
HANA host. In addition, one spare interface is configured on each storage controller.
At the storage layer, a broadcast domain with an MTU size of 9000 is configured, and all required
physical interfaces are added to this broadcast domain. This approach automatically assigns these
physical interfaces to the same failover group. All logical interfaces (LIFs) that are assigned to these
physical interfaces are added to this failover group.
In general, it is also possible to use HA interface groups on the servers (bonds) and the storage systems
(for example, Link Aggregation Control Protocol [LACP] and ifgroups). With HA interface groups, verify
that the load is equally distributed between all interfaces within the group. The load distribution depends
on the functionality of the network switch infrastructure.
Note: Depending on the number of SAP HANA hosts and the connection speed used, different numbers
of active physical ports are needed. For details, see Table 4.
Storage Efficiency
Inline deduplication, cross-volume inline deduplication, inline compression, and inline compaction are
supported with SAP HANA in an SSD configuration.
15 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Enabling storage efficiency features in an HDD-based configuration is not supported.
Quality of Service
QoS can be used to limit the storage throughput for specific SAP HANA systems or other applications on
a shared-use controller. One use case would be to limit the throughput of development and test systems
so that they cannot influence production systems in a mixed setup.
During the sizing process, you should determine the performance requirements of a nonproduction
system. Development and test systems can be sized with lower performance values, typically in the range
of 20% to 50% of a production-system KPI as defined by SAP.
Starting with ONTAP 9, QoS is configured on the storage volume level and uses maximum values for
throughput (MBps) and the amount of I/O (IOPS).
Large write I/O has the biggest performance effect on the storage system. Therefore, the QoS throughput
limit should be set to a percentage of the corresponding write SAP HANA storage performance KPI
values in the data and log volumes.
NetApp FabricPool
NetApp FabricPool technology must not be used for active primary file systems in SAP HANA systems.
This includes the file systems for the data and log area as well as the /hana/shared file system. Doing
so results in unpredictable performance, especially during the startup of an SAP HANA system.
Using the “snapshot-only” tearing policy is possible as well as using FabricPool in general at a backup
target such as a SnapVault or SnapMirror destination.
Note: Using FabricPool for tiering Snapshot copies at primary storage or using FabricPool at a backup
target changes the required time for the restore and recovery of a database or other tasks such
as creating system clones or repair systems. Take this into consideration for planning your overall
lifecycle-management strategy, and check to make sure that your SLAs are still being met while
using this function.
FabricPool is a good option for moving log backups to another storage tier. Moving backups affects the
time needed to recover an SAP HANA database. Therefore, the option “tiering-minimum-cooling-days”
should be set to a value that places log backups, which are routinely needed for recovery, on the local
fast storage tier.
Storage Configuration
The following overview summarizes the required storage configuration steps. Each step is covered in
detail in the subsequent sections. In this section, we assume that the storage hardware is set up and that
the ONTAP software is already installed. Also, the connections between the storage ports (10GbE or
faster) and the network must already be in place.
1. Check the correct SAS stack configuration as described in “Disk Shelf Connection.”
2. Create and configure the required aggregates as described in “Aggregate Configuration.”
3. Create a storage virtual machine (SVM) as described in “Storage Virtual Machine Configuration.”
4. Create LIFs as described in “Logical Interface Configuration.”
5. Create volumes within the aggregates as described in “Volume Configuration for SAP HANA Single-
Host Systems” and “Volume Configuration for SAP HANA Multiple-Host Systems.”
6. Set the required volume options as described in “Volume Options.”
16 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
7. Set the required options for NFSv3 as described in “NFS Configuration for NFSv3” or for NFSv4 as
described in “NFS Configuration for NFSv4.”
8. Mount the volumes to namespace and set export policies as described in “Mount Volumes to
Namespace and Set Export Policies.”
With SSDs, a maximum of one disk shelf can be connected to one SAS stack to provide the required
performance for the SAP HANA hosts, as shown in Figure 11. The disks within each shelf must be
distributed equally to both controllers of the HA pair. With the DS224C disk shelf, quad-path SAS cabling
can also be used, but is not required.
Aggregate Configuration
In general, you must configure two aggregates per controller, independent of the disk shelf or drive
technology (SSD or HDD) that is used. For FAS2000 series systems, one data aggregate is enough.
17 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Aggregate Configuration with HDDs
Figure 12 shows a configuration for eight SAP HANA hosts. Four SAP HANA hosts are attached to each
storage controller. Two separate aggregates, one at each storage controller, are configured. Each
aggregate is configured with 4 × 10 = 40 data disks (HDDs).
18 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Figure 13) Aggregate layout with ADPv2.
Note: Sharing one LIF between different SAP HANA hosts might require a remount of data or log
volumes to a different LIF. This change avoids performance penalties if a volume is moved to a
different storage controller.
Development and test systems can use more data and volume mounts or LIFs on a physical network
interface.
For production, development, and test systems, the /hana/shared file system can use the same LIF as
the data or log volume.
19 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Volume Configuration for SAP HANA Single-Host Systems
Figure 14 shows the volume configuration of four single-host SAP HANA systems. The data and log
volumes of each SAP HANA system are distributed to different storage controllers. For example, volume
SID1_data_mnt00001 is configured on controller A, and volume SID1_log_mnt00001 is configured
on controller B.
Note: If only one storage controller of an HA pair is used for the SAP HANA systems, data and log
volumes can also be stored on the same storage controller.
Note: If the data and log volumes are stored on the same controller, access from the server to the
storage must be performed with two different LIFs: one LIF to access the data volume and one to
access the log volume.
Figure 14) Volume layout for SAP HANA multiple single-host systems.
For each SAP HANA DB host, a data volume, a log volume, and a volume for /hana/shared are
configured. Table 5 shows an example configuration for single-host SAP HANA systems.
20 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Purpose Aggregate 1 at Aggregate 2 at Aggregate 1 at Aggregate 2 at
Controller A Controller A Controller B Controller b
Data, log, and Log volume: Shared volume: Data volume:
shared volumes SID4_log_mnt00001 SID4_shared SID4_data_mnt00001
for system SID4
Table 6 shows an example of the mount point configuration for a single-host system. To place the home
directory of the sidadm user on the central storage, the /usr/sap/SID file system should be mounted
from the SID_shared volume.
SID_log_mnt00001 /hana/log/SID/mnt00001
21 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
For each SAP HANA host, a data volume and a log volume are created. The /hana/shared volume is
used by all hosts of the SAP HANA system. Table 7 shows an example configuration for a multiple-host
SAP HANA system with four active hosts.
Table 8 shows the configuration and the mount points of a multiple-host system with four active SAP
HANA hosts. To place the home directories of the sidadm user of each host on the central storage, the
/usr/sap/SID file systems are mounted from the SID_shared volume.
22 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Volume Options
You must verify and set the volume options listed in Table 9 on all SVMs. For some of the commands,
you must switch to the advanced privilege mode within ONTAP.
Action Command
Disable visibility of Snapshot directory vol modify -vserver <vserver-name> -volume <volname> -
snapdir-access false
Disable automatic Snapshot copies vol modify –vserver <vserver-name> -volume <volname> -
snapshot-policy none
Action Command
Enable NFSv3 nfs modify -vserver <vserver-name> v3.0 enabled
Action Command
Enable NFSv4 nfs modify -vserver <vserver-name> -v4.1
enabled
23 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Action Command
-tcp-max-xfer-size 1048576
set admin
Disable NFSv4 access control lists (ACLs) nfs modify -vserver <vserver_name> -v4.1-
acl disabled
Note: For NFS version 4.0, replace 4.1 with 4.0 in the previous commands. Although NFSv4.0 is
supported, using NFSv4.1 is preferred.
Note: The NFSv4 domain ID must be set to the same value on all Linux servers (/etc/idmapd.conf)
and SVMs, as described in “SAP HANA Installation Preparations for NFSv4.”
Note: If you are using NFSV4.1, then pNFS is enabled and used by default (recommended).
Set the NFSv4 lease time at the SVM as shown in Table 12 if SAP HANA multiple-host systems are used.
Table 12) Additional NFSv4 options for SAP HANA multiple-host systems.
Action Command
Set the NFSv4 lease time. set advanced
nfs modify -vserver <vserver_name> -v4-
lease-seconds 10
set admin
Starting with HANA 2.0 SPS4, HANA provides parameters to control failover behavior. Instead of setting
the lease time at the SVM level, NetApp recommends using these HANA parameters. The parameters
are within nameserver.ini as shown in Table 13. Keep the default retry interval of 10 seconds within
these sections.
24 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Table 13) Setting SAP HANA failover parameters.
failover normal_retries 9
distributed_watchdog deactivation_retries 11
distributed_watchdog takeover_retries 9
25 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Configuration Parameter for Red Hat Enterprise Linux 7.2 or Later
You must adjust additional kernel and configuration parameters at each SAP HANA host must for the
workload generated by SAP HANA.
If NFSv3 is used for connecting the storage, you must set the parameter
sunrpc.tcp_max_slot_table_entries in/etc/modprobe.d/sunrpc.conf. If the file does not
exist, you must first create it by adding the following line:
options sunrpc tcp_max_slot_table_entries=128
Starting with Red Hat Enterprise Linux 7.2, you must set the kernel parameters in a configuration file in
the /etc/sysctl.d directory. For example, a configuration file with the name 91-NetApp-HANA.conf
must be created.
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.rmem_default = 16777216
net.core.wmem_default = 16777216
net.core.optmem_max = 16777216
net.ipv4.tcp_rmem = 65536 16777216 16777216
net.ipv4.tcp_wmem = 65536 16777216 16777216
net.core.netdev_max_backlog = 300000
net.ipv4.tcp_slow_start_after_idle=0
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
26 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
stlrx300s8-50:/ # mkdir -p /hana/data/NF2/mnt00001
stlrx300s8-50:/ # mkdir -p /hana/log/NF2/mnt00001
stlrx300s8-50:/ # mkdir -p /hana/shared
stlrx300s8-50:/ # mkdir -p /usr/sap/NF2
• For a multiple-host system, create mount points and set the permissions on all worker and standby
hosts.
The following example commands are for a 2+1 multiple-host HANA system.
− First worker host:
stlrx300s8-50:~ # mkdir -p /hana/data/NF2/mnt00001
stlrx300s8-50:~ # mkdir -p /hana/data/NF2/mnt00002
stlrx300s8-50:~ # mkdir -p /hana/log/NF2/mnt00001
stlrx300s8-50:~ # mkdir -p /hana/log/NF2/mnt00002
stlrx300s8-50:~ # mkdir -p /hana/shared
stlrx300s8-50:~ # mkdir -p /usr/sap/NF2
− Standby host:
stlrx300s8-52:~ # mkdir -p /hana/data/NF2/mnt00001
stlrx300s8-52:~ # mkdir -p /hana/data/NF2/mnt00002
stlrx300s8-52:~ # mkdir -p /hana/log/NF2/mnt00001
stlrx300s8-52:~ # mkdir -p /hana/log/NF2/mnt00002
stlrx300s8-52:~ # mkdir -p /hana/shared
stlrx300s8-52:~ # mkdir -p /usr/sap/NF2
27 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Table 14) NFS versions to be used.
File systems SAP HANA single host SAP HANA multiple hosts
/hana/data/SID/mnt0000* NFSv3 or NFSv4 NFSv4
Table 15 shows the mount options for the various NFS versions and ONTAP releases. The common
parameters are independent of the NFS and ONTAP versions.
For NFSv3, you must switch off NFS locking to avoid NFS lock cleanup operations if there is a software or
server failure.
With ONTAP 9, the NFS transfer size can be configured up to 1MB. Specifically, with 40GbE or faster
connections to the storage system, you must set the transfer size to 1MB to achieve the expected
throughput values.
Note: To improve read performance with NFSv3, it is recommended that you use the nconnect=n
mount option, which is available with SUSE Linux Enterprise Server 12 SP4 or later.
Note: Performance tests show that nconnect=8 provides good results.
Note: For NFSv4, the nconnect option is not supported by NetApp for SAP HANA.
To mount the file systems during system boot with the /etc/fstab configuration file, complete the
following steps:
The following example shows a single host SAP HANA database with SID=NF2 using NFSv3 and an NFS
transfer size of 1MB.
1. Add the required file systems to the /etc/fstab configuration file.
stlrx300s8-50:/ # cat /etc/fstab
<storage-vif-data01>:/NF2_data_mnt00001 /hana/data/NF2/mnt00001 nfs
rw,vers=3,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,nolock 0 0
<storage-vif-log01>:/NF2_log_mnt00001 /hana/log/NF2/mnt00001 nfs
rw,vers=3,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,nolock 0 0
<storage-vif-data01>:/NF2_shared/usr-sap /usr/sap/NF2 nfs
rw,vers=3,hard,timeo=600,rsize=1048576,wsize=1048576,bg, noatime,nolock 0 0
<storage-vif-data01>:/NF2_shared/shared /hana/shared nfs
rw,vers=3,hard,timeo=600,rsize=1048576,wsize=1048576,bg, noatime,nolock 0 0
28 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Note: The /usr/sap/NF2 file system is different for each database host. The following example shows
/NF2_shared/usr_sap_host1.
stlrx300s8-5:/ # cat /etc/fstab
<storage-vif-data01>:/NF2_data_mnt00001 /hana/data/NF2/mnt00001 nfs rw, vers=4
minorversion=1,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,lock 0 0
<storage-vif-data02>:/NF2_data_mnt00002 /hana/data/NF2/mnt00002 nfs rw, vers=4
minorversion=1,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,lock 0 0
<storage-vif-log01>:/NF2_log_mnt00001 /hana/log/NF2/mnt00001 nfs rw, vers=4
minorversion=1,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,lock 0 0
<storage-vif-log02>:/NF2_log_mnt00002 /hana/log/NF2/mnt00002 nfs rw, vers=4
minorversion=1,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,lock 0 0
<storage-vif-data02>:/NF2_shared/usr-sap_host1 /usr/sap/NF2 nfs
rw,vers=3,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,nolock 0 0
<storage-vif-data02>:/NF2_shared/shared /hana/shared nfs
rw,vers=3,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,nolock 0 0
Storage Controllers
The user ID and group ID must be the same on the SAP HANA hosts and the storage controllers. The
group and user are created by entering the following commands on the storage cluster:
vserver services unix-group create -vserver <vserver> -name <group name> -id <group id>
vserver services unix-user create -vserver <vserver> -user <user name> -id <user-id> -primary-gid
<group id>
Additionally, set the group ID of the UNIX user root of the SVM to 0.
vserver services unix-user modify -vserver <vserver> -user root -primary-gid 0
29 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
4.6 I/O Stack Configuration for SAP HANA
Starting with SAP HANA 1.0 SPS10, SAP introduced parameters to adjust the I/O behavior and optimize
the database for the file and storage systems used.
NetApp conducted performance tests to define the ideal values. The following table lists the optimal
values inferred from the performance tests.
Parameter Value
max_parallel_io_requests 128
async_read_submit on
async_write_submit_active on
async_write_submit_blocks all
For SAP HANA 1.0 versions up to SPS12, these parameters can be set during the installation of the SAP
HANA database, as described in SAP note 2267798: Configuration of the SAP HANA Database During
Installation Using hdbparam.
Alternatively, the parameters can be set after the SAP HANA database installation by using the
hdbparam framework.
nf2adm@stlrx300s8-50:/usr/sap/NF2/HDB00> hdbparam --paramset fileio.max_parallel_io_requests=128
nf2adm@stlrx300s8-50:/usr/sap/NF2/HDB00> hdbparam --paramset fileio.async_write_submit_active=on
nf2adm@stlrx300s8-50:/usr/sap/NF2/HDB00> hdbparam --paramset fileio.async_read_submit=on
nf2adm@stlrx300s8-50:/usr/sap/NF2/HDB00> hdbparam --paramset fileio.async_write_submit_blocks=all
Starting with SAP HANA 2.0, hdbparam has been deprecated, and the parameters have been moved to
global.ini. The parameters can be set using SQL commands or SAP HANA Studio. For more details,
see SAP note 2399079: Elimination of hdbparam in HANA 2. You can also set the parameters within
global.ini as shown in the following text:
SS3adm@stlrx300s8-6: /usr/sap/SS3/SYS/global/hdb/custom/config> cat global.ini
…
[fileio]
async_read_submit = on
async_write_submit_active = on
max_parallel_io_requests = 128
async_write_submit_blocks = all
…
This creates a new data volume after the 8,000GB limit is reached. SAP note 240005 question 15
provides more information.
30 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Install on Multiple-Host System
To install SAP HANA on a multiple-host system, complete the following steps:
1. Using the SAP hdbclm installation tool, start the installation by running the following command at one
of the worker hosts. Use the addhosts option to add the second worker (stlrx300s8-51) and the
standby host (stlrx300s8-52).
stlrx300s8-50:/mnt/hwval/Software/SAP-Installation/HANA-DB-
20SPS3/51053061/DATA_UNITS/HDB_LCM_LINUX_X86_64# ./hdblcm --action=install --addhosts=stlrx300s8-
51:role=worker,stlrx300s8-52:role=standby
31 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
1 | all | All components
2 | server | No additional components
3 | client | Install SAP HANA Database Client version 2.3.78.1521836270
4 | studio | Install SAP HANA Studio version 2.3.35.000000
5 | smartda | Install SAP HANA Smart Data Access version 2.00.3.000.0
6 | xs | Install SAP HANA XS Advanced Runtime version 1.0.82.303870
7 | afl | Install SAP HANA AFL (incl.PAL,BFL,OFL) version 2.00.030.0001.1522223444
8 | eml | Install SAP HANA EML AFL version 2.00.030.0001.1522223444
9 | epmmds | Install SAP HANA EPM-MDS version 2.00.030.0001.1522223444
2. Verify that the installation tool installed all selected components at all worker and standby hosts.
4.9 Adding Additional Data Volume Partitions for SAP HANA Single-Host
Systems
Starting with SAP HANA 2.0 SPS4, you can configure additional data volume partitions, which allows you
to configure two or more volumes for the data volume of an SAP HANA tenant database. You can also
scale beyond the size and performance limits of a single volume.
Note: Using two or more individual volumes for the data volume is available for SAP HANA single-host
and multiple-host systems. You can add additional data volume partitions at any time, but doing
so might require a restart of the SAP HANA database.
[customizable_functionalities]
persistence_datavolume_partition_multipath = true
Restart the database to enable the feature. To avoid restarting the database, add the parameter to
global.ini with SAP HANA Studio using Systemdb configuration.
Table 16) Volume configuration for SAP HANA single-host system with two data partitions.
Table 17 shows an example of the mount point configuration for a single-host system with two data
volume partitions.
Table 17) Mount points for single-host system with two data partitions.
32 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Junction Path Directory Mount Point at HANA Host
SID_data2_mnt00001 /hana/data2/SID/mnt00001
SID_log_mnt00001 /hana/log/SID/mnt00001
Create the new data volume and mount it to the namespace using either ONTAP System Manager or the
ONTAP cluster command line interface.
Table 18) Volume configuration for SAP HANA multiple-host system with two data partitions.
Table 19 shows an example of the mount point configuration for a single-host system with two data
volume partitions.
33 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Table 19) Mount points for multiple-host system with two data partitions.
Create the new data volume and mount it to the namespace using either ONTAP System Manager or the
ONTAP cluster command line interface.
Host Configuration
In addition to the tasks described in section 4.4 “Host Setup,” you must create the additional mount points
and fstab entries for the new additional data volume(s), and you must mount the new volumes.
3. Create additional mount points:
• For a single-host system, create mount points and set the permissions on the database host.
stlrx300s8-50:/ # mkdir -p /hana/data2/SID/mnt00001
stlrx300s8-50:/ # chmod –R 777 /hana/data2/SID
• For a multiple-host system, create mount points and set the permissions on all worker and
standby hosts. The following example commands are for a 2+1 multiple-host HANA system.
− First worker host:
stlrx300s8-50:~ # mkdir -p /hana/data2/SID/mnt00001
stlrx300s8-50:~ # mkdir -p /hana/data2/SID/mnt00002
stlrx300s8-50:~ # chmod -R 777 /hana/data2/SID
34 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
stlrx300s8-51:~ # mkdir -p /hana/data2/SID/mnt00001
stlrx300s8-51:~ # mkdir -p /hana/data2/SID/mnt00002
stlrx300s8-51:~ # chmod -R 777 /hana/data2/SID
− Standby host:
stlrx300s8-51:~ # mkdir -p /hana/data2/SID/mnt00001
stlrx300s8-51:~ # mkdir -p /hana/data2/SID/mnt00002
stlrx300s8-51:~ # chmod -R 777 /hana/data2/SID
4. Add the additional file systems to the /etc/fstab configuration file on all hosts. An example for a
single-host system using NFSv4.1 is as follows:
<storage-vif-data02>:/SID_data2_mnt00001 /hana/data2/SID/mnt00001 nfs rw, vers=4
minorversion=1,hard,timeo=600,rsize=1048576,wsize=1048576,bg,noatime,lock 0 0
Note: Use a different storage virtual interface for connecting to each data volume to make sure that
different TCP sessions are used for each volume.
5. To mount the file systems, run the mount –a command.
35 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
• SAP Certified Enterprise Storage Hardware for SAP HANA
https://www.sap.com/dmc/exp/2014-09-02-hana-hardware/enEN/enterprise-storage.html
• SAP HANA Storage Requirements
http://go.sap.com/documents/2015/03/74cdb554-5a7c-0010-82c7-eda71af511fa.html
• SAP HANA Tailored Data Center Integration Frequently Asked Questions
www.sap.com/documents/2016/05/e8705aae-717c-0010-82c7-eda71af511fa.html
• TR-4646: SAP HANA Disaster Recovery with Asynchronous Storage Replication Using SnapCenter
4.0 SAP HANA Plug-In
www.netapp.com/us/media/tr-4646.pdf
• TR-4614: SAP HANA Backup and Recovery with SnapCenter
www.netapp.com/us/media/tr-4614.pdf
• TR-4338: SAP HANA on VMware vSphere with NetApp FAS and AFF Systems
www.netapp.com/us/media/tr-4338.pdf
• TR-4667: Automating SAP System Copies Using the SnapCenter 4.0 SAP HANA Plug-In
www.netapp.com/us/media/tr-4667.pdf
• NetApp Documentation Centers
https://www.netapp.com/us/documentation/index.aspx
• NetApp FAS Storage System Resources
https://mysupport.netapp.com/info/web/ECMLP2676498.html
• SAP HANA Software Solutions
www.netapp.com/us/solutions/applications/sap/index.aspx#sap-hana
Version History
Version Date Document Version History
Version 1.0 April 2014 Initial version
Version 2.0 August 2014 Updated disk sizing selection and added SSD configuration
Added Red Hat Enterprise Linux OS configuration
Added SAP HANA storage connector information
Added information about VMware configuration
Version 2.3 March 2015 Added new STONITH implementation for SAP HANA SPS9
Added compute node setup and HANA installation section
36 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Version Date Document Version History
Version 4.0 February 2017 New NetApp storage systems and disk shelves
New features of ONTAP 9
Support for 40GbE
New OS releases (SUSE Linux Enterprise Server12 SP1 and
Red Hat Enterprise Linux 7.2)
New SAP HANA release
Version 5.1 September 2019 New OS releases (SUSE Linux Enterprise Server 12 SP4,
SUSE Linux Enterprise Server 15, and Red Hat Enterprise Linux
7.6)
Max data volume size
Minor changes
Version 5.4 May 2020 Introduced multiple data partition features available since SAP
HANA 2.0 SPS4
37 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.
Refer to the Interoperability Matrix Tool (IMT) on the NetApp Support site to validate that the exact
product and feature versions described in this document are supported for your specific environment. The
NetApp IMT defines the product components and versions that can be used to construct configurations
that are supported by NetApp. Specific results depend on each customer’s installation in accordance with
published specifications.
Copyright Information
Copyright © 2020 NetApp, Inc. All rights reserved. Printed in the U.S. No part of this document covered
by copyright may be reproduced in any form or by any means—graphic, electronic, or mechanical,
including photocopying, recording, taping, or storage in an electronic retrieval system—without prior
written permission of the copyright owner.
Software derived from copyrighted NetApp material is subject to the following license and disclaimer:
THIS SOFTWARE IS PROVIDED BY NETAPP “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WHICH ARE HEREBY
DISCLAIMED. IN NO EVENT SHALL NETAPP BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
NetApp reserves the right to change any products described herein at any time, and without notice.
NetApp assumes no responsibility or liability arising from the use of products described herein, except as
expressly agreed to in writing by NetApp. The use or purchase of this product does not convey a license
under any patent rights, trademark rights, or any other intellectual property rights of NetApp.
The product described in this manual may be protected by one or more U.S. patents, foreign patents, or
pending applications.
RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to
restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software
clause at DFARS 252.277-7103 (October 1988) and FAR 52-227-19 (June 1987).
Trademark Information
NETAPP, the NETAPP logo, and the marks listed at http://www.netapp.com/TM are trademarks of
NetApp, Inc. Other company and product names may be trademarks of their respective owners.
TR-4290-0620
38 SAP HANA on NetApp FAS Systems with NFS—Configuration Guide © 2020 NetApp, Inc. All rights reserved.