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
+93-83Lines changed: 93 additions & 83 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,73 +1,79 @@
1
1
---
2
-
title: Add additional secondary sites to HANA Pacemaker cluster
3
-
description: Learn how to extend a highly available SAP HANA solution with additional sites for disaster recovery.
2
+
title: Add secondary sites to HANA Pacemaker cluster
3
+
description: Learn how to extend a highly available SAP HANA solution with extra sites for disaster recovery.
4
4
author: msftrobiro
5
5
ms.author: robiro
6
6
ms.service: sap-on-azure
7
7
ms.subservice: sap-vm-workloads
8
8
ms.topic: how-to
9
-
ms.date: 10/29/2024
9
+
ms.date: 03/09/2026
10
10
ms.custom: template-how-to-pattern
11
-
# Customer intent: As an IT administrator, I want to configure additional secondary sites for an existing HANA Pacemaker cluster, so that I can enhance disaster recovery capabilities across multiple Azure regions.
11
+
# Customer intent: As an IT administrator, I want to configure secondary sites for an existing HANA Pacemaker cluster, so that I can enhance disaster recovery capabilities across multiple Azure regions.
12
12
---
13
13
14
-
# Add additional secondary sites to a HANA Pacemaker cluster
14
+
# Add secondary sites to a HANA Pacemaker cluster
15
15
16
-
This article describes the requirements and setup for configuring additional secondary HANA replication site to complement an existing Pacemaker cluster. Both SUSE Linux Enterprise Server (SLES) and RedHat Enterprise Linux (RHEL) specifics are covered.
16
+
This article describes the requirements and setup for configuring a secondary 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
18
## Overview
19
19
20
-
SAP HANA supports system replication (HSR) with more than two connected sites. You can configure additional sites to an existing HSR pair that Pacemaker manages in a highly available setup. For example, you can deploy these additional sites in a second Azure region for disaster recovery (DR) purposes.
20
+
SAP HANA supports system replication (HSR) with more than two connected sites. You can configure more than one site to an existing HSR pair that Pacemaker manages in a highly available setup. For example, you can deploy extra sites in a second Azure region for disaster recovery (DR) purposes.
21
21
22
-
Pacemaker and the HANA cluster resource agent manage only the first two sites in HSR. The additional sites aren't controlled by the Pacemaker cluster.
22
+
Pacemaker and the HANA cluster resource agent manage only the first two sites in HSR. The Pacemaker cluster doesn't control the extra sites.
23
23
24
-
SAP HANA supports additional secondary sites system replication in two modes:
24
+
SAP HANA supports secondary sites system replication in two modes:
25
+
26
+
-[Multitarget](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/ba457510958241889a459e606bbcf3d3.html) replicates data changes from primary to more than one target system. The extra sites are connected to primary replication in a star topology.
25
27
26
-
-[Multitarget](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/ba457510958241889a459e606bbcf3d3.html) replicates data changes from primary to more than one target system. The additional sites are connected to primary replication in a star topology.
27
28
-[Multitier](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/f730f308fede4040bcb5ccea6751e74d.html) is a cascading, or chained, set up of HANA system replication. The third site connects to the secondary.
28
29
29
30
For more conceptual details about HANA HSR within one region and across different regions, see [SAP HANA availability across Azure regions](./sap-hana-availability-across-regions.md#combine-availability-within-one-region-and-across-regions).
30
31
31
-
## Prerequisites for SLES
32
+
## Prerequisites
32
33
33
-
Requirements for additional HSR sites are different for HANA scale-up and HANA scale-out.
34
+
Requirements for multiple HSR sites are different for HANA scale-up and HANA scale-out.
34
35
35
36
> [!NOTE]
36
37
>
37
38
> - Requirements in this article are only valid for a Pacemaker-enabled landscape. Without Pacemaker, SAP HANA version requirements apply to the chosen replication mode.
38
-
> - Pacemaker and the HANA cluster resource agent manage only two sites. The additional HSR site isn't controlled by the Pacemaker cluster.
39
+
> - Pacemaker and the HANA cluster resource agent manage only two sites. The Pacemaker cluster doesn't control the extra HSR site.
40
+
41
+
# [SLES](#tab/sles)
42
+
43
+
- SUSE supports maximum of one extra system replication site to an SAP HANA database outside the Pacemaker cluster.
39
44
40
-
- SUSE supports maximum of one additional system replication site to an SAP HANA database outside the Pacemaker cluster.
41
45
-**Both scale-up and scale-out**: SAP HANA SPS 04 or newer is required to use multitarget HSR with a Pacemaker cluster.
46
+
42
47
-**Both scale-up and scale-out**: Maximum of one SAP HANA system replication connected from outside the Linux cluster.
43
-
-**HANA scale-out only**: SLES 15 SP1 or higher.
48
+
49
+
-**HANA scale-out only**: SLES 15 SP1 or later.
50
+
44
51
-**HANA scale-out only**: Operating system (OS) package SAPHanaSR-ScaleOut version 0.180 or higher.
45
-
-**HANA scale-out only**: SAP HANA high-availability (HA) hooks [susHanaSR or SAPHanaSrMultiTarget](./sap-hana-high-availability-scale-out-hsr-suse.md#implement-hana-resource-agents) in use. Older HANA HA hook `SAPHanaSR` isn't multitarget aware for scale-out.
46
52
47
-
## Prerequisites for RHEL
53
+
-**HANA scale-out only**: SAP HANA high-availability (HA) hooks [susHanaSR or SAPHanaSrMultiTarget](./sap-hana-high-availability-scale-out-hsr-suse.md#implement-hana-resource-agents) in use. Older HANA HA hook `SAPHanaSR` isn't multitarget aware for scale-out.
48
54
49
-
Requirements for additional HSR sites are different for HANA scale-up and HANA scale-out.
55
+
# [RHEL](#tab/rhel)
50
56
51
-
> [!NOTE]
52
-
>
53
-
> - Requirements in this article are only valid for a Pacemaker-enabled landscape. Without Pacemaker, SAP HANA version requirements apply for the chosen replication mode.
54
-
> - Pacemaker and the HANA cluster resource agent manage only two sites. Any additional HSR sites aren't controlled by the Pacemaker cluster.
57
+
- RedHat supports one or more system replication sites to an SAP HANA database outside the Pacemaker cluster.
55
58
56
-
- RedHat supports one or more additional system replication sites to an SAP HANA database outside the Pacemaker cluster.
57
59
-**HANA scale-up only**: See RedHat [support policies for RHEL HA clusters](https://access.redhat.com/articles/3397471) for details on the minimum OS, SAP HANA, and cluster resource agents version.
60
+
58
61
-**HANA scale-out only**: HANA multitarget replication isn't supported on Azure with a Pacemaker cluster.
59
62
60
-
> [!Tip]
61
-
> The configuration illustrates how to setup third site outside Pacemaker cluster. On RHEL, if you have more than one additional sites outside the Pacemaker cluster, you would need to extend the setup to those other sites as well.
63
+
> [!TIP]
64
+
> The configuration illustrates how to set up third site outside Pacemaker cluster. On RHEL, if you have more than one site outside the Pacemaker cluster, you would need to extend the setup to those other sites as well.
65
+
66
+
---
62
67
63
68
## HANA scale-up: Add HANA multitarget system replication for DR purposes
64
69
65
-
With SAP HANA HA hooks SAPHanaSR/susHanaSR for [SLES](./sap-hana-high-availability.md#implement-hana-resource-agents) and [RHEL](./sap-hana-high-availability-rhel.md#implement-sap-hana-system-replication-hooks), you can add additional sites to HANA system replication. The Pacemaker environment is aware of a HANA multitarget setup.
70
+
With SAP HANA HA hooks SAPHanaSR/susHanaSR for [SLES](./sap-hana-high-availability.md#implement-hana-resource-agents) and [RHEL](./sap-hana-high-availability-rhel.md#implement-sap-hana-system-replication-hooks), you can add extra sites to HANA system replication. The Pacemaker environment is aware of a HANA multitarget setup.
71
+
72
+
Failure of extra sites doesn't trigger any cluster action. The cluster detects the replication status of connected sites and the monitored attribute for the third site can change between `SOK` and `SFAIL` states. Any takeover tests to the extra site or executing your DR exercise process should first place the cluster resources into maintenance mode to prevent any undesired cluster action.
66
73
67
-
Failure of additional sites doesn't trigger any cluster action. The cluster detects the replication status of connected sites and the monitored attribute for the third site can change between `SOK` and `SFAIL` states. Any takeover tests to the additional site or executing your DR exercise process should first place the cluster resources into maintenance mode to prevent any undesired cluster action.
74
+
The following example shows a multitarget system replication system. For more information, see [SAP HANA System Replication Setups](https://help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/2e6c71ab55f147e19b832565311a8e4e.html).
68
75
69
-
The following example shows a multitarget system replication system. For more information, see [SAP documentation](https://help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/2e6c71ab55f147e19b832565311a8e4e.html).
70
-

76
+

71
77
72
78
1. Deploy Azure resources for the third node. Depending on your requirements, you can use a different Azure region for DR purposes.
73
79
@@ -79,54 +85,57 @@ The following example shows a multitarget system replication system. For more in
79
85
- No HANA HA hook setup for the third site in *global.ini*.
80
86
81
87
1. Install SAP HANA on the third node.
82
-
88
+
83
89
The same HANA SID and HANA installation number must be used for the third site.
84
90
85
91
1. With SAP HANA on the third site installed and running, register the third site with the primary site.
86
92
87
93
The following example uses `SITE-DR` as the name for the third site.
88
94
89
-
```bash
90
-
# Execute on the third site
91
-
su - hn1adm
92
-
# Register the HANA third site to the primary. Switch --online will shutdown the HANA instance on third site.
1. Verify that the HANA system replication shows the secondary site and the third site.
97
104
98
-
```bash
99
-
# Verify HANA HSR is in sync, execute on primary
100
-
sudo su - hn1adm -c "python /usr/sap/HN1/HDB03/exe/python_support/systemReplicationStatus.py"
101
-
```
105
+
```bash
106
+
# Verify HANA HSR is in sync, execute on primary
107
+
sudo su - hn1adm -c "python /usr/sap/HN1/HDB03/exe/python_support/systemReplicationStatus.py"
108
+
```
102
109
103
110
1. Check the `SAPHanaSR` attribute for the third site. `SITE-DR` should show up with the status `SOK` in the `Sites` section.
104
111
105
-
```bash
106
-
# Check SAPHanaSR attribute on any cluster managed host (first or second site)
107
-
sudo SAPHanaSR-showAttr
108
-
# Example result
109
-
# Global cib-time maintenance
110
-
# --------------------------------------------
111
-
# global Tue Feb 21 19:28:21 2023 false
112
-
#
113
-
# Sites srHook
114
-
# -----------------
115
-
# HN1-SITE1 PRIM
116
-
# HN1-SITE2 SOK
117
-
# SITE-DR SOK
118
-
```
112
+
```bash
113
+
# Check SAPHanaSR attribute on any cluster managed host (first or second site)
114
+
sudo SAPHanaSR-showAttr
115
+
# Example result
116
+
# Global cib-time maintenance
117
+
# --------------------------------------------
118
+
# global Tue Feb 21 19:28:21 2023 false
119
+
#
120
+
# Sites srHook
121
+
# -----------------
122
+
# HN1-SITE1 PRIM
123
+
# HN1-SITE2 SOK
124
+
# SITE-DR SOK
125
+
```
119
126
120
127
The cluster detects the replication status of connected sites. The monitored attributes can change between `SOK` and `SFAIL`. There's no cluster action if the replication to the DR site fails.
121
128
122
129
## HANA scale-out: Add HANA multitarget system replication for DR purposes
123
130
124
-
With the SAP HANA HA providers [susHanaSR or SAPHanaSrMultiTarget](./sap-hana-high-availability-scale-out-hsr-suse.md#implement-hana-resource-agents), you can add a third HANA scale-out site. This third site is often used for DR in another Azure region. The Pacemaker environment is aware of a HANA multitarget DR setup. This section applies to systems running Pacemaker on SUSE only. See the "Prerequisites" section in this document for details.
131
+
With the SAP HANA HA providers [susHanaSR or SAPHanaSrMultiTarget](./sap-hana-high-availability-scale-out-hsr-suse.md#implement-hana-resource-agents), you can add a third HANA scale-out site. This third site is often used for DR in another Azure region. The Pacemaker environment is aware of a HANA multitarget DR setup. This section applies to systems running Pacemaker on SUSE only. See the "Prerequisites" section in this document for details.
125
132
126
133
Failure of the third node doesn't trigger any cluster action. The cluster detects the replication status of connected sites and the monitored attribute for the third site can change between the `SOK` and `SFAIL` states. Any takeover tests to the third/DR site or executing your DR exercise process should first place the cluster resources into maintenance mode to prevent any undesired cluster action.
127
134
128
-
The following example shows a multitarget system replication system. For more information, see [SAP documentation](https://help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/2e6c71ab55f147e19b832565311a8e4e.html).
129
-

135
+
The following example shows a multitarget system replication system. For more information, see
136
+
[SAP HANA System Replication Setups](https://help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/2e6c71ab55f147e19b832565311a8e4e.html).
137
+
138
+

130
139
131
140
1. Deploy Azure resources for the third site. Depending on your requirements, you can use a different Azure region for DR purposes.
132
141
@@ -145,48 +154,49 @@ The following example shows a multitarget system replication system. For more in
145
154
146
155
The following example uses `SITE-DR` as the name for the third site.
147
156
148
-
```bash
149
-
# Execute on the third site
150
-
su - hn1adm
151
-
# Register the HANA third site to the primary. Switch --online will shutdown the HANA instance on third site.
The cluster detects the replication status of connected sites. The monitored attribute can change between `SOK` and `SFAIL`. There's no cluster action if the replication to the DR site fails.
180
190
181
191
## Autoregister the third site
182
192
183
193
During a planned or unplanned takeover event between the two Pacemaker cluster sites, HSR to the third site is also interrupted. Pacemaker doesn't modify HANA replication to the third site.
184
194
185
-
SAP provides since the HANA 2 SPS 04 parameter `register_secondaries_on_takeover`. With the parameter set to the value `true`, after the HSR takeover between cluster sites 1 and 2, HANA registers the third site on the new primary automatically to keep an HSR multitarget setup. Configure the HANA parameter `register_secondaries_on_takeover = true` that's configured in the `[system_replication]` block of *global.ini* on both SAP HANA sites in the Linux cluster. Both SITE1 and SITE2 need the parameter in the respective HANA *global.ini* configuration file. The parameter can also be used outside a Pacemaker cluster.
195
+
SAP provides the parameter `register_secondaries_on_takeover` beginning with HANA 2 SPS 04. With the parameter set to the value `true`, after the HSR takeover between cluster sites 1 and 2, HANA registers the third site on the new primary automatically to keep an HSR multitarget setup. Configure the HANA parameter `register_secondaries_on_takeover = true` in the `[system_replication]` block of *global.ini* on both SAP HANA sites in the Linux cluster. Both SITE1 and SITE2 need the parameter in the respective HANA *global.ini* configuration file. The parameter can also be used outside a Pacemaker cluster.
186
196
187
197
For HSR [multitier](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 the HSR replication chain for multitier.
188
198
189
-

199
+

0 commit comments