Skip to content

Commit ff58731

Browse files
committed
minor changes
1 parent 6de7084 commit ff58731

File tree

2 files changed

+180
-180
lines changed

2 files changed

+180
-180
lines changed

articles/sap/workloads/high-availability-guide-rhel-multi-sid.md

Lines changed: 131 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -372,155 +372,155 @@ This article assumes that:
372372

373373
If you use enqueue server 2 architecture ([ENSA2](https://help.sap.com/docs/ABAP_PLATFORM_NEW/cff8531bc1d9416d91bb6781e628d4e0/6d655c383abf4c129b0e5c8683e7ecd8.html)), install resource agent resource-agents-sap-4.1.1-12.el7.x86_64 or newer and define the resources for SAP systems `NW2` and `NW3` as follows:
374374

375-
#### [ENSA1](#tab/ensa1)
376-
377-
```bash
378-
sudo pcs property set maintenance-mode=true
379-
380-
sudo pcs resource create rsc_sap_NW2_ASCS10 SAPInstance \
381-
InstanceName=NW2_ASCS10_msnw2ascs START_PROFILE="/sapmnt/NW2/profile/NW2_ASCS10_msnw2ascs" \
382-
AUTOMATIC_RECOVER=false \
383-
meta resource-stickiness=5000 migration-threshold=1 failure-timeout=60 \
384-
op monitor interval=20 on-fail=restart timeout=60 \
385-
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
386-
--group g-NW2_ASCS
387-
388-
sudo pcs resource meta g-NW2_ASCS resource-stickiness=3000
389-
390-
sudo pcs resource create rsc_sap_NW2_ERS12 SAPInstance \
391-
InstanceName=NW2_ERS12_msnw2ers START_PROFILE="/sapmnt/NW2/profile/NW2_ERS12_msnw2ers" \
392-
AUTOMATIC_RECOVER=false IS_ERS=true \
393-
op monitor interval=20 on-fail=restart timeout=60 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
394-
--group g-NW2_AERS
395-
396-
sudo pcs constraint colocation add g-NW2_AERS with g-NW2_ASCS -5000
397-
sudo pcs constraint location rsc_sap_NW2_ASCS10 rule score=2000 runs_ers_NW2 eq 1
398-
sudo pcs constraint order start g-NW2_ASCS then stop g-NW2_AERS kind=Optional symmetrical=false
399-
400-
sudo pcs resource create rsc_sap_NW3_ASCS20 SAPInstance \
401-
InstanceName=NW3_ASCS20_msnw3ascs START_PROFILE="/sapmnt/NW3/profile/NW3_ASCS20_msnw3ascs" \
402-
AUTOMATIC_RECOVER=false \
403-
meta resource-stickiness=5000 migration-threshold=1 failure-timeout=60 \
404-
op monitor interval=20 on-fail=restart timeout=60 \
405-
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
406-
--group g-NW3_ASCS
407-
408-
sudo pcs resource meta g-NW3_ASCS resource-stickiness=3000
409-
410-
sudo pcs resource create rsc_sap_NW3_ERS22 SAPInstance \
411-
InstanceName=NW3_ERS22_msnw3ers START_PROFILE="/sapmnt/NW3/profile/NW2_ERS22_msnw3ers" \
412-
AUTOMATIC_RECOVER=false IS_ERS=true \
413-
op monitor interval=20 on-fail=restart timeout=60 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
414-
--group g-NW3_AERS
415-
416-
sudo pcs constraint colocation add g-NW3_AERS with g-NW3_ASCS -5000
417-
sudo pcs constraint location rsc_sap_NW3_ASCS20 rule score=2000 runs_ers_NW3 eq 1
418-
sudo pcs constraint order start g-NW3_ASCS then stop g-NW3_AERS kind=Optional symmetrical=false
419-
420-
sudo pcs property set maintenance-mode=false
421-
```
422-
423-
#### [ENSA2](#tab/ensa2)
424-
425-
```bash
426-
sudo pcs property set maintenance-mode=true
427-
428-
sudo pcs resource create rsc_sap_NW2_ASCS10 SAPInstance \
429-
InstanceName=NW2_ASCS10_msnw2ascs START_PROFILE="/sapmnt/NW2/profile/NW2_ASCS10_msnw2ascs" \
430-
AUTOMATIC_RECOVER=false \
431-
meta resource-stickiness=5000 \
432-
op monitor interval=20 on-fail=restart timeout=60 \
433-
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
434-
--group g-NW2_ASCS
375+
#### [ENSA1](#tab/ensa1)
376+
377+
```bash
378+
sudo pcs property set maintenance-mode=true
379+
380+
sudo pcs resource create rsc_sap_NW2_ASCS10 SAPInstance \
381+
InstanceName=NW2_ASCS10_msnw2ascs START_PROFILE="/sapmnt/NW2/profile/NW2_ASCS10_msnw2ascs" \
382+
AUTOMATIC_RECOVER=false \
383+
meta resource-stickiness=5000 migration-threshold=1 failure-timeout=60 \
384+
op monitor interval=20 on-fail=restart timeout=60 \
385+
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
386+
--group g-NW2_ASCS
387+
388+
sudo pcs resource meta g-NW2_ASCS resource-stickiness=3000
389+
390+
sudo pcs resource create rsc_sap_NW2_ERS12 SAPInstance \
391+
InstanceName=NW2_ERS12_msnw2ers START_PROFILE="/sapmnt/NW2/profile/NW2_ERS12_msnw2ers" \
392+
AUTOMATIC_RECOVER=false IS_ERS=true \
393+
op monitor interval=20 on-fail=restart timeout=60 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
394+
--group g-NW2_AERS
395+
396+
sudo pcs constraint colocation add g-NW2_AERS with g-NW2_ASCS -5000
397+
sudo pcs constraint location rsc_sap_NW2_ASCS10 rule score=2000 runs_ers_NW2 eq 1
398+
sudo pcs constraint order start g-NW2_ASCS then stop g-NW2_AERS kind=Optional symmetrical=false
399+
400+
sudo pcs resource create rsc_sap_NW3_ASCS20 SAPInstance \
401+
InstanceName=NW3_ASCS20_msnw3ascs START_PROFILE="/sapmnt/NW3/profile/NW3_ASCS20_msnw3ascs" \
402+
AUTOMATIC_RECOVER=false \
403+
meta resource-stickiness=5000 migration-threshold=1 failure-timeout=60 \
404+
op monitor interval=20 on-fail=restart timeout=60 \
405+
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
406+
--group g-NW3_ASCS
435407

436-
sudo pcs resource meta g-NW2_ASCS resource-stickiness=3000
408+
sudo pcs resource meta g-NW3_ASCS resource-stickiness=3000
437409

438-
sudo pcs resource create rsc_sap_NW2_ERS12 SAPInstance \
439-
InstanceName=NW2_ERS12_msnw2ers START_PROFILE="/sapmnt/NW2/profile/NW2_ERS12_msnw2ers" \
440-
AUTOMATIC_RECOVER=false IS_ERS=true \
441-
op monitor interval=20 on-fail=restart timeout=60 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
442-
--group g-NW2_AERS
410+
sudo pcs resource create rsc_sap_NW3_ERS22 SAPInstance \
411+
InstanceName=NW3_ERS22_msnw3ers START_PROFILE="/sapmnt/NW3/profile/NW2_ERS22_msnw3ers" \
412+
AUTOMATIC_RECOVER=false IS_ERS=true \
413+
op monitor interval=20 on-fail=restart timeout=60 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
414+
--group g-NW3_AERS
443415

444-
sudo pcs resource meta rsc_sap_NW2_ERS12 resource-stickiness=3000
416+
sudo pcs constraint colocation add g-NW3_AERS with g-NW3_ASCS -5000
417+
sudo pcs constraint location rsc_sap_NW3_ASCS20 rule score=2000 runs_ers_NW3 eq 1
418+
sudo pcs constraint order start g-NW3_ASCS then stop g-NW3_AERS kind=Optional symmetrical=false
445419

446-
sudo pcs constraint colocation add g-NW2_AERS with g-NW2_ASCS -5000
447-
sudo pcs constraint order start g-NW2_ASCS then start g-NW2_AERS kind=Optional symmetrical=false
448-
sudo pcs constraint order start g-NW2_ASCS then stop g-NW2_AERS kind=Optional symmetrical=false
420+
sudo pcs property set maintenance-mode=false
421+
```
449422

450-
sudo pcs resource create rsc_sap_NW3_ASCS20 SAPInstance \
451-
InstanceName=NW3_ASCS20_msnw3ascs START_PROFILE="/sapmnt/NW3/profile/NW3_ASCS20_msnw3ascs" \
452-
AUTOMATIC_RECOVER=false \
453-
meta resource-stickiness=5000 \
454-
op monitor interval=20 on-fail=restart timeout=60 \
455-
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
456-
--group g-NW3_ASCS
423+
#### [ENSA2](#tab/ensa2)
457424

458-
sudo pcs resource meta g-NW3_ASCS resource-stickiness=3000
425+
```bash
426+
sudo pcs property set maintenance-mode=true
459427
460-
sudo pcs resource create rsc_sap_NW3_ERS22 SAPInstance \
461-
InstanceName=NW3_ERS22_msnw3ers START_PROFILE="/sapmnt/NW3/profile/NW2_ERS22_msnw3ers" \
462-
AUTOMATIC_RECOVER=false IS_ERS=true \
463-
op monitor interval=20 on-fail=restart timeout=60 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
464-
--group g-NW3_AERS
428+
sudo pcs resource create rsc_sap_NW2_ASCS10 SAPInstance \
429+
InstanceName=NW2_ASCS10_msnw2ascs START_PROFILE="/sapmnt/NW2/profile/NW2_ASCS10_msnw2ascs" \
430+
AUTOMATIC_RECOVER=false \
431+
meta resource-stickiness=5000 \
432+
op monitor interval=20 on-fail=restart timeout=60 \
433+
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
434+
--group g-NW2_ASCS
465435
466-
sudo pcs resource meta rsc_sap_NW3_ERS22 resource-stickiness=3000
436+
sudo pcs resource meta g-NW2_ASCS resource-stickiness=3000
467437
468-
sudo pcs constraint colocation add g-NW3_AERS with g-NW3_ASCS -5000
469-
sudo pcs constraint order start g-NW3_ASCS then start g-NW3_AERS kind=Optional symmetrical=false
470-
sudo pcs constraint order start g-NW3_ASCS then stop g-NW3_AERS kind=Optional symmetrical=false
438+
sudo pcs resource create rsc_sap_NW2_ERS12 SAPInstance \
439+
InstanceName=NW2_ERS12_msnw2ers START_PROFILE="/sapmnt/NW2/profile/NW2_ERS12_msnw2ers" \
440+
AUTOMATIC_RECOVER=false IS_ERS=true \
441+
op monitor interval=20 on-fail=restart timeout=60 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
442+
--group g-NW2_AERS
471443
472-
sudo pcs property set maintenance-mode=false
473-
```
444+
sudo pcs resource meta rsc_sap_NW2_ERS12 resource-stickiness=3000
474445
475-
---
446+
sudo pcs constraint colocation add g-NW2_AERS with g-NW2_ASCS -5000
447+
sudo pcs constraint order start g-NW2_ASCS then start g-NW2_AERS kind=Optional symmetrical=false
448+
sudo pcs constraint order start g-NW2_ASCS then stop g-NW2_AERS kind=Optional symmetrical=false
476449
477-
If you're upgrading from an older version and switching to enqueue server 2, see SAP note [2641019](https://launchpad.support.sap.com/#/notes/2641019).
450+
sudo pcs resource create rsc_sap_NW3_ASCS20 SAPInstance \
451+
InstanceName=NW3_ASCS20_msnw3ascs START_PROFILE="/sapmnt/NW3/profile/NW3_ASCS20_msnw3ascs" \
452+
AUTOMATIC_RECOVER=false \
453+
meta resource-stickiness=5000 \
454+
op monitor interval=20 on-fail=restart timeout=60 \
455+
op start interval=0 timeout=600 op stop interval=0 timeout=600 \
456+
--group g-NW3_ASCS
478457
479-
> [!NOTE]
480-
> The timeouts in the above configuration are just examples and might need to be adapted to the specific SAP setup.
458+
sudo pcs resource meta g-NW3_ASCS resource-stickiness=3000
481459
482-
Make sure that the cluster status is ok and that all resources are started. It's not important on which node the resources are running.
483-
The following example shows the cluster resources status, after SAP systems `NW2` and `NW3` were added to the cluster.
460+
sudo pcs resource create rsc_sap_NW3_ERS22 SAPInstance \
461+
InstanceName=NW3_ERS22_msnw3ers START_PROFILE="/sapmnt/NW3/profile/NW2_ERS22_msnw3ers" \
462+
AUTOMATIC_RECOVER=false IS_ERS=true \
463+
op monitor interval=20 on-fail=restart timeout=60 op start interval=0 timeout=600 op stop interval=0 timeout=600 \
464+
--group g-NW3_AERS
484465
485-
```bash
486-
sudo pcs status
466+
sudo pcs resource meta rsc_sap_NW3_ERS22 resource-stickiness=3000
487467
488-
Online: [ rhelmsscl1 rhelmsscl2 ]
468+
sudo pcs constraint colocation add g-NW3_AERS with g-NW3_ASCS -5000
469+
sudo pcs constraint order start g-NW3_ASCS then start g-NW3_AERS kind=Optional symmetrical=false
470+
sudo pcs constraint order start g-NW3_ASCS then stop g-NW3_AERS kind=Optional symmetrical=false
489471
490-
Full list of resources:
472+
sudo pcs property set maintenance-mode=false
473+
```
491474

492-
rsc_st_azure (stonith:fence_azure_arm): Started rhelmsscl1
493-
Resource Group: g-NW1_ASCS
494-
fs_NW1_ASCS (ocf::heartbeat:Filesystem): Started rhelmsscl1
495-
vip_NW1_ASCS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
496-
nc_NW1_ASCS (ocf::heartbeat:azure-lb): Started rhelmsscl1
497-
rsc_sap_NW1_ASCS00 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
498-
Resource Group: g-NW1_AERS
499-
fs_NW1_AERS (ocf::heartbeat:Filesystem): Started rhelmsscl2
500-
vip_NW1_AERS (ocf::heartbeat:IPaddr2): Started rhelmsscl2
501-
nc_NW1_AERS (ocf::heartbeat:azure-lb): Started rhelmsscl2
502-
rsc_sap_NW1_ERS02 (ocf::heartbeat:SAPInstance): Started rhelmsscl2
503-
Resource Group: g-NW2_ASCS
504-
fs_NW2_ASCS (ocf::heartbeat:Filesystem): Started rhelmsscl1
505-
vip_NW2_ASCS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
506-
nc_NW2_ASCS (ocf::heartbeat:azure-lb): Started rhelmsscl1
507-
rsc_sap_NW2_ASCS10 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
508-
Resource Group: g-NW2_AERS
509-
fs_NW2_AERS (ocf::heartbeat:Filesystem): Started rhelmsscl1
510-
vip_NW2_AERS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
511-
nc_NW2_AERS (ocf::heartbeat:azure-lb): Started rhelmsscl1
512-
rsc_sap_NW2_ERS12 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
513-
Resource Group: g-NW3_ASCS
514-
fs_NW3_ASCS (ocf::heartbeat:Filesystem): Started rhelmsscl1
515-
vip_NW3_ASCS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
516-
nc_NW3_ASCS (ocf::heartbeat:azure-lb): Started rhelmsscl1
517-
rsc_sap_NW3_ASCS20 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
518-
Resource Group: g-NW3_AERS
519-
fs_NW3_AERS (ocf::heartbeat:Filesystem): Started rhelmsscl1
520-
vip_NW3_AERS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
521-
nc_NW3_AERS (ocf::heartbeat:azure-lb): Started rhelmsscl1
522-
rsc_sap_NW3_ERS22 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
523-
```
475+
---
476+
477+
If you're upgrading from an older version and switching to enqueue server 2, see SAP note [2641019](https://launchpad.support.sap.com/#/notes/2641019).
478+
479+
> [!NOTE]
480+
> The timeouts in the above configuration are just examples and might need to be adapted to the specific SAP setup.
481+
482+
Make sure that the cluster status is ok and that all resources are started. It's not important on which node the resources are running.
483+
The following example shows the cluster resources status, after SAP systems `NW2` and `NW3` were added to the cluster.
484+
485+
```bash
486+
sudo pcs status
487+
488+
# Online: [ rhelmsscl1 rhelmsscl2 ]
489+
490+
# Full list of resources:
491+
492+
# rsc_st_azure (stonith:fence_azure_arm): Started rhelmsscl1
493+
# Resource Group: g-NW1_ASCS
494+
# fs_NW1_ASCS (ocf::heartbeat:Filesystem): Started rhelmsscl1
495+
# vip_NW1_ASCS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
496+
# nc_NW1_ASCS (ocf::heartbeat:azure-lb): Started rhelmsscl1
497+
# rsc_sap_NW1_ASCS00 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
498+
# Resource Group: g-NW1_AERS
499+
# fs_NW1_AERS (ocf::heartbeat:Filesystem): Started rhelmsscl2
500+
# vip_NW1_AERS (ocf::heartbeat:IPaddr2): Started rhelmsscl2
501+
# nc_NW1_AERS (ocf::heartbeat:azure-lb): Started rhelmsscl2
502+
# rsc_sap_NW1_ERS02 (ocf::heartbeat:SAPInstance): Started rhelmsscl2
503+
# Resource Group: g-NW2_ASCS
504+
# fs_NW2_ASCS (ocf::heartbeat:Filesystem): Started rhelmsscl1
505+
# vip_NW2_ASCS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
506+
# nc_NW2_ASCS (ocf::heartbeat:azure-lb): Started rhelmsscl1
507+
# rsc_sap_NW2_ASCS10 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
508+
# Resource Group: g-NW2_AERS
509+
# fs_NW2_AERS (ocf::heartbeat:Filesystem): Started rhelmsscl1
510+
# vip_NW2_AERS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
511+
# nc_NW2_AERS (ocf::heartbeat:azure-lb): Started rhelmsscl1
512+
# rsc_sap_NW2_ERS12 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
513+
# Resource Group: g-NW3_ASCS
514+
# fs_NW3_ASCS (ocf::heartbeat:Filesystem): Started rhelmsscl1
515+
# vip_NW3_ASCS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
516+
# nc_NW3_ASCS (ocf::heartbeat:azure-lb): Started rhelmsscl1
517+
# rsc_sap_NW3_ASCS20 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
518+
# Resource Group: g-NW3_AERS
519+
# fs_NW3_AERS (ocf::heartbeat:Filesystem): Started rhelmsscl1
520+
# vip_NW3_AERS (ocf::heartbeat:IPaddr2): Started rhelmsscl1
521+
# nc_NW3_AERS (ocf::heartbeat:azure-lb): Started rhelmsscl1
522+
# rsc_sap_NW3_ERS22 (ocf::heartbeat:SAPInstance): Started rhelmsscl1
523+
```
524524

525525
8. **[A]** Add firewall rules for ASCS and ERS on both nodes. The example below shows the firewall rules for both SAP systems `NW2` and `NW3`.
526526

0 commit comments

Comments
 (0)