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
+35-20Lines changed: 35 additions & 20 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.
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
+
64
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)
0 commit comments