How do I configure RHEL HA to manage the SAP ERS (Enqueue Replication Server) instance?
Environment
- Red Hat Enterprise Linux 5, 6 with High Availability or Resilient Storage Add-Ons
- SAP with standalone ERS instance.
- High availability using rgmanager
Issue
- How should I configure my
Red Hat Cluster
so the Enqueue Server locking table is preserved across failovers?
Resolution
-
Ensure that you have enabled the central processing mode of rgmanager
Central processing mode needs to be enabled in
rgmanager
, check the rgmanager man page for more details.
In order to enable it ensure that the attributecentral_processing
with a value of one1
is added to therm
tag of yourcluster.conf
file:<rm central_processing="1">
Since
rgmanager
cannot transition to/from the central processing mode, you need to perform a full restart ofrgmanager
in all cluster nodes for this change to be applied, as described in Which configuration changes require a restart of the entire cluster?. -
Create an event file in all cluster nodes.
Create a file named
/usr/share/cluster/event-service-ers.sl
in all cluster nodes with the following content:notice("Event service triggered!"); evalfile("/usr/share/cluster/follow-service.sl"); follow_service("service:svc_ascs", "service:svc_ers", "service:svc_ascs");
This will instruct
rgmanager
to keepscv_ascs
andsvc_ers
services running in different nodes, and to stop the latter if only one node remains online in the cluster.svc_ascs
andsvc_ers
should match the clustered services names chosen by you incluster.conf
file. -
Add the event in your
cluster.conf
that pointsrgmanager
to your event script.Define an event in your cluster.conf file within the
rm
tag, after the lastservice
entry:<events> <event class="service" name="service-ers" file="/usr/share/cluster/event-service-ers.sl"/> </events>
For a more detailed setup description check the reference architecture Deploying Highly Available SAP Servers using Red Hat Clustering.
Please, beware that the node event described in the reference architecture is not required, only the service event is required for successful management of your
ERS
instance byrgmanager
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments