Before using LifeKeeper to create an SAP resource hierarchy, perform the following tasks in the order recommended below. Note that there are additional non-HA specific configuration tasks that must be performed that are not listed below. Consult the appropriate SAP installation guide for additional details.
The following tasks refer to the “SAP Primary Server” and “SAP Backup Server.” The SAP Primary Server is the server on which the Central Services will run during normal operation, and the SAP Backup Server is the server on which the Central Services will run if the SAP Primary Server fails.
Although it is not necessarily required, the steps below include the recommended procedure of protecting all shared file systems with LifeKeeper prior to using them. Prior to LifeKeeper protection, a shared file system is accessible from both servers and is susceptible to data corruption. Using LifeKeeper to protect the file systems preserves single server access to the data.
Before Installing SAP
The tasks in the following topic are required before installing your SAP software. Perform these tasks in the order given. Please also refer to the SAP document SAP Web Application Server in Switchover Environments when planning your installation in NetWeaver Environments.
Installing SAP Software
These tasks are required to install your SAP software for high availability. Perform the tasks below in the order given. Click on each task for details. Please refer to the appropriate SAP Installation Guide for further SAP installation instructions.
Primary Server Installation
Backup Server Installation
Configuring SAP with LifeKeeper
Resource Configuration Tasks
The following tasks explain how to configure your recovery kit by selecting certain options from the Edit menu of the LifeKeeper GUI. Each configuration task can also be selected from the toolbar or you may right-click on a global resource in the Resource Hierarchy Tree (left-hand pane) of the status display window to display the same drop down menu choices as the Edit menu. This, of course, is only an option when a hierarchy already exists.
Alternatively, right-click on a resource instance in the Resource Hierarchy Table (right-hand pane) of the status display window to perform all the configuration tasks, except creating a resource hierarchy, depending on the state of the server and the particular resource.
To Incorporate the SAP HA Library into LifeKeeper
- Add the following lines to the SAP configuration file:
- service/halib = saphascriptco.so
service/halib_cluster_connector = /opt/LifeKeeper/lkadm/subsys/appsuite/sap/bin/sap_sios_cluster_connector
service/halib_debug_level = 1
- Restart sapsatrtsrv
- sapcontrol –nr <NR> -function StopService
sapcontrol –nr <NR> -function StartService <SID>
- Insert in /etc/sudoers or create a new file in /etc/sudoers.d with
- <SID>adm ALL=NOPASSWD:/opt/LifeKeeper/lkadm/subsys/appsuite/sap/bin/sap_sios_cluster_connector-main
Test the SAP Resource Hierarchy
You should thoroughly test the SAP hierarchy after establishing LifeKeeper protection for your SAP software. Perform the tasks in the order given.