You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sap/workloads/disaster-recovery-sap-hana.md
+36-21Lines changed: 36 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,28 +7,30 @@ ms.service: sap-on-azure
7
7
ms.subservice: sap-vm-workloads
8
8
ms.workload: infrastructure-services
9
9
ms.topic: how-to
10
-
ms.date: 12/08/2023
10
+
ms.date: 01/16/2024
11
11
ms.custom: template-how-to-pattern
12
12
---
13
13
14
14
# Add HSR third site to HANA Pacemaker cluster
15
15
16
16
This article describes requirements and setup of a third HANA replication site to complement an existing Pacemaker cluster. Both SUSE Linux Enterprise Server (SLES) and RedHat Enterprise Linux (RHEL) specifics are covered.
17
17
18
-
## Overview
18
+
## Overview
19
19
20
20
SAP HANA supports system replication (HSR) with more than two sites connected. You can add a third site to an existing HSR pair, managed by Pacemaker in a highly available setup. You can deploy the third site in a second Azure region for disaster recovery (DR) purposes.
21
21
22
22
Pacemaker and HANA cluster resource agent manage the first two sites. Pacemaker cluster doesn't control the third site.
23
23
24
-
SAP HANA supports a third system replication site in two modes.
24
+
SAP HANA supports a third system replication site in two modes.
25
+
25
26
-[Multi-target](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/ba457510958241889a459e606bbcf3d3.html) replicates data changes from primary to more than one target system. Third site connected to primary, replication in a star topology.
26
27
-[Multi-tier](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/f730f308fede4040bcb5ccea6751e74d.html) is a two-tier replication. A cascading, or sometimes referred to as chained setup, of three different HANA tiers. Third site connects to secondary.
28
+
27
29
For more information, see [SAP HANA availability across Azure regions](./sap-hana-availability-across-regions.md#combine-availability-within-one-region-and-across-regions) for more conceptual details about HANA HSR within one and across different regions.
28
30
29
31
## Prerequisites for SLES
30
32
31
-
Requirements for a third HSR site are different between HANA scale-up and HANA scale-out.
33
+
Requirements for a third HSR site are different between HANA scale-up and HANA scale-out.
32
34
33
35
> [!NOTE]
34
36
> Requirements in this chapter are only valid for a Pacemaker enabled landscape. Without Pacemaker, SAP HANA version requirements apply for the chosen replication mode.
@@ -42,7 +44,7 @@ Requirements for a third HSR site are different between HANA scale-up and HANA s
42
44
43
45
## Prerequisites for RHEL
44
46
45
-
Requirements for a third HSR site are different between HANA scale-up and HANA scale-out.
47
+
Requirements for a third HSR site are different between HANA scale-up and HANA scale-out.
46
48
47
49
> [!NOTE]
48
50
> Requirements in this chapter are only valid for a Pacemaker enabled landscape. Without Pacemaker, SAP HANA version requirements apply for the chosen replication mode.
@@ -60,18 +62,23 @@ Failure of the third node won't trigger any cluster action. Cluster detects the
60
62
Example of a multi-target system replication system. For more information, see [SAP documentation](https://help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/2e6c71ab55f147e19b832565311a8e4e.html).
61
63

62
64
63
-
1. Deploy Azure resources for the third node. Depending on your requirements, you can use a different Azure region for disaster recovery purposes.
64
-
Steps required for the third site are similar to [virtual machines for HANA scale-up cluster](./sap-hana-high-availability.md#deploy-for-linux). Third site will use Azure infrastructure, operating system and HANA version matching the existing Pacemaker cluster, with the following exceptions:
65
+
1. Deploy Azure resources for the third node. Depending on your requirements, you can use a different Azure region for disaster recovery purposes.
66
+
67
+
Steps required for the third site are similar to [virtual machines for HANA scale-up cluster](./sap-hana-high-availability.md#prepare-the-infrastructure). Third site will use Azure infrastructure, operating system and HANA version matching the existing Pacemaker cluster, with the following exceptions:
68
+
65
69
- No load balancer deployed for third site and no integration with existing cluster load balancer for the VM of third site
66
70
- Don't install OS packages SAPHanaSR, SAPHanaSR-doc and OS package pattern ha_sles on third site VM
67
71
- No integration into the cluster for VM or HANA resources of the third site
68
72
- No HANA HA hook setup for third site in global.ini
69
-
70
-
2. Install SAP HANA on third node.
73
+
74
+
2. Install SAP HANA on third node.
75
+
71
76
Same HANA SID and HANA installation number must be used for third site.
72
-
73
-
3. With SAP HANA on third site installed and running, register the third site with the primary site.
77
+
78
+
3. With SAP HANA on third site installed and running, register the third site with the primary site.
79
+
74
80
The example uses SITE-DR as the name for third site.
81
+
75
82
```bash
76
83
# Execute on the third site
77
84
su - hn1adm
@@ -80,12 +87,14 @@ Example of a multi-target system replication system. For more information, see [
80
87
```
81
88
82
89
4. Verify HANA system replication shows both secondary and third site.
90
+
83
91
```bash
84
92
# Verify HANA HSR is in sync, execute on primary
85
93
sudo su - hn1adm -c "python /usr/sap/HN1/HDB03/exe/python_support/systemReplicationStatus.py"
86
94
```
87
95
88
96
5. Check the SAPHanaSR attribute forthird site. SITE-DR should show up with status SOKin the sites section.
97
+
89
98
```bash
90
99
# Check SAPHanaSR attribute on any cluster managed host (first or second site)
91
100
sudo SAPHanaSR-showAttr
@@ -100,7 +109,7 @@ Example of a multi-target system replication system. For more information, see [
100
109
# HN1-SITE2 SOK
101
110
# SITE-DR SOK
102
111
```
103
-
112
+
104
113
Cluster detects the replication status of connected sites and the monitored attributed can change between SOK and SFAIL. No cluster action if the replication to DR site fails.
105
114
106
115
## HANA scale-out: Add HANA multi-target system replication for DR purposes
@@ -112,19 +121,23 @@ Failure of the third node won't trigger any cluster action. Cluster detects the
112
121
Example of a multi-target system replication system. For more information, see [SAP documentation](https://help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/2e6c71ab55f147e19b832565311a8e4e.html).
113
122

114
123
115
-
1. Deploy Azure resources for the third site. Depending on your requirements, you can use a different Azure region for disaster recovery purposes.
116
-
Steps required for the HANA scale-out on third site are mirroring steps to deploy the [HANA scale-out cluster](./sap-hana-high-availability-scale-out-hsr-suse.md#set-up-the-infrastructure). Third site will use Azure infrastructure, operating system and HANA installation steps for SITE1 of the scale-out cluster, with the following exceptions:
124
+
1. Deploy Azure resources for the third site. Depending on your requirements, you can use a different Azure region for disaster recovery purposes.
125
+
126
+
Steps required for the HANA scale-out on third site are mirroring steps to deploy the [HANA scale-out cluster](./sap-hana-high-availability-scale-out-hsr-suse.md#prepare-the-infrastructure). Third site will use Azure infrastructure, operating system and HANA installation steps for SITE1 of the scale-out cluster, with the following exceptions:
127
+
117
128
- No load balancer deployed for third site and no integration with existing cluster load balancer for the VMs of third site
118
129
- Don't install OS packages SAPHanaSR-ScaleOut, SAPHanaSR-ScaleOut-doc and OS package pattern ha_sles on third site VMs
119
130
- No majority maker VM for third site, as there's no cluster integration
120
131
- Create NFS volume /hana/shared for third site exclusive use
121
132
- No integration into the cluster for VMs or HANA resources of the third site
122
133
- No HANA HA hook setup for third site in global.ini
123
-
124
-
You must use the same HANA SID and HANA installation number for third site.
125
-
126
-
2. With SAP HANA scale-out on third site installed and running, register the third site with the primary site.
134
+
135
+
You must use the same HANA SID and HANA installation number for third site.
136
+
137
+
2. With SAP HANA scale-out on third site installed and running, register the third site with the primary site.
138
+
127
139
The example uses SITE-DR as the name for third site.
140
+
128
141
```bash
129
142
# Execute on the third site
130
143
su - hn1adm
@@ -133,12 +146,14 @@ Example of a multi-target system replication system. For more information, see [
133
146
```
134
147
135
148
3. Verify HANA system replication shows both secondary and third site.
149
+
136
150
```bash
137
151
# Verify HANA HSR is in sync, execute on primary
138
152
sudo su - hn1adm -c "python /usr/sap/HN1/HDB03/exe/python_support/systemReplicationStatus.py"
139
153
```
140
154
141
155
4. Check the SAPHanaSR attribute for third site. SITE-DR should show up with status SOK in the sites section.
156
+
142
157
```bash
143
158
# Check SAPHanaSR attribute on any cluster managed host (first or second site)
144
159
sudo SAPHanaSR-showAttr
@@ -153,7 +168,7 @@ Example of a multi-target system replication system. For more information, see [
153
168
# HANA_S1 1674815869 4 hana-s1-db1 PRIM P
154
169
# HANA_S2 30 4 hana-s2-db1 SOK S
155
170
```
156
-
171
+
157
172
Cluster detects the replication status of connected sites and the monitored attributed can change between SOK and SFAIL. No cluster action if the replication to DR site fails.
158
173
159
174
## Autoregistering third site
@@ -164,10 +179,10 @@ SAP provides since HANA 2 SPS 04 parameter `register_secondaries_on_takeover`. W
164
179
165
180
For HSR [multi-tier](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/f730f308fede4040bcb5ccea6751e74d.html), no automatic SAP HANA registration of the third site exists. You need to manually register the third site to the current secondary, to keep HSR replication chain for multi-tier.
166
181
167
-

182
+

168
183
169
184
## Next steps
170
185
171
186
- [Disaster recovery overview and infrastructure](./disaster-recovery-overview-guide.md)
172
187
- [Disaster recovery for SAP workloads](./disaster-recovery-sap-guide.md)
173
-
- [High-availability architecture and scenarios for SAP NetWeaver](./sap-hana-availability-across-regions.md)
188
+
- [High-availability architecture and scenarios for SAP NetWeaver](./sap-hana-availability-across-regions.md)
Copy file name to clipboardExpand all lines: articles/sap/workloads/sap-hana-high-availability-netapp-files-suse.md
+30-38Lines changed: 30 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.service: sap-on-azure
11
11
ms.subservice: sap-vm-workloads
12
12
ms.topic: tutorial
13
13
ms.workload: infrastructure-services
14
-
ms.date: 09/15/2023
14
+
ms.date: 01/16/2024
15
15
ms.author: ampatel
16
16
---
17
17
@@ -60,7 +60,7 @@ Read the following SAP Notes and papers first:
60
60
-[NFS v4.1 volumes on Azure NetApp Files for SAP HANA](./hana-vm-operations-netapp.md)
61
61
-[Azure Virtual Machines planning and implementation for SAP on Linux](./planning-guide.md)
62
62
63
-
>[!NOTE]
63
+
>[!NOTE]
64
64
> This article contains references to a term that Microsoft no longer uses. When the term is removed from the software, we’ll remove it from this article.
65
65
66
66
## Overview
@@ -108,12 +108,12 @@ As you create your Azure NetApp Files for SAP HANA Scale-up systems, be aware of
108
108
109
109
The throughput of an Azure NetApp Files volume is a function of the volume size and service level, as documented in [Service level for Azure NetApp Files](../../azure-netapp-files/azure-netapp-files-service-levels.md).
110
110
111
-
While designing the infrastructure for SAP HANA on Azure with Azure NetApp Files, be aware of the recommendations in [NFS v4.1 volumes on Azure NetApp Files for SAP HANA](./hana-vm-operations-netapp.md#sizing-for-hana-database-on-azure-netapp-files).
111
+
While designing the infrastructure for SAP HANA on Azure with Azure NetApp Files, be aware of the recommendations in [NFS v4.1 volumes on Azure NetApp Files for SAP HANA](./hana-vm-operations-netapp.md#sizing-for-hana-database-on-azure-netapp-files).
112
112
113
-
The configuration in this article is presented with simple Azure NetApp Files Volumes.
113
+
The configuration in this article is presented with simple Azure NetApp Files Volumes.
114
114
115
115
> [!IMPORTANT]
116
-
> For production systems, where performance is a key, we recommend to evaluate and consider using [Azure NetApp Files application volume group for SAP HANA](hana-vm-operations-netapp.md#deployment-through-azure-netapp-files-application-volume-group-for-sap-hana-avg).
116
+
> For production systems, where performance is a key, we recommend to evaluate and consider using [Azure NetApp Files application volume group for SAP HANA](hana-vm-operations-netapp.md#deployment-through-azure-netapp-files-application-volume-group-for-sap-hana-avg).
117
117
118
118
> [!NOTE]
119
119
> All commands to mount /hana/shared in this article are presented for NFSv4.1 /hana/shared volumes.
@@ -144,46 +144,36 @@ The following instructions assume that you've already deployed your [Azure virtu
The resource agent for SAP HANA is included in SUSE Linux Enterprise Server for SAP Applications. An image for SUSE Linux Enterprise Server for SAP Applications 12 or 15 is available in Azure Marketplace. You can use the image to deploy new VMs.
147
150
148
-
## Deploy Linux virtual machine via Azure portal
151
+
###Deploy Linux VMs manually via Azure portal
149
152
150
153
This document assumes that you've already deployed a resource group, [Azure Virtual Network](../../virtual-network/virtual-networks-overview.md), and subnet.
151
154
152
-
Deploy virtual machines for SAP HANA. Choose a suitable SLES image that is supported for HANA system. You can deploy VM in any one of the availability options - scale set, availability zone or availability set.
155
+
Deploy virtual machines for SAP HANA. Choose a suitable SLES image that is supported for HANA system. You can deploy VM in any one of the availability options - virtual machine scale set, availability zone or availability set.
153
156
154
157
> [!IMPORTANT]
155
158
> Make sure that the OS you select is SAP certified for SAP HANA on the specific VM types that you plan to use in your deployment. You can look up SAP HANA-certified VM types and their OS releases in [SAP HANA Certified IaaS Platforms](https://www.sap.com/dmc/exp/2014-09-02-hana-hardware/enEN/#/solutions?filters=v:deCertified;ve:24;iaas;v:125;v:105;v:99;v:120). Make sure that you look at the details of the VM type to get the complete list of SAP HANA-supported OS releases for the specific VM type.
156
159
157
-
During VM configuration, we won't be adding any disk as all our mount points are on NFS shares from Azure NetApp Files. Also, you have an option to create or select exiting load balancer in networking section. If you're creating a new load balancer, follow below steps -
158
-
159
-
1. To set up standard load balancer, follow these configuration steps:
160
-
1. First, create a front-end IP pool:
161
-
1. Open the load balancer, select **frontend IP configuration**, and select **Add**.
162
-
2. Enter the name of the new front-end IP (for example, **hana-frontend**).
163
-
3. Set the **Assignment** to **Static** and enter the IP address (for example, **10.3.0.50**).
164
-
4. Select **OK**.
165
-
5. After the new front-end IP pool is created, note the pool IP address.
166
-
2. Create a single back-end pool:
167
-
1. Open the load balancer, select **Backend pools**, and then select **Add**.
168
-
2. Enter the name of the new back-end pool (for example, **hana-backend**).
169
-
3. Select **NIC** for Backend Pool Configuration.
170
-
4. Select **Add a virtual machine**.
171
-
5. Select the virtual machines of the HANA cluster.
172
-
6. Select **Add**.
173
-
7. Select **Save**.
174
-
3. Next, create a health probe:
175
-
1. Open the load balancer, select **health probes**, and select **Add**.
176
-
2. Enter the name of the new health probe (for example, **hana-hp**).
177
-
3. Select TCP as the protocol and port 625**03**. Keep the **Interval** value set to 5.
178
-
4. Select **OK**.
179
-
4. Next, create the load-balancing rules:
180
-
1. Open the load balancer, select **load balancing rules**, and select **Add**.
181
-
2. Enter the name of the new load balancer rule (for example, **hana-lb**).
182
-
3. Select the front-end IP address, the back-end pool, and the health probe that you created earlier (for example, **hana-frontend**, **hana-backend** and **hana-hp**).
183
-
1. Increase idle timeout to 30 minutes
184
-
4. Select **HA Ports**.
185
-
5. Make sure to **enable Floating IP**.
186
-
6. Select **OK**.
160
+
### Configure Azure load balancer
161
+
162
+
During VM configuration, you have an option to create or select exiting load balancer in networking section. Follow below steps, to setup standard load balancer for high availability setup of HANA database.
163
+
164
+
#### [Azure Portal](#tab/lb-portal)
165
+
166
+
[!INCLUDE [Configure Azure standard load balancer using Azure portal](../../../includes/sap-load-balancer-db-portal.md)]
167
+
168
+
#### [Azure CLI](#tab/lb-azurecli)
169
+
170
+
[!INCLUDE [Configure Azure standard load balancer using Azure CLI](../../../includes/sap-load-balancer-db-azurecli.md)]
171
+
172
+
#### [PowerShell](#tab/lb-powershell)
173
+
174
+
[!INCLUDE [Configure Azure standard load balancer using PowerShell](../../../includes/sap-load-balancer-db-powershell.md)]
175
+
176
+
---
187
177
188
178
For more information about the required ports for SAP HANA, read the chapter [Connections to Tenant Databases](https://help.sap.com/viewer/78209c1d3a9b41cd8624338e42a12bf6/latest/en-US/7a9343c9f2a2436faa3cfdb5ca00c052.html) in the [SAP HANA Tenant Databases](https://help.sap.com/viewer/78209c1d3a9b41cd8624338e42a12bf6) guide or SAP Note [2388694](https://launchpad.support.sap.com/#/notes/2388694).
189
179
@@ -194,7 +184,9 @@ For more information about the required ports for SAP HANA, read the chapter [Co
194
184
> 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).
195
185
196
186
> [!IMPORTANT]
197
-
> 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). See also SAP note [2382421](https://launchpad.support.sap.com/#/notes/2382421).
187
+
>
188
+
> - 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) and SAP note [2382421](https://launchpad.support.sap.com/#/notes/2382421).
189
+
> - To prevent saptune from changing the manually set `net.ipv4.tcp_timestamps` value from `0` back to `1`, you should update saptune version to 3.1.1 or higher. For more details, see [saptune 3.1.1 – Do I Need to Update?](https://www.suse.com/c/saptune-3-1-1-do-i-need-to-update/).
0 commit comments