Skip to content

Commit 062706b

Browse files
committed
HSR third site with suse
1 parent efe4c43 commit 062706b

6 files changed

+49
-48
lines changed

articles/sap/workloads/disaster-recovery-sap-hana-suse.md

Lines changed: 49 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,61 @@
11
---
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 highly available SAP HANA solution with third site on SUSE systems.
44
author: msftrobiro
55
ms.author: robiro
66
ms.service: sap-on-azure
7-
ms.subservice: sap-vm-workload
7+
ms.subservice: sap-vm-workloads
8+
ms.workload: infrastructure-services
89
ms.topic: how-to
910
ms.date: 02/21/2023
1011
ms.custom: template-how-to-pattern
1112
---
1213

13-
# HSR third site with Pacemaker
14+
# Add HSR 3-rd site to HANA Pacemaker cluster
1415

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.
1617

1718
## Overview
1819

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 highly available setup. You can deploy the third site in a second Azure region for disaster recovery (DR) purposes.
2021

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.
2223

2324
SAP HANA supports a third system replication site in two modes.
2425
- [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.
2728

2829
## Prerequisites
2930

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.
3132

3233
> [!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.
3436
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
3739
- HANA scale-out only: SLES 15 SP1 or higher
3840
- 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.
4042

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
4244

43-
## HANA scale-up: Setup HANA multi-target system replication for DR purposes
45+
<details>
46+
<summary>SAP HANA scale-up - expand section</summary>
4447

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.
4649

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.
4851

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-
![Example of a multi-target system replication system](./media/sap-hana-availability-two-region/saphanaavailability_hana_system_2region_ha_and_dr_multitarget_3vms.png)
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+
![Example of a HANA scale-up multi-target system replication system](./media/sap-hana-high-availability/sap-hana-high-availability-scale-up-hsr-multi-target.png)
5154

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.
5356
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:
5457
- 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
5659
- No integration into the cluster for VM or HANA resources of the third site
5760
- No HANA HA hook setup for third site in global.ini
5861

@@ -64,7 +67,7 @@ Example of a multi-target system replication system. For further information, se
6467
```bash
6568
# Execute on the third site
6669
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
6871
sapcontrol -nr 03 -function StopSystem
6972
sapcontrol -nr 03 -function WaitforStopped 600 10
7073
# Register the HANA third site to the primary
@@ -94,42 +97,39 @@ Example of a multi-target system replication system. For further information, se
9497
# SITE-DR SOK
9598
```
9699

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.
98101

99-
### Auto-registering third site
102+
</details>
100103

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
102105

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>
104108

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 for disaster recovery (DR) in another Azure region. The Pacemaker environment is aware of a HANA multi-target DR setup.
106110

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 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.
108112

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 for disaster 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+
![Example of a HANA scale-out multi-target system replication system](./media/sap-hana-high-availability/sap-hana-high-availability-scale-out-hsr-multi-target.png)
110115

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-
![Example of a multi-target system replication system](./media/sap-hana-high-availability/sap-hana-high-availability-scale-out-hsr-suse-multi-target.png)
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.
117117
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:
118118
- 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
120120
- 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
122122
- No integration into the cluster for VMs or HANA resources of the third site
123123
- No HANA HA hook setup for third site in global.ini
124124

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.
126126

127127
2. With SAP HANA scale-out on third site installed and running, register the third site with the primary site.
128128
The example uses SITE-DR as the name for third site.
129129
```bash
130130
# Execute on the third site
131131
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
133133
sapcontrol -nr 03 -function StopSystem
134134
sapcontrol -nr 03 -function WaitforStopped 600 10
135135
# Register the HANA third site to the primary
@@ -159,15 +159,19 @@ Example of a multi-target system replication system. For further information, se
159159
# HANA_S2 30 4 hana-s2-db1 SWAIT S
160160
```
161161

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
163167

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.
165169
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.
167171
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.
169173
170-
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.
174+
![Example flow of HANA auto-registration third site](./media/sap-hana-high-availability/sap-hana-high-availability-hsr-third-site-auto-register.png)
171175
172176
## Next steps
173177
Loading
46.9 KB
Loading
Loading

articles/sap/workloads/sap-hana-high-availability-scale-out-hsr-suse.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ As `/hana/data` and `/hana/log` are deployed on local disks, it is not necessary
9999

100100
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.
101101

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-
105102
## Set up the infrastructure
106103

107104
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

Comments
 (0)