Skip to content

Commit 8c30409

Browse files
authored
Merge pull request #249182 from dennispadia/depadia-priority-fencing-rhel
Priority fencing delay cluster property in RHEL
2 parents 9c364b7 + 8fc2f35 commit 8c30409

6 files changed

+686
-951
lines changed

articles/sap/workloads/high-availability-guide-rhel-netapp-files.md

Lines changed: 88 additions & 379 deletions
Large diffs are not rendered by default.

articles/sap/workloads/high-availability-guide-rhel-nfs-azure-files.md

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: sap-on-azure
88
ms.subservice: sap-vm-workloads
99
ms.topic: tutorial
1010
ms.workload: infrastructure-services
11-
ms.date: 06/21/2023
11+
ms.date: 08/23/2023
1212
ms.author: radeltch
1313
---
1414

@@ -360,7 +360,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
360360
pcs resource defaults update migration-threshold=3
361361
```
362362

363-
1. **[1]** Create a virtual IP resource and health-probe for the ASCS instance
363+
2. **[1]** Create a virtual IP resource and health-probe for the ASCS instance
364364

365365
```bash
366366
sudo pcs node standby sap-cl2
@@ -395,7 +395,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
395395
# vip_NW1_ASCS (ocf::heartbeat:IPaddr2): Started sap-cl1
396396
```
397397

398-
1. **[1]** Install SAP NetWeaver ASCS
398+
3. **[1]** Install SAP NetWeaver ASCS
399399

400400
Install SAP NetWeaver ASCS as root on the first node using a virtual hostname that maps to the IP address of the load balancer frontend configuration for the ASCS, for example **sapascs**, **10.90.90.10** and the instance number that you used for the probe of the load balancer, for example **00**.
401401

@@ -415,7 +415,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
415415
sudo chgrp sapsys /usr/sap/NW1/ASCS00
416416
```
417417

418-
1. **[1]** Create a virtual IP resource and health-probe for the ERS instance
418+
4. **[1]** Create a virtual IP resource and health-probe for the ERS instance
419419

420420
```bash
421421
sudo pcs node unstandby sap-cl2
@@ -455,7 +455,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
455455
# vip_NW1_AERS (ocf::heartbeat:IPaddr2): Started sap-cl2
456456
```
457457

458-
1. **[2]** Install SAP NetWeaver ERS
458+
5. **[2]** Install SAP NetWeaver ERS
459459

460460
Install SAP NetWeaver ERS as root on the second node using a virtual hostname that maps to the IP address of the load balancer frontend configuration for the ERS, for example **sapers**, **10.90.90.9** and the instance number that you used for the probe of the load balancer, for example **01**.
461461

@@ -475,7 +475,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
475475
sudo chgrp sapsys /usr/sap/NW1/ERS01
476476
```
477477

478-
1. **[1]** Adapt the ASCS/SCS and ERS instance profiles
478+
6. **[1]** Adapt the ASCS/SCS and ERS instance profiles
479479

480480
* ASCS/SCS profile
481481

@@ -505,7 +505,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
505505
# Autostart = 1
506506
```
507507

508-
1. **[A]** Configure Keep Alive
508+
7. **[A]** Configure Keep Alive
509509

510510
The communication between the SAP NetWeaver application server and the ASCS/SCS is routed through a software load balancer. The load balancer disconnects inactive connections after a configurable timeout. To prevent this, you need to set a parameter in the SAP NetWeaver ASCS/SCS profile, if using ENSA1. Change the Linux system `keepalive` settings on all SAP servers for both ENSA1/ENSA2. Read [SAP Note 1410736][1410736] for more information.
511511

@@ -514,7 +514,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
514514
sudo sysctl net.ipv4.tcp_keepalive_time=300
515515
```
516516

517-
1. **[A]** Update the /usr/sap/sapservices file
517+
8. **[A]** Update the /usr/sap/sapservices file
518518

519519
To prevent the start of the instances by the sapinit startup script, all instances managed by Pacemaker must be commented out from /usr/sap/sapservices file.
520520

@@ -528,9 +528,9 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
528528
# LD_LIBRARY_PATH=/usr/sap/NW1/ERS01/exe:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; /usr/sap/NW1/ERS01/exe/sapstartsrv pf=/usr/sap/NW1/ERS01/profile/NW1_ERS01_sapers -D -u nw1adm
529529
```
530530

531-
1. **[1]** Create the SAP cluster resources
531+
9. **[1]** Create the SAP cluster resources.
532532

533-
If using enqueue server 1 architecture (ENSA1), define the resources as follows:
533+
If using enqueue server 1 architecture (ENSA1), define the resources as follows:
534534

