|
| 1 | +--- |
| 2 | +title: Deploy SAP ASCS/SCS and SAP ERS with SAP HANA high availability VMs on RHEL | Microsoft Docs |
| 3 | +description: Configure SAP ASCS/SCS and SAP ERS with SAP HANA high availability VMs on RHEL. |
| 4 | +services: virtual-machines-linux,virtual-network,storage |
| 5 | +documentationcenter: saponazure |
| 6 | +author: apmsft |
| 7 | +manager: juergent |
| 8 | +tags: azure-resource-manager |
| 9 | +ms.service: virtual-machines-sap |
| 10 | +ms.topic: tutorial |
| 11 | +ms.tgt_pltfrm: vm-linux |
| 12 | +ms.workload: infrastructure-services |
| 13 | +ms.date: 08/16/2022 |
| 14 | +ms.author: ampatel |
| 15 | +--- |
| 16 | + |
| 17 | +# Deploy SAP ASCS/ERS with SAP HANA high availability VMs on Red Hat Enterprise Linux |
| 18 | + |
| 19 | +This article describes how to install and configure SAP HANA along with ASCS/SCS and ERS instances on the same high availability cluster, running on Red Hat Enterprise Linux (RHEL). |
| 20 | + |
| 21 | +## References |
| 22 | + |
| 23 | +* [Configuring SAP S/4HANA ASCS/ERS with Standalone Enqueue Server 2 (ENSA2) in Pacemaker](https://access.redhat.com/articles/3974941) |
| 24 | +* [Configuring SAP NetWeaver ASCS/ERS ENSA1 with Standalone Resources in RHEL 7.5+ and RHEL 8](https://access.redhat.com/articles/3569681) |
| 25 | +* SAP Note [1928533](https://launchpad.support.sap.com/#/notes/1928533), which has: |
| 26 | + * List of Azure VM sizes that are supported for the deployment of SAP software |
| 27 | + * Important capacity information for Azure VM sizes |
| 28 | + * Supported SAP software, and operating system (OS) and database combinations |
| 29 | + * Required SAP kernel version for Windows and Linux on Microsoft Azure |
| 30 | +* SAP Note [2015553](https://launchpad.support.sap.com/#/notes/2015553) lists prerequisites for SAP-supported SAP software deployments in Azure. |
| 31 | +* SAP Note [2002167](https://launchpad.support.sap.com/#/notes/2002167) has recommended OS settings for Red Hat Enterprise Linux 7.x |
| 32 | +* SAP Note [2772999](https://launchpad.support.sap.com/#/notes/2772999) has recommended OS settings for Red Hat Enterprise Linux 8.x |
| 33 | +* SAP Note [2009879](https://launchpad.support.sap.com/#/notes/2009879) has SAP HANA Guidelines for Red Hat Enterprise Linux |
| 34 | +* SAP Note [2178632](https://launchpad.support.sap.com/#/notes/2178632) has detailed information about all monitoring metrics reported for SAP in Azure. |
| 35 | +* SAP Note [2191498](https://launchpad.support.sap.com/#/notes/2191498) has the required SAP Host Agent version for Linux in Azure. |
| 36 | +* SAP Note [2243692](https://launchpad.support.sap.com/#/notes/224362) has information about SAP licensing on Linux in Azure. |
| 37 | +* SAP Note [1999351](https://launchpad.support.sap.com/#/notes/1999351) has additional troubleshooting information for the Azure Enhanced Monitoring Extension for SAP. |
| 38 | +* [SAP Community Wiki](https://wiki.scn.sap.com/wiki/display/HOME/SAPonLinuxNotes) has all required SAP Notes for Linux. |
| 39 | +* [Azure Virtual Machines planning and implementation for SAP on Linux](planning-guide.md) |
| 40 | +* [Azure Virtual Machines deployment for SAP on Linux](deployment-guide.md) |
| 41 | +* [Azure Virtual Machines DBMS deployment for SAP on Linux](dbms_guide_general.md) |
| 42 | +* [SAP Netweaver in pacemaker cluster](https://access.redhat.com/articles/3150081) |
| 43 | +* General RHEL documentation |
| 44 | + * [High Availability Add-On Overview](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_overview/index) |
| 45 | + * [High Availability Add-On Administration](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/index) |
| 46 | + * [High Availability Add-On Reference](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_reference/index) |
| 47 | +* Azure-specific RHEL documentation: |
| 48 | + * [Support Policies for RHEL High Availability Clusters - Microsoft Azure Virtual Machines as Cluster Members](https://access.redhat.com/articles/3131341) |
| 49 | + * [Installing and Configuring a Red Hat Enterprise Linux 7.4 (and later) High-Availability Cluster on Microsoft Azure](https://access.redhat.com/articles/3252491) |
| 50 | + |
| 51 | +## Overview |
| 52 | + |
| 53 | +This article describes the cost optimization scenario where you deploy SAP HANA, SAP ASCS/SCS and SAP ERS instances in the same high availability setup. To minimize the number of VMs for a single SAP system, you want to install SAP ASCS/SCS and SAP ERS on the same hosts where SAP HANA is running. With SAP HANA being configured in high availability cluster setup, you want SAP ASCS/SCS and SAP ERS to be managed by cluster as well. The configuration is basically an addition to already configured SAP HANA cluster setup. In this setup SAP ASCS/SCS and SAP ERS will be installed on a virtual hostname and its instance directory is managed by the cluster. |
| 54 | + |
| 55 | +The presented architecture showcases [NFS on Azure Files](../../../storage/files/files-nfs-protocol.md) or [Azure NetApp Files](../../../azure-netapp-files/azure-netapp-files-introduction.md) for highly available instance directory for the setup. |
| 56 | + |
| 57 | +The example shown in this article to describe deployment uses following system information - |
| 58 | + |
| 59 | +| Instance name | Instance number | Virtual hostname | Virtual IP (Probe Port) | |
| 60 | +| ----------------------------------- | --------------- | ---------------- | ----------------------- | |
| 61 | +| SAP HANA DB | 03 | saphana | 10.66.0.13 (62503) | |
| 62 | +| ABAP SAP Central Services (ASCS) | 00 | sapascs | 10.66.0.20 (62000) | |
| 63 | +| Enqueue Replication Server (ERS) | 01 | sapers | 10.66.0.30 (62101) | |
| 64 | +| SAP HANA system identifier | HN1 | --- | --- | |
| 65 | +| SAP system identifier | NW1 | --- | --- | |
| 66 | + |
| 67 | +> [!NOTE] |
| 68 | +> |
| 69 | +> Install SAP Dialog instances (PAS and AAS) on separate VM's. |
| 70 | +
|
| 71 | + |
| 72 | + |
| 73 | +### Important consideration for the cost optimization solution |
| 74 | + |
| 75 | +* SAP Dialog Instances (PAS and AAS) (like **sapa01** and **sapa02**), should be installed on separate VMs. Install SAP ASCS and ERS with virtual hostnames. To learn more on how to assign virtual hostname to a VM, refer to the blog [Use SAP Virtual Host Names with Linux in Azure](https://techcommunity.microsoft.com/t5/running-sap-applications-on-the/use-sap-virtual-host-names-with-linux-in-azure/ba-p/3251593). |
| 76 | +* With HANA DB, ASCS/SCS and ERS deployment in the same cluster setup, the instance number of HANA DB, ASCS/SCS and ERS must be different. |
| 77 | +* Consider sizing your VM SKUs appropriately based on the sizing guidelines. You have to factor in the cluster behavior where multiple SAP instances (HANA DB, ASCS/SCS and ERS) may run on a single VM, when other VM in the cluster is unavailable. |
| 78 | +* You can use different storage (for example, Azure NetApp Files or NFS on Azure Files) to install the SAP ASCS and ERS instances. |
| 79 | + > [!NOTE] |
| 80 | + > |
| 81 | + > For SAP J2EE systems, it's not supported to place `/usr/sap/<SID>/J<nr>` on NFS on Azure Files. |
| 82 | + > Database filesystem like /hana/data and /hana/log are not supported on NFS on Azure Files. |
| 83 | +* To install additional application servers on separate VMs, you can either use NFS shares or local managed disk for instance directory filesystem. If you're installing additional application servers for SAP J2EE system, `/usr/sap/<SID>/J<nr>` on NFS on Azure Files isn't supported. |
| 84 | +* Refer [NFS on Azure Files consideration](high-availability-guide-rhel-nfs-azure-files.md#important-considerations-for-nfs-on-azure-files-shares) and [Azure NetApp Files consideration](high-availability-guide-rhel-netapp-files.md#important-considerations), as same consideration applies for this setup as well. |
| 85 | + |
| 86 | +## Prerequisites |
| 87 | + |
| 88 | +The configuration described in this article is an addition to your already configured SAP HANA cluster setup. In this configuration, SAP ASCS/SCS and ERS will be installed on a virtual hostname and its instance directory is managed by the cluster. |
| 89 | + |
| 90 | +Install HANA database, set up HSR and Pacemaker cluster by following the documentation [High availability of SAP HANA on Azure VMs on Red Hat Enterprise Linux](sap-hana-high-availability-rhel.md) or [High availability of SAP HANA Scale-up with Azure NetApp Files on Red Hat Enterprise Linux](sap-hana-high-availability-netapp-files-red-hat.md) depending on what storage option you're using. |
| 91 | + |
| 92 | +Once you've Installed, configured and set-up the **HANA Cluster**, follow the steps below to install ASCS and ERS instances. |
| 93 | + |
| 94 | +## Configure Azure Load Balancer for ASCS and ERS |
| 95 | + |
| 96 | +1. Open the internal load balancer that you've created for SAP HANA cluster setup. |
| 97 | +2. Create the frontend IP address for ASCS and ERS instance |
| 98 | + 1. IP address for ASCS is **10.66.0.20** |
| 99 | + 1. In **Settings** > **Frontend IP configuration**, click on **Add**. |
| 100 | + 2. Enter the name of the new frontend IP (for example, **ascs-frontend**). |
| 101 | + 3. Select the **subnet**. |
| 102 | + 4. Set the **assignment** to **Static** and enter the IP address (for example, **10.66.0.20**). |
| 103 | + 5. Click Ok. |
| 104 | + 2. IP address for ERS is **10.66.0.30** |
| 105 | + 1. Repeat the steps under "2.a" to create a frontend IP address for ERS (for example **10.66.0.30** and **ers-frontend**) |
| 106 | +3. Backend Pool remains same, as we're deploying ASCS and ERS on the same backend pool (**hana-backend**). |
| 107 | +4. Create health probe for ASCS and ERS instance |
| 108 | + 1. Port for ASCS is **62000** |
| 109 | + 1. In **Settings** > **Health probes**, click on **Add**. |
| 110 | + 2. Enter the name of the health probe (for example, **ascs-hp**). |
| 111 | + 3. Select **TCP** as protocol, port **62000** and keep interval **5**. |
| 112 | + 4. Click Ok. |
| 113 | + 2. Port for ERS is **62101** |
| 114 | + 1. Repeat the steps above under "4.a" to create health probe for ERS (for example **62101** and **ers-hp**) |
| 115 | +5. Create load balancing rules for ASCS and ERS instance |
| 116 | + 1. Load balancing rule for ASCS |
| 117 | + 1. In **Settings** > **Load balancing rules**, click on **Add**. |
| 118 | + 2. Enter the name of load balancing rule (for example, **ascs-lb**). |
| 119 | + 3. Select the frontend IP address for ASCS, backend pool, and health probe you created earlier (for example **ascs-frontend**, **hana-backend**, and **ascs-hp**) |
| 120 | + 4. Select **HA ports** |
| 121 | + 5. Make sure to **enable Floating IP** |
| 122 | + 6. Leave the rest as default and Click OK |
| 123 | + 2. Load balancing rule for ERS |
| 124 | + 1. Repeat the steps under “5.1” to create load balancing rule for ERS (for example, **ers-lb**). |
| 125 | + |
| 126 | +> [!IMPORTANT] |
| 127 | +> |
| 128 | +> Floating IP is not supported on a NIC secondary IP configuration in load-balancing scenarios. For details see [Azure Load balancer Limitations](../../../load-balancer/load-balancer-multivip-overview.md#limitations). If you need additional IP address for the VM, deploy a second NIC. |
| 129 | +
|
| 130 | +> [!NOTE] |
| 131 | +> |
| 132 | +> When VMs without public IP addresses are placed in the backend pool of internal (no public IP address) Standard Azure load balancer, there will be no outbound internet connectivity, unless additional configuration is performed to allow routing to public end points. For details on how to achieve outbound connectivity see [Public endpoint connectivity for Virtual Machines using Azure Standard Load Balancer in SAP high-availability scenarios](high-availability-guide-standard-load-balancer-outbound-connections.md). |
| 133 | +
|
| 134 | +> [!IMPORTANT] |
| 135 | +> |
| 136 | +> Do not enable TCP timestamps on Azure VMs placed behind Azure Load Balancer. Enabling TCP timestamps will cause the health probes to fail. Set parameter **net.ipv4.tcp_timestamps** to **0**. For details see [Load Balancer health probes](../../../load-balancer/load-balancer-custom-probe-overview.md). |
| 137 | +
|
| 138 | +## SAP ASCS/SCS and ERS Setup |
| 139 | + |
| 140 | +Based on your storage, follow the steps described in below guides to configure `SAPInstance` resource for SAP ASCS/SCS and SAP ERS instance in the cluster. |
| 141 | + |
| 142 | +* NFS on Azure Files - [Azure VMs high availability for SAP NW on RHEL with NFS on Azure Files](high-availability-guide-rhel-nfs-azure-files.md#prepare-for-sap-netweaver-installation) |
| 143 | +* Azure NetApp Files - [Azure VMs high availability for SAP NW on RHEL with Azure NetApp Files](high-availability-guide-rhel-netapp-files.md#prepare-for-sap-netweaver-installation) |
| 144 | + |
| 145 | +## Test the cluster setup |
| 146 | + |
| 147 | +Thoroughly test your pacemaker cluster. |
| 148 | +* [Execute the typical Netweaver failover tests](high-availability-guide-rhel.md#test-the-cluster-setup). |
| 149 | +* [Execute the typical HANA DB failover tests](sap-hana-high-availability-rhel.md#test-the-cluster-setup). |
0 commit comments