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 Clusterso 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_processingwith a value of one1is added to thermtag of yourcluster.conffile:<rm central_processing="1">Since
rgmanagercannot transition to/from the central processing mode, you need to perform a full restart ofrgmanagerin 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.slin 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
rgmanagerto keepscv_ascsandsvc_ersservices running in different nodes, and to stop the latter if only one node remains online in the cluster.svc_ascsandsvc_ersshould match the clustered services names chosen by you incluster.conffile. -
Add the event in your
cluster.confthat pointsrgmanagerto your event script.Define an event in your cluster.conf file within the
rmtag, after the lastserviceentry:<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
ERSinstance 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