535535
```bash
536536
sudo pcs property set maintenance-mode=true
@@ -542,7 +542,7 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
542542
op monitor interval=20 on-fail=restart timeout=60 \
543543
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
544544
--group g-NW1_ASCS
545-
545+
546546
sudo pcs resource meta g-NW1_ASCS resource-stickiness=3000
547547
548548
sudo pcs resource create rsc_sap_NW1_ERS01 SAPInstance \
@@ -559,8 +559,8 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
559559
sudo pcs property set maintenance-mode=false
560560
```
561561

562-
SAP introduced support for enqueue server 2, including replication, as of SAP NW 7.52. Starting with ABAP Platform 1809, enqueue server 2 is installed by default. See SAP note [2630416](https://launchpad.support.sap.com/#/notes/2630416) for enqueue server 2 support.
563-
If using enqueue server 2 architecture ([ENSA2](https://help.sap.com/viewer/cff8531bc1d9416d91bb6781e628d4e0/1709%20001/en-US/6d655c383abf4c129b0e5c8683e7ecd8.html)), install resource agent resource-agents-sap-4.1.1-12.el7.x86_64 or newer and define the resources as follows:
562+
SAP introduced support for enqueue server 2, including replication, as of SAP NW 7.52. Starting with ABAP Platform 1809, enqueue server 2 is installed by default. See SAP note [2630416](https://launchpad.support.sap.com/#/notes/2630416) for enqueue server 2 support.
563+
If using enqueue server 2 architecture ([ENSA2](https://help.sap.com/viewer/cff8531bc1d9416d91bb6781e628d4e0/1709%20001/en-US/6d655c383abf4c129b0e5c8683e7ecd8.html)), install resource agent resource-agents-sap-4.1.1-12.el7.x86_64 or newer and define the resources as follows:
564564

565565
```bash
566566
sudo pcs property set maintenance-mode=true
@@ -591,12 +591,12 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
591591
sudo pcs property set maintenance-mode=false
592592
```
593593

594-
If you are upgrading from an older version and switching to enqueue server 2, see SAP note [2641322](https://launchpad.support.sap.com/#/notes/2641322).
594+
If you are upgrading from an older version and switching to enqueue server 2, see SAP note [2641322](https://launchpad.support.sap.com/#/notes/2641322).
595595

596-
> [!NOTE]
597-
> The timeouts in the above configuration are just examples and may need to be adapted to the specific SAP setup.
596+
> [!NOTE]
597+
> The timeouts in the above configuration are just examples and may need to be adapted to the specific SAP setup.
598598

599-
Make sure that the cluster status is ok and that all resources are started. It is not important on which node the resources are running.
599+
Make sure that the cluster status is ok and that all resources are started. It is not important on which node the resources are running.
600600

601601
```bash
602602
sudo pcs status
@@ -616,10 +616,23 @@ The following items are prefixed with either **[A]** - applicable to all nodes,
616616
# nc_NW1_AERS (ocf::heartbeat:azure-lb): Started sap-cl1
617617
# vip_NW1_AERS (ocf::heartbeat:IPaddr2): Started sap-cl1
618618
# rsc_sap_NW1_ERS01 (ocf::heartbeat:SAPInstance): Started sap-cl1
619-
```
619+
```
620+
621+
10. **[1]** Execute below step to configure priority-fencing-delay (applicable only as of pacemaker-2.0.4-6.el8 or higher)
622+
623+
> [!NOTE]
624+
> If you have two-node cluster, you have option to configure priority-fencing-delay cluster property. This property introduces additional delay in fencing a node that has higher total resource priority when a split-brain scenario occurs. For more information, see [Can Pacemaker fence the cluster node with the fewest running resources?](https://access.redhat.com/solutions/5110521).
625+
>
626+
> The property priority-fencing-delay is applicable for pacemaker-2.0.4-6.el8 version or higher. If you are setting up priority-fencing-delay on existing cluster, make sure to unset `pcmk_delay_max` option in fencing device.
627+
628+
```bash
629+
sudo pcs resource defaults update priority=1
630+
sudo pcs resource update rsc_sap_NW1_ASCS00 meta priority=10
631+
632+
sudo pcs property set priority-fencing-delay=15s
633+
```
620634

621-
1. **[A]** Add firewall rules for ASCS and ERS on both nodes
622-
Add the firewall rules for ASCS and ERS on both nodes.
635+
11. **[A]** Add firewall rules for ASCS and ERS on both nodes.
623636

624637
```bash
625638
# Probe Port of ASCS

0 commit comments

Comments
 (0)