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-suse.md
+49-45Lines changed: 49 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,58 +1,61 @@
1
1
---
2
-
title: HSR third site with Pacemaker
3
-
description: Extending highly-available SAP HANA solution with third site on SUSE systems.
2
+
title: Add HSR 3-rd site to HANA Pacemaker cluster
3
+
description: Extending highlyavailable SAP HANA solution with third site on SUSE systems.
4
4
author: msftrobiro
5
5
ms.author: robiro
6
6
ms.service: sap-on-azure
7
-
ms.subservice: sap-vm-workload
7
+
ms.subservice: sap-vm-workloads
8
+
ms.workload: infrastructure-services
8
9
ms.topic: how-to
9
10
ms.date: 02/21/2023
10
11
ms.custom: template-how-to-pattern
11
12
---
12
13
13
-
# HSR third site with Pacemaker
14
+
# Add HSR 3-rd site to HANA Pacemaker cluster
14
15
15
-
This article describes requirements and setup of a third HANA replication site complimenting an existing SUSE Linux Enterprise Server (SLES) Pacemaker cluster.
16
+
This article describes requirements and setup of a third HANA replication site complement an existing SUSE Linux Enterprise Server (SLES) Pacemaker cluster.
16
17
17
18
## Overview
18
19
19
-
SAP HANA supports system replication with more than two sites connected. A third site can be added to an existing HSR pair, which is managed by Pacemaker in a highly-available setup. The third site can be deployed in a second Azure region for disaster recovery (DR) purposes.
20
+
SAP HANA supports system replication (HSR) with more than two sites connected. You can add a third site to an existing HSR pair, which is managed by Pacemaker in a highlyavailable setup. You can deploy the third site in a second Azure region for disaster recovery (DR) purposes.
20
21
21
-
Pacemaker and HANA cluster resource agent manages the first two sites. Any third, DR site, is not controlled by the cluster.
22
+
Pacemaker and HANA cluster resource agent manages the first two sites. Any third, DR site, isn't controlled by the cluster.
22
23
23
24
SAP HANA supports a third system replication site in two modes.
24
25
-[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, star form replication.
25
-
-[Multi-tier](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/f730f308fede4040bcb5ccea6751e74d.html) is a 2-tier system replication. A cascading, or sometimes referred to as chained setup, of 3 different HANA tiers. Third site connected to secondary.
26
-
See [SAP HANA availability across Azure regions](./sap-hana-availability-across-regions.md#combine-availability-within-one-region-and-across-regions) for more details about HANA HSR within one region and across Azure regions.
26
+
-[Multi-tier](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/f730f308fede4040bcb5ccea6751e74d.html) is a two-tier system replication. A cascading, or sometimes referred to as chained setup, of three different HANA tiers. Third site connected to secondary.
27
+
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 region and across Azure regions.
27
28
28
29
## Prerequisites
29
30
30
-
Requirements for a third HSR site are different for HANA scale-up (single VM for each HANA system) and HANA scale-out (multiple VMs for each HANA system).
31
+
Requirements for a third HSR site are different between HANA scale-up and HANA scale-out.
31
32
32
33
> [!NOTE]
33
-
> Dependencies are valid for a Pacemaker enabled landscape. Without Pacemaker, only SAP's HANA version requirements apply.
34
+
> Dependencies are valid for a Pacemaker enabled landscape. Without Pacemaker, only SAP's HANA version requirements apply.
35
+
> Pacemaker and HANA cluster resource agent manages only two sites. Third HSR site isn't controlled by Pacemaker cluster.
34
36
35
-
- SAP HANA SPS 04 or newer is needed to use multi-target HSR with a Pacemaker cluster
36
-
- Maximum one additional SAP HANA system replication connected from outside the Linux cluster
37
+
-Both scale-up and scale-out: SAP HANA SPS 04 or newer required to use multi-target HSR with a Pacemaker cluster
38
+
-Both scale-up and scale-out: Maximum one SAP HANA system replication connected from outside the Linux cluster
37
39
- HANA scale-out only: SLES 15 SP1 or higher
38
40
- HANA scale-out only: OS package SAPHanaSR-ScaleOut version 0.180 or higher
39
-
- HANA scale-out only: SAP HANA HA provider SAPHanaSrMultiTarget in use. HANA HA provider SAPHanaSR is not multi-target aware for scale-out.
41
+
- HANA scale-out only: SAP HANA HA provider SAPHanaSrMultiTarget in use. HANA HA provider SAPHanaSR isn't multi-target aware for scale-out.
40
42
41
-
Pacemaker and HANA cluster resource agent manages only two sites. Third site is not controlled by Pacemaker cluster.
43
+
## HANA scale-up: Set-up HANA multi-target system replication for DR purposes
42
44
43
-
## HANA scale-up: Setup HANA multi-target system replication for DR purposes
45
+
<details>
46
+
<summary>SAP HANA scale-up - expand section</summary>
44
47
45
-
With SAP HANA HA provider [SAPHanaSR](./sap-hana-high-availability.md#implement-hana-hooks-saphanasr-and-suschksrv), you can configure a third node for disaster recovery (DR) purposes. The Pacemaker environment is made aware of a HANA multi-target DR setup.
48
+
With SAP HANA HA provider [SAPHanaSR](./sap-hana-high-availability.md#implement-hana-hooks-saphanasr-and-suschksrv), you can configure a third node for disaster recovery (DR) purposes. The Pacemaker environment is aware of a HANA multi-target DR setup.
46
49
47
-
Failure of the third node won't trigger any cluster action. Cluster detects the replication status of connected sites and the monitored attribute for third site can change between SOK and SFAIL state. Any takeover tests to third/DR site or executing your DR process should first place the cluster resources into maintenance mode to prevent any undesired cluster action.
50
+
Failure of the third node will not trigger any cluster action. Cluster detects the replication status of connected sites and the monitored attribute for third site can change between SOK and SFAIL state. Any takeover tests to third/DR site or executing your DR exercise process should first place the cluster resources into maintenance mode to prevent any undesired cluster action.
48
51
49
-
Example of a multi-target system replication system. For further information, see [SAP documentation](https://help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/2e6c71ab55f147e19b832565311a8e4e.html).
50
-

52
+
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).
53
+

51
54
52
-
1. Deploy Azure resources for the third node. Depending on your requirements, a different Azure region is often used for disaster recovery purposes.
55
+
1. Deploy Azure resources for the third node. Depending on your requirements, you can use a different Azure region for disaster recovery purposes.
53
56
Steps required for the HANA scale-out on third site are mirroring steps to deploy the [HANA scale-up cluster](./sap-hana-high-availability.md#deploy-for-linux). Deploy the third node following the Azure infrastructure, operating system and HANA installation steps for first node of the Pacemaker cluster, with the following exceptions:
54
57
- No load balancer deployed for third site and no integration with existing cluster load balancer for the VM of third site
55
-
- OS packages SAPHanaSR, SAPHanaSR-doc and OS package pattern ha_sles aren't installed on third site VM
58
+
-Don't install OS packages SAPHanaSR, SAPHanaSR-doc and OS package pattern ha_sles on third site VM
56
59
- No integration into the cluster for VM or HANA resources of the third site
57
60
- No HANA HA hook setup for third site in global.ini
58
61
@@ -64,7 +67,7 @@ Example of a multi-target system replication system. For further information, se
64
67
```bash
65
68
# Execute on the third site
66
69
su - hn1adm
67
-
# Make sure HANA is not running on the third site. If it is started, stop HANA
70
+
# Make sure HANA isn't running on the third site. If it is started, stop HANA
68
71
sapcontrol -nr 03 -function StopSystem
69
72
sapcontrol -nr 03 -function WaitforStopped 600 10
70
73
# Register the HANA third site to the primary
@@ -94,42 +97,39 @@ Example of a multi-target system replication system. For further information, se
94
97
# SITE-DR SOK
95
98
```
96
99
97
-
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 is impacted.
100
+
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.
98
101
99
-
### Auto-registering third site
102
+
</details>
100
103
101
-
During planned or unplanned takeover event between the two Pacemaker cluster sites, HSR to third site will be also interrupted. For Pacemaker setting `AUTOMATED_REGISTER = yes|no` can control registration between Pacemaker controlled sites 1 and 2. The parameter does not control HSR replication to the cluster controlled third site.
104
+
## HANA scale-out: Set-up HANA multi-target system replication for DR purposes
102
105
103
-
SAP provides since HANA 2 SPS 04 parameter `register_secondaries_on_takeover`. With the parameter set to value `true`, after HSR takeover between cluster sites 1 and 2, HANA will register the third site on the new primary automatically to keep a HSR multi-target setup. Configure HANA parameter `register_secondaries_on_takeover = true` configured in`[system_replication]` block of global.ini on both SAP HANA sites in the Linux cluster. Both first and second node/site need the parameter in the respective HANA global.ini configuration file.
106
+
<details>
107
+
<summary>SAP HANA scale-out - expand section</summary>
104
108
105
-
For HSR multi-tier, no automatic registration exist for the third site. Manual registration of third site to the current secondary, to keep HSR replication chain, is needed.
109
+
With SAP HANA HA provider [SAPHanaSrMultiTarget](./sap-hana-high-availability-scale-out-hsr-suse.md#implement-hana-ha-hooks-saphanasrmultitarget-and-suschksrv), you can add a third HANA scale-out site. This third site is often used fordisaster recovery (DR)in another Azure region. The Pacemaker environment is aware of a HANA multi-target DR setup.
106
110
107
-
## HANA scale-out: Setup HANA multi-target system replication for DR purposes
111
+
Failure of the third node will not trigger any cluster action. Cluster detects the replication status of connected sites and the monitored attribute forthird site can change between SOK and SFAIL state. Any takeover tests to third/DR site or executing your DR exercise process should first place the cluster resources into maintenance mode to prevent any undesired cluster action.
108
112
109
-
With SAP HANA HA provider [SAPHanaSrMultiTarget](./sap-hana-high-availability-scale-out-hsr-suse.md#implement-hana-ha-hooks-saphanasrmultitarget-and-suschksrv), a third HANA scale-out site can be added. This third site is commonly used fordisaster recovery (DR)in another Azure region. The Pacemaker environment is made aware of a HANA multi-target DR setup.
113
+
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).
114
+

110
115
111
-
Failure of the third site won't trigger any cluster action. Cluster detects the replication status of connected sites and the monitored attribute for third site can change between SOK and SFAIL state. Any takeover tests to third/DR site or executing your DR process should first place the cluster resources into maintenance mode to prevent any undesired cluster action.
112
-
113
-
Example of a multi-target system replication system. For further information, see [SAP documentation](https://help.sap.com/docs/SAP_HANA_PLATFORM/4e9b18c116aa42fc84c7dbfd02111aba/2e6c71ab55f147e19b832565311a8e4e.html).
114
-

115
-
116
-
1. Deploy Azure resources for the third site. Depending on your requirements, a different Azure region is often used for disaster recovery purposes.
116
+
1. Deploy Azure resources for the third site. Depending on your requirements, you can use a different Azure region for disaster recovery purposes.
117
117
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). Deploy the third site following the Azure infrastructure, operating system and HANA installation steps for SITE1 of the scale-out cluster, with the following exceptions:
118
118
- No load balancer deployed for third site and no integration with existing cluster load balancer for the VMs of third site
119
-
- OS packages SAPHanaSR-ScaleOut, SAPHanaSR-ScaleOut-doc and OS package pattern ha_sles aren't installed on third site VMs
119
+
- Don't install OS packages SAPHanaSR-ScaleOut, SAPHanaSR-ScaleOut-doc and OS package pattern ha_sles on third site VMs
120
120
- No majority maker VM for third site, as there's no cluster integration
121
-
- NFS volume /hana/shared for third site exclusive use must be created
121
+
- Create NFS volume /hana/shared for third site exclusive use
122
122
- No integration into the cluster for VMs or HANA resources of the third site
123
123
- No HANA HA hook setup forthird sitein global.ini
124
124
125
-
Same HANA SID and HANA installation number must be used for third site.
125
+
You must use the same HANA SID and HANA installation number for third site.
126
126
127
127
2. With SAP HANA scale-out on third site installed and running, register the third site with the primary site.
128
128
The example uses SITE-DR as the name for third site.
129
129
```bash
130
130
# Execute on the third site
131
131
su - hn1adm
132
-
# Make sure HANA is not running on the third site. If it is started, stop HANA
132
+
# Make sure HANA isn't running on the third site. If it is started, stop HANA
133
133
sapcontrol -nr 03 -function StopSystem
134
134
sapcontrol -nr 03 -function WaitforStopped 600 10
135
135
# Register the HANA third site to the primary
@@ -159,15 +159,19 @@ Example of a multi-target system replication system. For further information, se
159
159
# HANA_S2 30 4 hana-s2-db1 SWAIT S
160
160
```
161
161
162
-
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 is impacted.
162
+
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.
163
+
164
+
</details>
165
+
166
+
## Auto-registering third site
163
167
164
-
### Auto-registering third site
168
+
During planned or unplanned takeover event between the two Pacemaker cluster sites, HSR to third site will be also interrupted. Pacemaker doesn'tmodify HANA replication to third site.
165
169
166
-
During planned or unplanned takeover event between the two Pacemaker cluster sites, HSR to third site will be also interrupted. For Pacemaker setting `AUTOMATED_REGISTER = yes|no` can control registration between Pacemaker controlled sites 1 and 2. The parameter does not control HSR replication to the cluster controlled third site.
170
+
SAP provides since HANA 2 SPS 04 parameter `register_secondaries_on_takeover`. With the parameter set to value `true`, after HSR takeover between cluster sites 1 and 2, HANA will register the third site on the new primary automatically to keep an HSR multi-target setup. Configure HANA parameter `register_secondaries_on_takeover = true` configured in `[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.
167
171
168
-
SAP provides since HANA 2 SPS 04 parameter `register_secondaries_on_takeover`. With the parameter set to value `true`, after HSR takeover between cluster sites 1 and 2, HANA will register the third site on the new primary automatically to keep a HSR multi-target setup. Configure HANA parameter `register_secondaries_on_takeover = true` configured in `[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.
172
+
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.
169
173
170
-
For HSR multi-tier, no automatic registration exist for the third site. Manual registration of thirdsite to the current secondary, to keep HSR replication chain, is needed.
174
+

Copy file name to clipboardExpand all lines: articles/sap/workloads/sap-hana-high-availability-scale-out-hsr-suse.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,9 +99,6 @@ As `/hana/data` and `/hana/log` are deployed on local disks, it is not necessary
99
99
100
100
If you are using Azure NetApp Files, the NFS volumes for `/hana/shared`, are deployed in a separate subnet, [delegated to Azure NetApp Files](../../azure-netapp-files/azure-netapp-files-delegate-subnet.md): `anf` 10.23.1.0/26.
101
101
102
-
> [!IMPORTANT]
103
-
> System replication to a 3rd site is not supported. For details see section "Important prerequisites" in [SLES-SAP HANA System Replication Scale-out Performance Optimized scenario](https://documentation.suse.com/sbp/all/html/SLES4SAP-hana-scaleOut-PerfOpt-12/index.html#_important_prerequisites).
104
-
105
102
## Set up the infrastructure
106
103
107
104
In the instructions that follow, we assume that you've already created the resource group, the Azure virtual network with three Azure network subnets: `client`, `inter` and `hsr`.
0 commit comments