Configuring the HA Function for SAP S/4HANA Nodes
Procedure
- Log in to the active SAP S/4HANA node, obtain the ha_auto_script.zip package, and decompress it to any directory.
- Select the region where SAP S/4HANA is to be installed and download the script.
Select the region where SAP S/4HANA is to be installed and download the script. The following uses CN-Hong Kong as an example:
wget https://obs-sap-ap-southeast-1.obs.ap-southeast-1.myhuaweicloud.com/ha_auto_script/ha_auto_script.zip -P /sapcd
The script download addresses for different regions are as follows:
- CN-Hong Kong: https://obs-sap-ap-southeast-1.obs.ap-southeast-1.myhuaweicloud.com/ha_auto_script/ha_auto_script.zip
- AP-Bangkok: https://obs-sap-ap-southeast-2.obs.ap-southeast-2.myhuaweicloud.com/ha_auto_script/ha_auto_script.zip
- AF-Johannesburg: https://obs-sap-af-south-1.obs.af-south-1.myhuaweicloud.com/ha_auto_script/ha_auto_script.zip
- LA-Santiago: https://obs-sap-la-south-2.obs.la-south-2.myhuaweicloud.com/ha_auto_script/ha_auto_script.zip
- LA-Sao Paulo1: https://obs-sap-sa-brazil-11.obs.sa-brazil-1.myhuaweicloud.com/ha_auto_script/ha_auto_script.zip
- LA-Mexico City1: https://obs-sap-na-mexico-1.obs.na-mexico-1.myhuaweicloud.com/ha_auto_script/ha_auto_script.zip
- LA-Mexico City2: https://obs-sap-la-north-2.obs.la-north-2.myhuaweicloud.com/ha_auto_script/ha_auto_script.zip
- Run the following commands to decompress the obtained script package:
unzip ha_auto_script.zip
- Select the region where SAP S/4HANA is to be installed and download the script.
- Set parameters in the ascs_ha.cfg file based on the site requirements. Table 1 describes the parameters in the file.
Table 1 Parameters in the ascs_ha.cfg file Type
Name
Description
masterNode
masterName
ASCS instance node name
masterHeartbeatIP1
Heartbeat plane IP address 1 of the ASCS instance node
masterHeartbeatIP2
Service plane IP address of the ASCS instance node
slaveNode
slaveName
ERS instance node name
slaveHeartbeatIP1
Heartbeat plane IP address 1 of the ERS instance node
slaveHeartbeatIP2
Service plane IP address of the ERS instance node
ASCSInstance
ASCSFloatIP
Service IP address of the ASCS instance node
ASCSInstanceDir
Directory of the ASCS instance
ASCSDevice
Disk partition used by the ASCS instance directory
ASCSProfile
Profile file of the ASCS instance
ERSInstance
NOTE:You need to log in to the ERS instance node to obtain the information about the ERSInstanceDir, ERSDevice, and ERSProfile parameters.
ERSFloatIP
Service IP address of the ERS instance node
ERSInstanceDir
Directory of the ERS instance
ERSDevice
Disk partition used by the ERS instance directory
ERSProfile
Profile file of the ERS instance
trunkInfo
SBDDevice
Independent disk used by the SBD. One or three disks are supported. Every two disks are separated by a comma (,), for example, /dev/sda, /dev/sdb, /dev/sdc.
- Run the following command to perform automatic HA deployment:
sh ascs_auto_ha.sh
- Run the following command to check the resource status:
crm status
After the HA function is configured, HAE manages resources. Do not start or stop resources in other modes. If you need to manually perform test or modification operations, switch the cluster to the maintenance mode first.
crm configure property maintenance-mode=true
Exit the maintenance mode after the modification is complete.
crm configure property maintenance-mode=false
If you need to stop or restart the node, manually stop the cluster service.
systemctl stop pacemaker
After the ECS is started or restarted, run the following command to start the cluster service:
systemctl start pacemaker
To clear the HA configuration, run the following command on the active node for which HA is configured (Roll back to the initial status if the active and standby nodes are switched over.):
sh ascs_auto_ha.sh unconf
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot