After completing this section, you should be able to identify the supported high availability scenarios for SAP HANA, SAP SAP S/4HANA, and SAP NetWeaver.
This section describes SAP architectures that RHEL HA for SAP solutions supports.
SAP HANA System Replication (HSR) is a built-in high availability and disaster recovery feature to support business continuity. With HSR, you can copy and continuously synchronize a SAP HANA database to a secondary site in the same or another data center.
Data is constantly preloaded on the secondary system to minimize the recovery time objective (RTO).
However, the failover is not automated, and therefore it needs a third-party cluster solution to monitor the health of the HANA database and to trigger failover when failure is detected. The automation is achieved with the Red Hat Enterprise Linux HA add-on. The solution is called Automated SAP HANA System Replication, which is now supported in HANA Scale-Up and Scale-Out.
| Supported scenario | Notes |
|---|---|
| Two-node cluster only | Pacemaker supports only two-node. |
| MDC (Multiple Database Containers) | Supported by resource-agents-sap-hana-3.9.5-54.el7_2.22 and later versions. |
| Performance-Optimized | The secondary site is not active to client/application servers (standby). |
| Cost-Optimized | Supports a QA/Test instance that runs on the secondary site (Cost-Optimized). A QA/Test instance is shut down first during the failover of Prod. |
| Active/Active in HANA 2.0 | Active-Active Read-Enabled: In HANA 2.0, the secondary instance can take Read-Only inquiries. |
| Replication Chain | Multi-tier system replication or replication chains are possible, but the cluster cannot manage the tertiary site. |
Red Hat Support Policies for Managing SAP HANA in a Cluster
In general, RHEL High Availability is packaged with agents to manage applications and resources of different types, and users can also deploy their own scripts or agents. Red Hat might have specific policies for individual resources or for applications that a cluster manages. For more details, refer to the Support Policies for RHEL High Availability Clusters Knowledge Base article, https://access.redhat.com/articles/2912891#cluster_resources. In the context of SAP HANA on RHEL 8 and later versions, users must adhere to additional requirements to be eligible for support from Red Hat with the appropriate product support subscriptions.
For example, the following supported releases of resource-agents-sap-hana and versions of SAP HANA for Scale-Up systems
are required when managed by RHEL HA Pacemaker clusters on RHEL 8:
RHEL 8.0 (x86_64, ppc64le) (HANA 2.0 SPS04 only, starting with revision 40): resource-agents-sap-hana-4.1.1-17.el8_0.6
RHEL 8.1 (x86_64, ppc64le) (HANA 2.0 SPS04 revision 45 and later): resource-agents-sap-hana-0.154.0-1.el8_1.1
RHEL 8.2 (x86_64, ppc64le) (HANA 2.0 SPS04 revision 48.02 and HANA 2.0 SPS05 revision 52 and later): resource-agents-sap-hana-0.154.0-2
RHEL 8.4 (x86_64) (HANA 2.0 SPS05 revision 55 and later): resource-agents-sap-hana-0.154.0-2.el8_4.1.
Support for RHEL 8.4 on ppc64le architecture is expected to be added later, according to a support matrix, https://wiki.scn.sap.com/wiki/display/ATopics/Technical+Resources+for+SAP+HANA+and+Data+Hub+on+Red+Hat, on an SAP wiki.
Red Hat subscriptions for SAP HANA support: Red Hat provides support for RHEL High Availability resource agents that manage SAP HANA deployments through the RHEL for SAP Solutions subscription. One of these subscriptions for each cluster node is required for Red Hat to assist with RHEL High Availability management of SAP HANA.
Supported platforms for SAP HANA on RHEL High Availability:
Red Hat support for its software, for the SAP HANA solution stack for Scale-Up/Scale-Out System Replication environments, including RHEL High Availability and its resource agents for SAP software, largely follows the policies for RHEL High Availability and RHEL.
Support Policies for RHEL High Availability Clusters: https://access.redhat.com/articles/2912891
How Do I Verify If a Particular Red Hat Enterprise Linux Version Is Supported on My Hardware? https://access.redhat.com/solutions/60940
For the list of x86_64 and IBM POWER servers, storage systems, and cloud instance types that are certified for running SAP HANA Scale-Up and Scale-Out installations, see the Certified and Supported SAP HANA Hardware Directory at https://www.sap.com/dmc/exp/2014-09-02-hana-hardware/enEN/index.html.
In public-cloud deployments, Red Hat support for this SAP HANA solution stack is limited to only the following cloud platforms:
Amazon Web Services Elastic Cloud (AWS EC2)
Microsoft Azure
Google Cloud Platform
Red Hat does not yet officially support other cloud provider platforms. However, those platforms might already have been tested.
To run SAP HANA on another cloud platform, contact Red Hat Support for more information. For general information about using SAP on RHEL in cloud environments, see SAP Offerings on Certified Cloud Providers at https://access.redhat.com/articles/3751271. The entire environment stack must be supported for proper functioning of SAP environments.
Supported SAP HANA Deployment Types
Single Database Deployments: https://help.sap.com/viewer/eb3777d5495d46c5b2fa773206bbfb46/2.0.01/en-US/1226cbd062364ec6bf91d297044f3327.html
Multiple Components One Database (MCOD): https://help.sap.com/viewer/eb3777d5495d46c5b2fa773206bbfb46/2.0.01/en-US/cc2e6cdc54f34a07a8cbf5cea1a73d8a.html
Multiple Database Containers (MDC): https://help.sap.com/viewer/eb3777d5495d46c5b2fa773206bbfb46/2.0.01/en-US/0baadba82dd9407cbb852ae98f49f6bd.html
Multiple Components One System(MCOS): https://help.sap.com/viewer/eb3777d5495d46c5b2fa773206bbfb46/2.0.01/en-US/b2751fd43bec41a9a14e01913f1edf18.html
MCOS is supported only if all running databases on the hosts are replicated, and if the replication is always to the same secondary node (for Scale-Up only).
Active/Active (Read Enabled): https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.03/en-US/fe5fc53706a34048bf4a3a93a5d7c866.html
SAP HANA System Replication setups are possible with SAP HANA 2.0 by using version 0.152.17 or later of the SAPHana, SAPHanaTopology, and SAPHanaController resource agents.
To enable these setups, the additional secondary IPs and the appropriate colocation constraints must be added to manage the other IP addresses for the requirement (Scale-Up or Scale-Out).
Multitier System Replication, https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.02/en-US/f730f308fede4040bcb5ccea6751e74d.html, is supported for SAP HANA Scale-Up and SAP HANA Scale-Out System Replication HA setups. This replication is possible only if additional SAP HANA instances are not managed by an HA cluster. The HANA instances that run outside the cluster must be registered manually and be re-registered after each takeover.
Multi-Target System Replication, https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.03/en-US/ba457510958241889a459e606bbcf3d3.html, is supported for SAP HANA Scale-Out System Replication HA setups. For SAP HANA Scale-Up System Replication HA setups, this replication is possible only if additional SAP HANA instances are not managed by an HA cluster. Then, the HANA instances that run outside the cluster must be registered manually and be re-registered after each takeover.
Additional Technical Requirements for SAP HANA System Replication HA Deployments
The following conditions apply for Red Hat to provide support:
2-node clusters are supported for SAP HANA Scale-Up System Replication environments.
Up to 16/32-node clusters (depending on the Pacemaker version) are supported for SAP HANA Scale-Out System Replication environments.
UNIX users and groups that SAP HANA uses must be identically defined on all nodes. (They must use the same UIDs and GIDs, home directories, and so on.)
The SAP HANA instances on all nodes must be configured with the same SAP Identifier (SID).
Use of Full Sync Replication is possible: https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.03/en-US/52913ed4a8db41aebef3ce4563c6f089.html However, because of the way that Full Sync Replication works, some cluster functions are restricted. For example, if Full Sync Replication is enabled, then the automatic start of the HANA instances on both nodes when the cluster is started will not work, and the HANA instance on the secondary node must be started manually for the cluster to resume operation. To check the Full Sync Replication state, you can run the following command as a SAP HANA administrative user:
*hdbcons -e hdbindexserver "replication info"|egrep "(ReplicationFullSync|enable_full_sync)"*
If the cluster nodes are installed in different data centers or data center areas, then the environment must match the defined SAP requirements. See the How to Perform System Replication for SAP HANA guide at https://www.sap.com/documents/2013/10/26c02b58-5a7c-0010-82c7-eda71af511fa.html, in section 4.2, "Distance Between Data Centers". The environment must also match the Support Policies for RHEL High Availability Clusters - Deployments Spanning Multiple Sites, at https://access.redhat.com/articles/2800571.
Time on all cluster nodes must be in sync, by using NTP or some other time synchronization method. Resource agents require the time to be the same on all nodes for proper operation. Also check Configuring NTP Using the chrony Suite at https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/configuring_basic_system_settings/using-chrony-to-configure-ntp_configuring-basic-system-settings.
Each cluster node must have a local installation of SAPHostAgent, and the version of SAPHostAgent across the cluster must be the same.
If it is not already installed, then SAPHostAgent is installed with the HANA installation.
The following conditions also apply for Red Hat to provide support for Cost-Optimized SAP HANA environments:
2-node clusters only.
For the SAP HANA instances that the system replication will be established between, both instances must have the same SID and instance number. The DEV/QA SAP HANA instance must have a different SID from the production instances.
Hostname resolution of the cluster node names and IP addresses must be possible locally on all cluster nodes.
The network configuration must follow the Red Hat guidelines for cluster setups and the SAP guidelines for SAP HANA deployments. For example, if the cluster nodes are installed in different data centers or data center areas, then the environment must match the SAP-defined requirements for HANA system replication, as described in chapter 4.2, "Distance Between Data Centers" in the SAP How to Perform System Replication for SAP HANA guide at "https://www.sap.com/documents/2013/10/26c02b58-5a7c-0010-82c7-eda71af511fa.html".
The environment must also match the RHEL HA add-on stretch cluster requirements (see Support for Red Hat Enterprise Linux High Availability Cluster Stretch and Multi-Site Architectures), specifically the network latencies between the nodes and the recommended maximum distance. * Access to the SAP Service Marketplace is needed to download SAP installation media, installation guides, and so on. * The current set of SAP HANA installation media is needed. See the SAP HANA Installation Guides for the correct list of installation media. * The latest and the same version of SAP HOSTAGENT must be installed on all nodes.
If you are installing SAP software, then the current version of SAPHOSTAGENT is installed or updated.
Performance Optimized
In the Performance Optimized scenario, the secondary HANA database is configured to preload the tables into memory. The takeover time is normally fast. However, because the secondary HANA database is dedicated to system replication and is not used for client requests, this setup is expensive in terms of hardware costs.
Configuration Guides
On-Premise: Automated SAP HANA System Replication in Scale-Up in Pacemaker Cluster: https://access.redhat.com/articles/3004101
AWS: Configuring SAP HANA Scale-Up System Replication with the RHEL HA Add-On on Amazon Web Services (AWS): https://access.redhat.com/articles/3569621
Azure: High Availability of SAP HANA on Azure VMs on Red Hat Enterprise Linux: https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/sap-hana-high-availability-rhel
Google Cloud Platform (GCP): HA Cluster Configuration Guide for SAP HANA on RHEL: https://cloud.google.com/solutions/sap/docs/sap-hana-ha-config-rhel
Cost Optimized
The Cost Optimized scenario supports an additional TEST/QA HANA database on the secondary site, to serve client inquiries. Because the resource must be allocated to the TEST/QA instance, the Production HANA database cannot be preloaded. Before takeover, the TEST/QA instance must be shut down first. The takeover time is therefore longer than for Performance Optimized . See also Configuring Cost-Optimized SAP S/4HANA ASCS/ERS/HDB with Standalone Enqueue Server 2 (ENSA 2) in a Pacemaker Cluster: https://access.redhat.com/articles/6896831
HANA 2 Active-Active (Read-Enabled)
In HANA 2.0, the secondary instance can take Read-Only inquiries. For this purpose, a second virtual IP is used on the secondary site.
Replication Chain
Multi-tier system replication is possible, and is also known as a replication chain, but the cluster cannot manage the tertiary site.
| Supported scenario | Description |
|---|---|
| Performance Optimized | The secondary site is not active to client or application servers. |
| Multi Target Replication | The primary site is replicated to two or more secondary sites. |
| Active/Active (Read-Enabled) | The secondary site can be used for read-only queries. |
Configuration Guides for Multi Target Replication with Active/Active (Read-Enabled)
On-Premise: Red Hat Enterprise Linux HA Solution for SAP HANA Scale-Out and System Replication: https://access.redhat.com/solutions/4386601
AWS: Configuring SAP HANA Scale-Out System Replication with the RHEL HA Add-On on Amazon Web Services (AWS): https://access.redhat.com/articles/6093611
MTR: Automating SAP HANA Multi Target System Replication in a Pacemaker-based cluster on Red Hat Enterprise Linux (RHEL): https://access.redhat.com/articles/6113261
Active/Active (Read-Enabled): Red Hat Enterprise Linux HA Solution for SAP HANA Scale-Out and System Replication: https://access.redhat.com/sites/default/files/attachments/v8_ha_solution_for_sap_hana_scale_out_system_replication_1.pdf
Scale-Out HANA 2 with Active/Active (Read-Enabled)
In HANA 2.0, the secondary instance can take Read-Only inquiries. This setup supports a second virtual IP on the secondary site.
For more details, see the "Adding a Secondary Virtual IP Address Resource for Active/Active (Read-Enabled) Setup" chapter in Red Hat Enterprise Linux HA Solution for SAP HANA Scale-Out and System Replication.
For information, see Active/Active (Read-Enabled): https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.03/en-US/fe5fc53706a34048bf4a3a93a5d7c866.html.
Scale-Out Multi Target Replication
Starting with HANA 2.0 SPS 04, Multi Target Replication is supported in a cluster environment. The primary site is replicated to a secondary site and also to a third site to meet other availability requirements. In terms of failure, this additional third site is automatically registered to the new primary site, which is the former secondary site. For more details, see Automating SAP HANA Multi Target System Replication in a Pacemaker-based Cluster on Red Hat Enterprise Linux (RHEL): https://access.redhat.com/articles/6113261 and Multi Target Replication: https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.03/en-US/ba457510958241889a459e606bbcf3d3.html.
This section describes various ENSA 2 architectures that RHEL HA for SAP solutions can support.
Standalone Enqueue Server, a component of Application Server ABAP, is a mechanism to ensure the high availability of the lock table and its entries.
Standalone Enqueue Server has evolved into generation 2 since NetWeaver 7.51, and is known as Standalone Enqueue Server 2, or ENSA2. In ENSA2, if the ASCS failed, then it can start on a separate node in the cluster, and can copy the lock entries from the enqueue replicator 2.
Since ABAP platform 1809, the Standalone Enqueue Server 2 (ENSA2) is the default standard.
| Supported scenario | Description |
|---|---|
| Multi-node cluster | Because in ENSA2, ASCS does not have to follow ERS, it makes a multi-node cluster possible. |
| Two-node cluster | An upgraded two-node cluster can easily switch the setup from ENSA1 to ENSA2. |
A new installation can take this opportunity to design the architecture, with a choice between a multi-node cluster or a two-node cluster. The following diagram shows the architecture diagram of a typical 3-node cluster. More nodes can be added, based on a customer's data center needs.
On-Premise: Configure SAP S/4HANA ASCS/ERS with Standalone Enqueue Server 2 (ENSA2) in Pacemaker on RHEL 7.6: https://access.redhat.com/articles/3974941
AWS: Configure SAP S/4HANA ASCS/ERS ENSA2 on Amazon Web Services (AWS): https://access.redhat.com/articles/4175371
Azure with GlusterFS: Azure Virtual Machines High Availability for SAP NetWeaver on Red Hat Enterprise Linux with GlusterFS: https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/high-availability-guide-rhel
Azure with NetApp: Azure Virtual Machines High Availability for SAP NetWeaver on Red Hat Enterprise Linux with Azure NetApp Files for SAP applications: https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/high-availability-guide-rhel-netapp-files
Azure with NFS: High Availability for SAP NetWeaver on Azure VMs on Red Hat Enterprise Linux with NFS on Azure Files: https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/high-availability-guide-rhel-nfs-azure-files
GCP: HA Cluster Configuration Guide for SAP NetWeaver on RHEL: https://cloud.google.com/solutions/sap/docs/netweaver-ha-config-rhel
This section describes earlier versions (ENSA1) that RHEL HA for SAP solutions still supports.
Under the mechanism of the old Standalone Enqueue Server (ENSA1), the ASCS must fail over to the cluster node where the active ERS is running, because it must access the shared memory that stores the enqueue replication table. ENSA1 is supported in Pacemaker as a two-node cluster configuration, mainly because of the restriction that ASCS must follow ERS.
Both ENSA 1 and ENSA 2 are supported, but only 2-node clusters in this scenario.
| Supported scenario | Description |
|---|---|
| Two-node cluster | Pacemaker supports only a two-node cluster. |
| ABAP/Java Dual Stack | Supported by Master/Slave Resources in all RHEL 7.x releases and Standalone resources on all RHEL 8.x releases |
The following figure shows the architecture of NetWeaver ASCS/ERS ENSA1 or S/4 HANA ENSA 2 on a HANA database. It is also optionally recommended to configure HANA into a separate Pacemaker cluster.
ABAP/Java Dual-Stack
ABAP/JAVA Dual-Stack is supported with the Primary/Secondary methodology, which is supported in all RHEL 7.x minor releases.
Follow the configuration guide: SAP NetWeaver ASCS/ERS ENSA1 in Pacemaker Cluster Using Master/Slave Resources, at https://access.redhat.com/articles/3150081#configure-ascs-ers-sapinstance-cluster-resource. However, because SAP no longer recommends dual-stack setups where both ABAP and Java instances use the same SID, it is better to consider a Dual-Stack Split (see https://wiki.scn.sap.com/wiki/display/SL/Dual+Stack+Split+Tool), so that the ABAP and the Java stack use separate SIDs. With such a setup, you might then use the Standalone approach for managing the ASCS/ERS instances for the ABAP stack and the SCS/ERS instances for the Java stack. You must configure separate resource groups for each instance and set up appropriate constraints based on the separate SIDs for each part of the environment. Follow the configuration guide: Configure SAP NetWeaver ASCS/ERS ENSA1 with Standalone Resources in RHEL 7.5 and Later: https://access.redhat.com/articles/3569681
On-Premise: Configure SAP S/4HANA ASCS/ERS with Standalone Enqueue Server 2 (ENSA2) in Pacemaker on RHEL 7.6: https://access.redhat.com/articles/3974941
AWS: Configure SAP S/4HANA ASCS/ERS ENSA2 on Amazon Web Services (AWS) https://access.redhat.com/articles/4175371
Azure with GlusterFS: Azure Virtual Machines High Availability for SAP NetWeaver on Red Hat Enterprise Linux with GlusterFS: https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/high-availability-guide-rhel
Azure with NetApp: Azure Virtual Machines High Availability for SAP NetWeaver on Red Hat Enterprise Linux with Azure NetApp Files for SAP applications: https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/high-availability-guide-rhel-netapp-files
Azure with NFS: High Availability for SAP NetWeaver on Azure VMs on Red Hat Enterprise Linux with NFS on Azure Files: https://docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/high-availability-guide-rhel-nfs-azure-files
GCP: HA Cluster Configuration Guide for SAP NetWeaver on RHEL: https://cloud.google.com/solutions/sap/docs/netweaver-ha-config-rhel