Halaman ini belum tersedia dalam bahasa lokal Anda. Kami berusaha keras untuk menambahkan lebih banyak versi bahasa. Terima kasih atas dukungan Anda.
- What's New
- SAP on Cloud Technology Poster
- SAP Deployment Guide
- Data Provider for SAP User Guide
- SAP HA and DR Guide
- SAP Security White Paper
- SAP HANA Overview
-
SAP HANA User Guide (Single Node)
- Introduction
-
Deployment
- Scheme
- Data Planning
- Preparing Resources
- Creating ECSs
- Installing SAP HANA (Single-Node Deployment Without HA Required)
-
Installing SAP HANA (Single-Node Deployment with HA Required)
- Formatting a Disk
- Installing the SAP HANA Software
- Installing the SAP HANA Studio on a Windows ECS
- Installing the SAP HANA Studio on a Linux ECS
- Connecting SAP HANA Nodes to the SAP HANA Studio
- Configuring the Backup Path
- Configuring the System Replication
- Configuring HA on SAP HANA Nodes
- Configuring SAP HANA Storage Parameters
- Installing Data Provider
- Configuring iSCSI (Cross-AZ HA Deployment)
- Management and Monitoring
- Backing Up and Restoring Data
- FAQs
- Appendix
- Change History
- SAP HANA HA and DR Guide
- SAP NetWeaver User Guide
-
SAP Application AS User Guide
- Overview
- Deployment
- SAP Application AS Management
-
FAQs
- What Is SAP Application AS?
- What Are the Advantages of SAP Application AS?
- What Are Restrictions on Using SAP Application AS?
- How Many AS Policies and AS Configurations Can I Create and Use?
- How Many AS Policies Can Be Enabled?
- How Can I View the Logs of SAP Application AS?
- How Do I Change the CPU Threshold?
- Change History
- SAP S/4HANA Quick Deployment Guide
- SAP S/4HANA HA Deployment Guide
- SAP Business One User Guide
- SAP Business One Quick Deployment Guide
-
Best Practices
- SAP Best Practices
- Huawei Cloud SAP on DB2 Installation Best Practice
- Huawei Cloud SAP on SQL Server Installation Best Practice
-
SAP S/4HANA (1809) HA Deployment Best Practice
- Overview
- Preparations
- Resource Planning
- Resource Creation
- Software Installation
- High Availability Configuration
- Change History
- HUAWEI CLOUD SAP Business One on HANA Installation Best Practice
-
SAP Monitoring Best Practices
- Overview
-
Installing the Monitoring Agent
- SAP HANA (Single-Node Deployment Without High Availability Required)
- SAP HANA (Single-Node Deployment With High Availability Required)
- SAP S/4HANA (Single-Node Deployment Without High Availability Required)
- SAP S/4HANA (Single-Node Deployment With High Availability Required)
- SAP S/4HANA (Distributed Deployment with High Availability Required)
- SAP S/4HANA (Distributed Deployment Without High Availability Required)
- SAP ECC
- (Optional) Upgrading the Monitoring Agent
- Viewing Monitoring Metrics
- Configuring Grafana SAP Full Screen Monitoring
- Alarm Configuration
- FAQs
- Best Practices of SAP Migration to HUAWEI CLOUD
- Best Practice of Using Block-Level Migration of SMS to Migrate SAP Applications and Databases Running on Linux Servers
- Best Practice of SAP Migration from XEN to KVM
- Best Practice of SAP Disaster Recovery with SDRS
- Best Practice of Rsync-based SAP Disaster Recovery
- SAP Backint Installation Guide
- Best Practices for Uploading SAP Backups to the OBS Bucket
- Best Practices of the SAP ASE Solution
- Best Practices of SAP System Capacity Expansion
- Change History
-
FAQs
-
FAQs
- Basic Concepts
-
Purchase
- Why Do I Deploy SAP System on the Cloud?
- What Are the Advantages of Huawei SAP on Cloud Solution?
- What SAP Products Does Huawei SAP on Cloud Solution Support?
- Can I Migrate Local SAP Resources Directly to the Cloud?
- Which Billing Mode Should I Choose When Buying SAP Systems on HUAWEI CLOUD?
- Is SAP Hybris Supported?
- How Do I Ensure the Security of SAP Systems Deployed on HUAWEI CLOUD?
- What Are the Advantages of Deploying SAP HANA on HUAWEI CLOUD?
- What Are the Scenarios Supported by Huawei SAP on Cloud Solution?
- Does HUAWEI CLOUD Sell SAP Software Licenses?
- How Do I Use SAP Software Licenses on HUAWEI CLOUD?
- What Are the Application Scenarios of SAP HANA?
- What OSs Can Be Used by SAP Products on HUAWEI CLOUD?
- Can I Deploy SAP Software on HUAWEI CLOUD Immediately Just After Buying It?
- Can I Migrate SAP Systems on Other Clouds to HUAWEI CLOUD?
-
Products
- What SAP HANA Products Does HUAWEI CLOUD Provide?
- What HANA ECSs Does HUAWEI CLOUD Provide?
- What SAP NetWeaver ECSs Does HUAWEI CLOUD Provide?
- How Do I Deploy SAP NetWeaver on HUAWEI CLOUD?
- How Do I Deploy SAP HANA on HUAWEI CLOUD?
- How Do I Back Up and Restore SAP HANA?
- How Do I Deploy HA and DR Systems?
- How Can I Migrate an Existing SAP System to HUAWEI CLOUD?
- How Can I Do Sizing?
- What Modules Does a Typical SAP System Contain?
- How Many SAP Systems are Required to Support Services?
- How Do I Back Up SAP Systems and the HANA Database on HUAWEI CLOUD?
- How Do I Connect to the SAP System on HUAWEI CLOUD?
- Change History
-
FAQs
- Videos
- Glossary
- General Reference
Show all
Copied.
Configuring HA on SAP HANA Nodes
This only applies to SAP HANA nodes running the OS SUSE Linux Enterprise Server 12 SP1 for SAP or later for automatic active/standby switchovers.
In the cross-AZ HA scenario, three ECSs are required. Each ECS is bound to a SCSI disk and iSCSI configuration is required for SBD. For details, see section Configuring iSCSI (Cross-AZ HA Deployment).
Prerequisites
SSH switching between SAP HANA nodes has been allowed.
Procedure
- Attach the SBD volume to the other SAP HANA node.
The reason is as follows: When one SAP HANA node is created, the SBD volume is attached to it. This SBD volume must be attached to the other SAP HANA node.
- On the management console, click Service List and choose Computing > Elastic Cloud Server. On the left side of the page, choose Elastic Cloud Server. The system displays all ECSs on the right side of the page.
- Locate the HANA ECS attached with the SBD volume by ECS name and click its name.
- On the page providing details about the ECS, click the EVS tab and locate the disk of the SBD volume. Then, click the target data disk.
- On the page providing details about the data disk, view and record its mount point. Then, click the data disk ID.
- On the page that is displayed, click Mount Point and then Attach to switch to Attach Disk page.
- On the Attach Disk page, select the target ECS to which the disk is to be attached, ensure that the device name of the ECS is the same as that of the ECS involved in 1.d, and attach the disk to the ECS.
- Create a floating IP address.
- On the management console, click Service List and choose Computing > Elastic Cloud Server. On the left side of the page, choose Elastic Cloud Server to switch to the Elastic Cloud Server page.
- Locate an SAP HANA node and click the HANA ECS name. Then, the page for the HANA ECS details is displayed.
- Click the NICs tab and then Manage Virtual IP Address in the row of the cloud management or backup plane NIC. Then, the system displays the Virtual IP Addresses page.
- Click Assign Virtual IP Address to assign a floating IP address. Locate the row that contains the target IP address, click Bind to Server to bind the IP address to the target ECS, and repeat this operation to bind the IP address to other ECSs.
- Use PuTTY to log in to the NAT server with an elastic IP address bound. Ensure that user root and the key file (.ppk file) are used for authentication. Then, use SSH to switch to the SAP HANA node that works as the active node.
- Run the following commands to check whether the dependency packages patterns-ha-ha_sles and sap-suse-cluster-connector have been installed:
rpm -qa | grep patterns-ha-ha_sles
rpm -qa | grep sap-suse-cluster-connector
- If yes, go to 5.
- If no, run the following commands:
zypper in -y patterns-ha-ha_sles
zypper in -y sap-suse-cluster-connector
- Download scripts and configure the file.
- Download scripts and configure the file.
Access the URL for your region. For detailed URLs, see section Software and Tools. The following command uses the URL for 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 /hana/shared
- Download scripts and configure the file.
- Modify the configuration file.
vi /hana/shared/ha_auto_script/hana_ha.cfg
Set the parameters in the configuration file based on the actual requirements. The following is an example:
[masterNode] # Host name of the active node masterName=hana001 # Heartbeat IP address of the active node masterHeartbeatIP1=10.0.4.2 masterHeartbeatIP2= [slaveNode] # Host name of the standby node slaveName=hana002 # Heartbeat IP address of the standby node slaveHeartbeatIP1=10.0.4.3 slaveHeartbeatIP2= [trunkInfo] # Floating IP address of SAP HANA hanaBusinessIP=10.0.3.103 [hanaInfo] # SBD volume path SBDDevice=/dev/sdc,/dev/sdd,/dev/sde # SAP HANA administrator account hanaUser=s00adm # SAP HANA instance number InstanceNumber=00
NOTE:
This script supports the configuration of the two heartbeat network planes. During the configuration, you need to add the IP addresses of the server or client plane after masterHeartbeatIP2 and slaveHeartbeatIP2 parameters respectively in the script.
In the cross-AZ scenario, configure SBDDevice to the drive letters of SBD volumes on the three ECSs. For example, SBDDevice=/dev/sbd1,/dev/sbd2,/dev/sbd3.
- Run the following commands to grant the execute permission to the script:
cd ha_auto_script
chmod +x hana_auto_ha.sh
- Execute the script.
sh hana_auto_ha.sh
NOTE:
- If the script execution fails, you have to run the command sh hana_auto_ha.sh unconf to roll back manually before executing the script again. In addition, configure the ha_auto.cfg file based on the latest drive letter of the SBD volume.
- After the switchover between active and standby nodes is complete, configure the new standby node to make HA take effect. Perform the operations described as follows:
1. Run the following command on the standby node to switch to the administrator mode:
su - <SID>adm
2. Stop the database of the standby node.
HDB stop
3. Register the standby node with the active node.
Set secondary to the host name of the new active node. Set site_name to the original active node name defined when configuring System Replication.
hdbnsutil -sr_register --remoteHost=<secondary> --remoteInstance=<instance_number> --replicationMode=sync --name=<site_name>
4. Start the database on the standby node and exit the administrator mode.
HDB start
exit
5 Run the following command on both the active and standby nodes to start the HAE service:
systemctl start pacemaker
6. Clear resources on the original active node (current standby node).
rsc_SAPHana_SLE_HDB00 is an example resource name, which can be obtained by running the crm_mon - r1 command. Set primary to the name of the host on which the standby node is deployed.
crm resource cleanup <rsc_SAPHana_SLE_HDB00> <primary>
The following information is displayed if the command is successfully executed:
Online: [ hana001 hana002 ] Full list of resources: Clone Set: cln_SAPHanaTopology_SLE_HDB00 [rsc_SAPHanaTopology_SLE_HDB00] Started: [ hana001 hana002 ] rsc_ip_SLE_HDB00?(ocf::heartbeat:IPaddr2):?Started hana001 stonith-sbd?(stonith:external/sbd):?Started hana001 Master/Slave Set: msl_SAPHana_SLE_HDB00 [rsc_SAPHana_SLE_HDB00] Masters: [ hana001 ] Slaves: [ hana002 ] All Complete!
- Connect SAP HANA nodes to the SAP HANA Studio again.
- On the SAP HANA Studio, delete the two connected SAP HANA nodes. Then, use the floating IP address of the SAP HANA nodes to connect them to the SAP HANA Studio again and configure the backup path.
NOTE:
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
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