Skip to content

Commit

Permalink
DC-SAP-convergent-mediation-ha-setup-sle15 SAP-convergent-mediation-h…
Browse files Browse the repository at this point in the history
…a-setup-sle15-docinfo.xml SAP-convergent-mediation-ha-setup-sle15.adoc Var_SAP-convergent-mediation.adoc: title, images
  • Loading branch information
lpinne committed May 16, 2024
1 parent b9c6029 commit 2414b69
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 36 deletions.
2 changes: 1 addition & 1 deletion DC-SAP-convergent-mediation-ha-setup-sle15
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ADOC_TYPE="article"

ADOC_POST="yes"

ADOC_ATTRIBUTES="--attribute docdate=2022-02-28"
ADOC_ATTRIBUTES="--attribute docdate=2024-05-24"

# stylesheets
STYLEROOT=/usr/share/xml/docbook/stylesheet/sbp
Expand Down
9 changes: 4 additions & 5 deletions adoc/SAP-convergent-mediation-ha-setup-sle15-docinfo.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<dm:docmanager xmlns:dm="urn:x-suse:ns:docmanager">
<dm:bugtracker>
<dm:url>https://github.com/SUSE/suse-best-practices/issues/new</dm:url>
<dm:product>SAP Convergent Mediation ControlZone High Availability Cluster - Setup Guide SLES15</dm:product>
<dm:product>Convergent Mediation ControlZone High Availability Cluster - Setup Guide SLES15</dm:product>
</dm:bugtracker>
</dm:docmanager>
<!-- TODO PRIO1: SAP Convergent Mediation ControlZone ? -->

<!--<title>SAP Convergent Mediation ControlZone High Availability Cluster</title>-->
<!--<title>Convergent Mediation ControlZone High Availability Cluster</title>-->
<!--<subtitle>Setup Guide</subtitle>-->
<!-- <orgname>SUSE Best Practices</orgname>-->
<productname>SUSE Linux Enterprise Server for SAP Applications</productname>
<productnumber>15</productnumber>


<meta name="series">SUSE Best Practices</meta>
<meta name="category">SAP</meta>

<meta name="platform">SUSE Linux Enterprise Server for SAP Applications 15</meta>
<meta name="platform">SAP Convergent Mediation</meta>
<meta name="platform">Convergent Mediation</meta>

<authorgroup>
<author>
Expand Down Expand Up @@ -54,7 +54,6 @@

<!--<date><?dbtimestamp format="B d, Y" ?></date>-->


<abstract>

<para>SUSE® Linux Enterprise Server for SAP Applications is
Expand Down
60 changes: 33 additions & 27 deletions adoc/SAP-convergent-mediation-ha-setup-sle15.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
:slesProdVersion: 15
//

= SAP Convergent Mediation ControlZone High Availability Cluster: Setup Guide
= Convergent Mediation ControlZone High Availability Cluster: Setup Guide

// TODO PRIO1: SAP Convergent Mediation ControlZone ?

// Revision {Revision} from {docdate}
// Standard SUSE includes
Expand All @@ -17,9 +19,6 @@
include::Var_SAP-convergent-mediation.adoc[]
//

////
// TODO PRIOx: example
////

== About this guide

Expand Down Expand Up @@ -129,11 +128,13 @@ details)

The ControlZone services platform and UI are handled as active/passive resources.
The related virtual IP adress is managed by the HA cluster as well.
NFS shares with work directories are mounted statically on all nodes.
The HA cluster does not control that NFS filesystems. However, this filesystem are
monitored.

// TODO PRIO1: picture
A shared NFS filesystem is statically mounted by OS on both cluster nodes. This
filesystem holds work directories. However, the ControlZone software is copied to
both node´s local filesystems.

.Two-node HA cluster and statically mounted filesystems
image::sles4sap_cm_cluster.svg[scaledwidth=100.0%]

A shared NFS filesystem is statically mounted by OS on both cluster nodes. This
filesystem holds work directories. It must not be confused with the ControlZone
Expand All @@ -144,6 +145,9 @@ resource is grouped with the ControlZone platform and IP address. In case of
filesystem failures, the cluster takes action. No mount or umount on the real NFS
share is done.

.ControlZone resource group
image::sles4sap_cm_cz_group.svg[scaledwidth=70.0%]

=== Scope of this document

For the {sleha} two-node cluster described above, this guide explains how to:
Expand Down Expand Up @@ -265,7 +269,7 @@ eight steps.
// [id="sec.cm-ha-cib"]

- Testing the HA cluster
// [id="sec.testing"]
// [id="sec.testing"]



Expand All @@ -288,7 +292,7 @@ already in place. It is good practice to first fill out the parameter sheet.
|Value

| NFS server and share
| {myNFSSrv}:/s/{mySid}/cz
| {myNFSSrv}:/s/{mySid}/cm
|

| NFS mount options
Expand Down Expand Up @@ -393,11 +397,11 @@ TODO on both nodes

[subs="attributes"]
----
# grep -e {myNode1} {myNode1} {myVipNcz} /etc/hosts
# grep -e {myNode1} -e {myNode2} -e {myVipNcz} /etc/hosts
{myIPNode1} {myNode1}
{myIPNode2} {myNode2}
{myVipAcz} {myVipNcz}
{myIPNode1} {myNode1}.fjaell.se {myNode1}
{myIPNode2} {myNode2}.fjaell.se {myNode2}
{myVipAcz} {myVipNcz}.fjaell.se {myVipNcz}
----

See also manual page hosts(8).
Expand Down Expand Up @@ -500,7 +504,7 @@ sbd 686 root 4w CHR 10,130 0t0 410 /dev/watchdog
==== SBD device

It is a good practice to check if the SBD device can be accessed from both nodes
and does contain valid records. Only one SBD device is used this example. For
and contains valid records. Only one SBD device is used in this example. For
production, always three devices should be used.
TODO on both nodes

Expand All @@ -527,7 +531,7 @@ Sector size : 512
Timeout (watchdog) : 20
Timeout (allocate) : 2
Timeout (loop) : 1
Timeout (msgwait) : 40
Timeout (msgwait) : 120
==Header on disk {myDevPartSbd} is dumped
0 {myNode1} clear
0 {myNode2} clear
Expand Down Expand Up @@ -556,6 +560,8 @@ RING ID 0
status = ring 0 active with no faults
----

See appendix for a complete corosync configuration example.
// TODO PRIO2: link to appendix corosync.conf
See also manual page systemctl(1) and corosync-cfgtool(1).

==== systemd cluster services
Expand Down Expand Up @@ -754,7 +760,7 @@ the cluster resource is activated.
# enter the below to crm-fs.txt
primitive rsc_fs_{mySid} ocf:heartbeat:Filesystem \
params device=/usr/sap/{mySid}/.check directory=/usr/sap/.check_{mySid}/ \
params device=/usr/sap/{mySid}/.check directory=/usr/sap/.check_{mySid} \
fstype=nfs4 options=bind,rw,noac,sync,defaults \
op monitor interval=90 timeout=120 on-fail=restart \
op_params OCF_CHECK_LEVEL=20 \
Expand All @@ -776,7 +782,7 @@ and nfs(5).
==== SAP Convergent Mediation ControlZone platform and UI resources

A ControlZone platform resoure rsc_cz_{mySid} is configured, handled by OS user
{mySapAdm}. The local {mzhome}/bin/mzsh is used for monitoring, but for other
{mySapAdm}. The local {mzsh} is used for monitoring, but for other
actions /usr/sap/{mySid}/bin/mzsh is used.

[subs="specialchars,attributes"]
Expand All @@ -786,11 +792,11 @@ actions /usr/sap/{mySid}/bin/mzsh is used.
# enter the below to crm-cz.txt
primitive rsc_cz_{mySid} ocf:suse:SAPCMControlZone \
params SERVICE=platform USER={mySapAdm} \
MZSHELL={mzhome}/bin/mzsh;/usr/sap/{mySid}/bin/mzsh \
MZSHELL={mzsh};/usr/sap/{mySid}/bin/mzsh \
MZHOME={mzhome}/;/usr/sap/{mySid}/ \
MZPLATFORM={mzPlatf} \
JAVAHOME={mzJavah} \
op monitor interval=90 timeout=120 on-fail=restart \
op monitor interval=90 timeout=150 on-fail=restart \
op start timeout=300 \
op stop timeout=300 \
meta priority=100 maintenance=true
Expand All @@ -804,7 +810,7 @@ Load the file to the cluster.
----

A ControlZone UI resoure rsc_ui_{mySid} is configured, handled by OS user
{mySapAdm}. The local {mzhome}/bin/mzsh is used for monitoring, but for other
{mySapAdm}. The local {mzsh} is used for monitoring, but for other
actions /usr/sap/{mySid}/bin/mzsh is used.

[subs="specialchars,attributes"]
Expand All @@ -814,11 +820,11 @@ actions /usr/sap/{mySid}/bin/mzsh is used.
# enter the below to crm-ui.txt
primitive rsc_ui_{mySid} ocf:suse:SAPCMControlZone \
params SERVICE=ui USER={mySapAdm} \
MZSHELL={mzhome}/bin/mzsh;/usr/sap/{mySid}/bin/mzsh \
MZSHELL={mzsh};/usr/sap/{mySid}/bin/mzsh \
MZHOME={mzhome}/;/usr/sap/{mySid}/ \
MZPLATFORM={mzPlatf} \
JAVAHOME={mzJavah} \
op monitor interval=90 timeout=120 on-fail=restart \
op monitor interval=90 timeout=150 on-fail=restart \
op start timeout=300 \
op stop timeout=300 \
meta priority=100 maintenance=true
Expand Down Expand Up @@ -1265,22 +1271,22 @@ primitive rsc_fs_{mySid} ocf:heartbeat:Filesystem \
#
primitive rsc_cz_{mySid} ocf:suse:SAPCMControlZone \
params SERVICE=platform USER={mySapAdm} \
MZSHELL={mzhome}/bin/mzsh;/usr/sap/{mySid}/bin/mzsh \
MZSHELL={mzsh};/usr/sap/{mySid}/bin/mzsh \
MZHOME={mzhome}/;/usr/sap/{mySid}/ \
MZPLATFORM={mzPlatf} \
JAVAHOME={mzJavah} \
op monitor interval=90 timeout=120 on-fail=restart \
op monitor interval=90 timeout=150 on-fail=restart \
op start timeout=300 interval=0 \
op stop timeout=300 interval=0 \
meta priority=100
#
primitive rsc_cz_{mySid} ocf:suse:SAPCMControlZone \
params SERVICE=ui USER={mySapAdm} \
MZSHELL={mzhome}/bin/mzsh;/usr/sap/{mySid}/bin/mzsh \
MZSHELL={mzsh};/usr/sap/{mySid}/bin/mzsh \
MZHOME={mzhome}/;/usr/sap/{mySid}/ \
MZPLATFORM={mzPlatf} \
JAVAHOME={mzJavah} \
op monitor interval=90 timeout=120 on-fail=restart \
op monitor interval=90 timeout=150 on-fail=restart \
op start timeout=300 interval=0 \
op stop timeout=300 interval=0 \
meta priority=100
Expand Down
5 changes: 2 additions & 3 deletions adoc/Var_SAP-convergent-mediation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

:myDevPartSbd: {myDevA}-part1

:mzsh: mzsh
:mzhome: /opt/cz/{mySid}
:mzshpath: {mzhome}/bin/
:mzhome: /opt/cm/{mySid}
:mzsh: {mzhome}/bin/mzsh
:mzdata: /usr/sap/{mySid}/interface
:mzJavah: /usr/lib64/jvm/jre-17-openjdk
:mzPlatf: http://localhost:9000
Expand Down

0 comments on commit 2414b69

Please sign in to comment.