SAP Best Practices
SAP Best Practices
Issue 01
Date 2024-03-12
and other Huawei trademarks are the property of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei
Cloud and the customer. All or part of the products, services and features described in this document may
not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all
statements, information, and recommendations in this document are provided "AS IS" without
warranties, guarantees or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Contents
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. iii
SAP Best Practices
SAP Best Practices Contents
4.4.7.1 Formatting the File System for Active and Standby SAP HANA ECSs.......................................................184
4.4.7.2 Formatting the File System for Active and Standby SAP S/4HANA ECSs................................................ 187
4.4.8 Configuring the Mappings Between IP Addresses and Hostnames...............................................................191
4.4.8.1 SAP HANA ECS Configuration................................................................................................................................. 191
4.4.8.2 SAP S/4HANA ECS Configuration...........................................................................................................................192
4.4.9 Configuring SSH Switching Permissions..................................................................................................................193
4.5 Software Installation......................................................................................................................................................... 196
4.5.1 Installing SAP HANA...................................................................................................................................................... 196
4.5.2 Installing SAP S/4HANA................................................................................................................................................200
4.5.2.1 Adding a Virtual IP Address..................................................................................................................................... 200
4.5.2.2 Installing ASCS Instance1..........................................................................................................................................201
4.5.2.3 Copying Files................................................................................................................................................................. 209
4.5.2.4 Installing ERS Instance............................................................................................................................................... 209
4.5.2.5 Installing DB Instance................................................................................................................................................ 217
4.5.2.6 Installing Primary Application Server (PAS) Instance..................................................................................... 229
4.5.2.7 Installing Additional Application Server (AAS) Instance................................................................................241
4.6 High Availability Configuration..................................................................................................................................... 249
4.6.1 SAP HANA HA Configurations.................................................................................................................................... 250
4.6.1.1 Configuring the Backup Path.................................................................................................................................. 250
4.6.1.2 Configuring the System Replication...................................................................................................................... 254
4.6.1.3 Configuring HA on SAP HANA Nodes.................................................................................................................. 257
4.6.1.4 Configuring SAP HANA Storage Parameters..................................................................................................... 263
4.6.2 SAP S/4HANA HA Configurations............................................................................................................................. 264
4.6.2.1 Modifying the Hosts Configuration File...............................................................................................................264
4.6.2.2 Checking the Directory.............................................................................................................................................. 266
4.6.2.3 Installing SAP Resource Agents.............................................................................................................................. 266
4.6.2.4 Updating sap_suse_cluster_connector.................................................................................................................. 266
4.6.2.5 Configuring the HA Function for SAP S/4HANA Nodes................................................................................. 267
4.6.2.6 Verifying the Configuration...................................................................................................................................... 272
4.7 Change History.................................................................................................................................................................... 274
5 HUAWEI CLOUD SAP Business One on HANA Installation Best Practice.............. 275
5.1 Introduction.......................................................................................................................................................................... 275
5.2 Pre-installation Preparations.......................................................................................................................................... 276
5.3 Resource Planning.............................................................................................................................................................. 276
5.3.1 Network Planning........................................................................................................................................................... 276
5.3.2 Security Group Planning............................................................................................................................................... 277
5.3.3 File System Planning...................................................................................................................................................... 278
5.3.4 ECS Planning..................................................................................................................................................................... 279
5.4 Preparing for the Installation......................................................................................................................................... 280
5.4.1 Creating a VPC................................................................................................................................................................. 280
5.4.2 Creating a Security Group............................................................................................................................................ 283
5.4.3 Creating ECSs.................................................................................................................................................................... 285
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. vii
SAP Best Practices
SAP Best Practices Contents
13 Best Practices for Uploading SAP Backups to the OBS Bucket.............................. 517
13.1 Overview............................................................................................................................................................................. 517
13.1.1 Object Storage Service................................................................................................................................................ 517
13.1.2 Script................................................................................................................................................................................. 518
13.1.3 Dependency.................................................................................................................................................................... 518
13.2 Preparations Before the Upload..................................................................................................................................518
13.2.1 Preparing the Environment....................................................................................................................................... 518
13.2.2 Downloading Software............................................................................................................................................... 519
13.2.3 Modifying the Configuration File............................................................................................................................ 520
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. viii
SAP Best Practices
SAP Best Practices Contents
SAP Monitoring Best This section describes how to deploy the SAP
Practices large-screen monitoring on the public cloud
platform to monitor the SAP system and learn
about the resource usage, alarms, and SAP system
running status in real time.
Best Practices of SAP This section describes how to migrate the SAP
Migration to HUAWEI system to HUAWEI CLOUD. HUAWEI CLOUD
CLOUD provides an improved solution to help you migrate
with higher efficiency and lower costs.
Best Practice of SAP This section describes how to migrate the SAP
Migration from Xen to system from the Xen platform of HUAWEI CLOUD
KVM to the KVM platform to meet service development
and capacity expansion requirements.
SAP Backint Installation This section describes how to install Backint Agent
Guide to back up the data in the SAP HANA database to
the OBS bucket, restore the data using backups,
and delete backups.
Best Practices for This section describes how to use scripts to call
Uploading SAP Backups obsutil to back up local files to the OBS bucket
to the OBS Bucket and store copies locally within a certain period of
time.
Best Practices of the SAP This section describes the HUAWEI CLOUD SAP on
ASE Solution ASE solution, including information about resource
selection, system backup, high availability (HA),
disaster recovery (DR), and offline system
migration. HUAWEI CLOUD provides various cloud
services to ensure stable and secure running of the
SAP Adaptive Server Enterprise (ASE) system.
Best Practices of SAP This section describes how to expand ECSs and EVS
System Capacity disk capacity in the SAP systems.
Expansion
This document cannot replace the standard SAP document. If you have any
trouble in installing and using SAP due to its own problems, contact the SAP
technical support.
This document is written based on the OS SUSE Linux Enterprise Server and
applies to the standalone installation and deployment of SAP on DB2. The
deployment modes mentioned in the document are only for reference. Install it by
referring to the standard SAP installation manual or based on site requirements.
For details about the official SAP installation guide and related notes, see the
following documents:
2.2 Preparations
Logging in to Huawei Cloud
Before deploying the SAP system on Huawei Cloud, register a HUAWEI ID and
enable Huawei Cloud services. Through this account, you can use Huawei Cloud
services and pay only for the services you use.
For details, see Registering a HUAWEI ID and Enabling Huawei Cloud Services.
You can log in to Huawei Cloud using any of the methods described in Logging In
to Huawei Cloud.
SAP License
SAP is authorized in Bring Your Own License (BYOL) mode. In this mode, you need
to log in to the SAP Support Portal and apply for a license.
NAT Server
Prepare a Network Address Translation (NAT) server on which SAP GUI for
accessing SAPinst installation page and SAP application is installed.
plane. You need to configure the security group together with the network
department. For details about SAP's requirements for security group rules, see
TCP/IP ports used by SAP applications.
You can configure the security group by referring to Table 1 SAP node security
group rules.
NOTE
● Plan the network segments and IP addresses based on the site requirements. The
following security group rules are for reference only. You can configure your own
security group rules as needed.
● In the following table, ## stands for the SAP instance number, which must be consistent
with the instance number specified when the SAP software is installed. If there are
multiple instance numbers, enter them in sequence.
Inbound
Outbound
For details about the file system size, see section "3.1 Setting Up File Systems for
Shared Disk Scenario" in related SAP official document.
Table 2-2
File System Description
/ 100 GB - No OS volume
Table 2-3
Requirement Parameter
Software Planning
The following table lists the requirements of the SAP application and database for
OS. For details, see SAP official document.
Table 2-4
Requirement Parameter
DB None
Instance
Procedure
Step 1 Log in to the management console.
Step 2 Click in the upper left corner and select the desired region and project.
Step 3 In the navigation pane on the left, click and choose Network > Virtual
Private Cloud.
CIDR Block (of the The CIDR block for the subnet. This
subnet) value must be within the VPC CIDR
block. Configure the subnet CIDR block
based on the information provided in
Network Planning.
----End
Procedure
Step 1 Create a SAP security group.
Choose Access Control > Security Groups in the navigation pane on the left of
the VPC console. On the Security Groups page, click Create Security Group.
----End
/sapmnt 40 High
I/O
SWAP 30 High
I/O
Step 1 Log in to the HUAWEI CLOUD management console, click the service list icon, and
choose Computing > Elastic Cloud Server.
Step 3 Select the ECS flavor, image, and disk size based on Table 2-7.
Step 4 Click Next: Configure Network. Select the created VPC and security group,
confirm the configuration, and click Next: Configure Advanced Settings.
Step 5 Enter the ECS name and password of the root user, and click Next: Confirm.
Step 8 After ECSs are created, locate the created ECSs in the ECS list and click Remote
Login in the Operation column. Log in to the ECSs as user root using VNC.
----End
Step 3 Log in to the ECS server and create the mkdir /db2sfs folder.
----End
mkfs.xfs /dev/vdb
mkfs.xfs /dev/vdc
mkfs.xfs /dev/vde
Run the mount -a command to mount all disks and run the df -h command to
check the disk mounting results.
----End
Step 4 Run the following command to check the size of the current memory and swap
space. The default unit is KB, and the unit of -m is MB
free -m
Step 5 Run the following command to check swap information, including detailed
information about files and partitions.
swapon -s
----End
Step 1 Run the vi /etc/hosts command to add the IP addresses mapped to the host
names.
----End
Step 1 Decompress the ERP6.0 EHP7 software package compressed using exe in Windows
and copy it to the SAP DB2 virtual machine (VM) using SCP. An example is as
follows:
Step 2 Go to the directory where the downloaded software package is stored on the ECS
and run the unzip command to decompress it. An example is provided as follows:
Step 3 Go to the DATA_UNITS folder and modify the LABELIDX.ASC file. This step will be
verified during SAP software installation.
vi LABELIDX.ASC
----End
Step 1 On the HUAWEI CLOUD console, log in to the ECS as the root user using VNC,
right-click, and choose Open in Terminal.
Step 5 Choose SAP NetWeaver 7.5 > IBM DB2 for Linux, UNIX, and Windows >
Installation > Application Server ABAP > Standard System > Standard System,
and click Next.
Step 8 Deselect Set FQDN for SAP system and click Next.
Step 9 Enter the passwords of all users to be created and click Next.
Step 10 Enter the SID of the database to be created, select a file system, and click Next.
Step 12 Select the path where the kernel software package is stored and click Next.
Step 13 After the software package status changes to Available, click Next.
Step 15 Select the path where EXPORT_1 is located and click Next.
Step 16 Select the path where EXPORT3 is located and click Next.
Step 17 Select the path where EXPORT2 is located and click Next.
Step 18 Select the path where RDBMS is located and click Next.
vi /etc/services
Step 21 Change the default port to an idle one in the service and the security group, and
click Next.
Step 22 Select the path of the Client database for the first installation and click Next.
Step 26 Enter the ASCS and PAS instance numbers and click Next.
----End
Step 1 Go to the SAP GUI installation directory. Run the installation program.
Step 3 Select the components to be installed. Here, click Select all and then Next.
Step 4 Select the installation location for each component. Retain the default settings
and click Next until the installation location is set for all components.
Step 6 After the installation is complete, restart the computer as required. You can restart
it during off-peak hour.
----End
----End
Step 3 Enter the IP address of SAP on DB2, instance ID of PAS, and SID, and click Next.
Step 6 Enter the username ddic and password, and press Enter.
Step 8 Enter slicense in the search box and press Enter to view the hardware key.
----End
This document cannot replace the standard SAP document. If you have any
trouble in installing and using SAP due to its own problems, contact the SAP
technical support.
This document is written based on the Windows OS. The deployment methods
mentioned in the document are only for reference. Install SAP on SQL Server by
referring to the standard SAP installation manual or based on site requirements.
For details about the official SAP installation guide and related notes, see the
following documents:
For details, see Registering a HUAWEI ID and Enabling Huawei Cloud Services.
You can log in to Huawei Cloud using any of the methods described in Logging In
to Huawei Cloud.
SAP License
SAP is authorized in Bring Your Own License (BYOL) mode. In this mode, you need
to log in to the SAP Support Portal and apply for a license.
NOTE
● Plan the network segments and IP addresses based on the site requirements. The
following security group rules are for reference only. You can configure your own
security group rules as needed.
● In the following table, ## stands for the SAP instance number, which must be consistent
with the instance number specified when the SAP software is installed.
Inbound
Outbound
Table 3-2
Directory Type Directory Structure Description
Table 3-3
Item Requirement
Software Planning
The following table lists the requirements of the SAP application and database for
OS. For details, see SAP official document.
Table 3-4
Item Requirement
Windows OS 64Bit
It must be later than Windows Server
2008 (R2).
Item Requirement
SAP-certified ECSs must be used for installing the SAP application. For details,
see SAP Note 2582296 - SAP Applications on Huawei Cloud Supported
Products and ECS VM types.
● Operating system
The following table lists the OS supported by SAP ECSs.
PAS Instance 02
DB Instance None
When creating a VPC, create the subnet 10.10.1.0, which is used as the server/
client plane IP address and system replication/heartbeat plane IP address of SAP
and DB2.
Procedure
Step 1 Log in to the management console.
Step 2 Click in the upper left corner and select the desired region and project.
Step 3 In the navigation pane on the left, click and choose Network > Virtual
Private Cloud.
CIDR Block (of the The CIDR block for the subnet. This
subnet) value must be within the VPC CIDR
block. Configure the subnet CIDR block
based on the information provided in
Network Planning.
Procedure
Step 1 Create a SAP security group.
Choose Access Control > Security Groups in the navigation pane on the left of
the VPC console. On the Security Groups page, click Create Security Group.
Step 3 Click OK. Locate the row that contains the newly created security group, and click
Manage Rule in the Operation column to switch to the page for managing
inbound and outbound rules. On the Inbound Rules tab, click Add Rule. In the
displayed dialog box, add the desired ports listed in Security Group Planning.
----End
Step 1 Log in to the HUAWEI CLOUD management console, click the service list icon, and
choose Computing > Elastic Cloud Server.
Step 3 Select the ECS flavor, image, and disk size based on Table 3-6.
Step 4 Click Next: Configure Network. Select the created VPC and security group,
confirm the configuration, and click Next: Configure Advanced Settings.
Step 5 Enter the ECS name and password of the root user, and click Next: Confirm.
Step 8 After ECSs are created, locate the created ECSs in the ECS list and click Remote
Login in the Operation column. Log in to the ECSs as user root using VNC.
----End
Step 1 In the window similar to the following figure, click Administrative Tools.
----End
3. In the displayed dialog box, choose Advanced > Virtual memory > Change.
4. In the Custom size area of the displayed dialog box, set Initial size (MB) and
Maximum size (MB) to 65536. Then, click Set and OK.
3. On the Edit menu, point to New, and then click DWORD Value.
After the IP addresses and host names are added to the ECSs, restart them.
Step 2 (Optional) If the downloaded package is in the SAR format, run the SAPCAR -xvf
SWPM20SP04*.SAR command in CMD to decompress it to the current file.
----End
Step 2 Retain the default settings, press Enter, and wait until the installation is complete.
----End
Step 6 Deselect Set FQDN for SAP System and click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 100
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 101
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 18 Configure the PAS and ASCS instance numbers and host names and click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 102
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 103
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 104
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 105
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 106
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
1. Go to the SQL Server Client installation directory and run the installation
program.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 107
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
2. Select I accept the terms in the license agreement, and click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 108
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
4. Click Install.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 109
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Go to the SAP AAS installation directory and run the installation program.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 110
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 111
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 5 You will log out of the ECS after clicking OK. You need to log in to the ECS again.
After the login, the SAP installation program automatically runs and continues to
install the SAP application.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 112
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 6 Enter the username and password to log in and continue the installation.
Step 7 Find the location of the profile file on ecssap1. The profile file location is
automatically shared in Windows OS. Write the profile file directory in the
following format and click Next.
\\ecssap1\sapmnt\S01\SYS\profile
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 113
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 114
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 115
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 116
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 117
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 118
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 119
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 120
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 121
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
----End
Step 1 Go to the SAP GUI installation directory. Run the installation program.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 122
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 123
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 3 Select the components to be installed. Here, click Select all and then Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 124
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 4 Select the installation location for each component. Retain the default settings
and click Next until the installation location is set for all components.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 125
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 126
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 6 After the installation is complete, restart the computer as required. You can restart
it during off-peak hour.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 127
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 128
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 2 Select Sap System, choose Action > Start, enter the password, and click OK.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 129
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 130
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 4 Enter the username and password of the administrator, and then click OK.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 131
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 5 Wait for a while. When all the icons before the instance name become green, the
SAP instances are running normally.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 132
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 133
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 134
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 3 Configure required parameters based on the site requirements and click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 135
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 136
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 137
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 5 Type the username ddic and the password, and then press Enter.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 138
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 139
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Step 7 Enter slicense in the search box and press Enter to view the hardware key.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 140
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 141
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
----End
3.7 FAQ
Symptom
1. SAP failed to be started because the disp+work instance is not started.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 142
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
2. View logs.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 143
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
The root cause is that the domain name has not been added to the hosts file.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 144
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Solution
1. Add the domain name to the hosts file.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 145
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 146
SAP Best Practices 3 Huawei Cloud SAP on SQL Server Installation Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 147
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Overview
Preparations
Resource Planning
Resource Creation
Software Installation
High Availability Configuration
Change History
4.1 Overview
This document provides instructions to prepare resources (such as ECSs and
network resources) on the public cloud platform, and install SAP S/4HANA (1809)
in high availability (HA) mode. SAP S/4HANA is authorized in Bring Your Own
License (BYOL) mode. In this mode, you must log in at SAP Support Portal Home
and apply for a license.
This document cannot replace the standard SAP document. If you have any
trouble in installing and using SAP S/4HANA due to its own problems, contact the
SAP technical support.
This document is written based on the OS SUSE Linux Enterprise Server. The
deployment modes mentioned in the document are only for reference. Install SAP
S/4HANA by referring to the standard SAP installation manual or based on sizing
results and site requirements.
For details about the official SAP installation guide and related notes, see the
following documents:
● SAP Installation Guides
● SAP Notes
● SAP Library
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 148
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
4.2 Preparations
Logging in to Huawei Cloud
Before deploying the SAP system on Huawei Cloud, register a Huawei ID and
enable Huawei Cloud services. Through this account, you can use Huawei Cloud
services and pay only for the services you use.
For details, see Registering a HUAWEI ID and Enabling Huawei Cloud Services
You can log in to Huawei Cloud using any of the methods described in Logging In
to Huawei Cloud.
SAP License
BYOL is used for authorizing SAP HANA and SAP S/4HANA. You need to log in at
SAP Support Portal Home and apply for the licenses.
NAT Server
Prepare a Network Address Translation (NAT) server on which SAP Studio for
accessing SAP HANA and SAP GUI for accessing SAP applications are installed.
NOTE
The IP addresses of the server/client plane and internal heartbeat communication plane
must belong to different subnets.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 149
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 150
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
NOTE
● The network segments and IP addresses are for reference only. The following security
group rules are recommended practices. You can configure your own security group
rules as needed.
● In the following table, ## stands for the SAP HANA instance ID, such as 00. The
instance ID must be the same as that specified during SAP HANA software installation.
For details about SAP HANA instance ID planning, see SAP HANA ECS Planning.
● For more information about the specific ports to be accessed by SAP software and
security group rules, see SAP official documents.
Inbound
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 151
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Outbound
NOTE
● Plan the network segments and IP addresses based on the site requirements. The
following security group rules are recommended practices. You can configure your own
security group rules as needed.
● In the following table, ## stands for the SAP S/4HANA instance ID, which must be
consistent with the instance ID specified when the SAP S/4HANA software is installed.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 152
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Inbound
Outbound
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 153
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
/ 40 GB or N/A No OS volume
larger
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 154
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
NOTE
You only need to create an SBD volume on the active ECS and mount it to the standby ECS.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 155
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
NOTE
SID is the SID parameter specified when SAP S/4HANA is installed., and ## indicates the
instance number when ASCS and ERS are installed. For details, see SAP S/4HANA ECS
Planning.
SAP HANA ECSs must be certified by SAP. For details about the SAP-certified ECSs,
visit https://www.sap.com/dmc/exp/2014-09-02-hana-hardware/enEN/#/
solutions?filters=iaas;ve:5.
● OS
Table 4-6 lists the OS supported by SAP HANA ECSs.
Name Specifications
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 156
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 157
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
DB None
Instance
AAS 03
Instance
Procedure
Step 1 Log in to the management console.
Step 2 Click in the upper left corner and select the desired region and project.
Step 3 Click in the navigation pane on the left, and choose Network > Virtual
Private Cloud.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 158
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 159
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 160
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 161
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
You need to create two security groups, one for the active and standby SAP HANA
ECSs, and the other for the active and standby SAP S/4HANA ECSs.
Procedure
Step 1 Create a security group for SAP HANA ECSs.
1. Choose Access Control > Security Groups in the navigation pane on the left
of the VPC console. On the Security Groups page, click Create Security
Group.
▪ All ports open: The security group that will be created using this
template includes default rules that allow inbound traffic on any
port. Allowing inbound traffic on any port may pose security risks.
Exercise caution when using this template.
– Name: specifies the name of the security group. Name the security group
that is easy to identify, for example, sg_sap_hana.
– Enterprise Project: You can add the security group to an enabled
enterprise project. You can select an enterprise project from the drop-
down list, for example, SAP.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 162
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
3. Click OK.
4. Locate the row that contains the newly created security group sg-sap-hana,
click Manage Rule in the Operation column to switch to the page for
managing inbound and outbound rules. On the Inbound Rules tab, click Add
Rule. In the displayed dialog box, add the desired ports based on Table 4-2.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 163
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
3. Locate the row that contains the newly created security group sg-sap-s4, click
Manage Rule in the Operation column to switch to the page for managing
inbound and outbound rules. On the Inbound Rules tab, click Add Rule. In
the displayed dialog box, add the desired ports based on Table 4-3.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 164
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
In the SAP HANA system, if the backup volume is provided by SFS, you can create
an SFS file system to provide a shared path for SAP HANA ECSs.
Two SFS file systems are created and attached to the active and standby SAP
HANA nodes, respectively. You need to create one SFS file system and mount it
to /sapcd on the active and standby SAP S/4HANA nodes, and create two SFS
Turbo file systems and respectively mount them to /sapmnt and /usr/sap/trans
on the active and standby SAP S/4HANA nodes. For the details about the
parameter configurations for creating SFS and SFS Turbo file systems, see Getting
Started with SFS.
Procedure
Step 1 Click in the navigation pane on the left, and choose Scalable File Service
under Storage.
Step 2 Click Create File System. Set required parameters on the displayed page based on
Table 4-11.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 165
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 166
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Parameter Description
Encryption Optional.
Specifies whether a file system is
encrypted. You can create a file system
that is encrypted or not, but you
cannot change the encryption settings
of an existing file system. If you select
Enable static data encryption, follow
the instructions described in Getting
Started with SFS.
Step 3 Click Create Now. Confirm the file system information and click Submit on the
displayed page. You can locate the created file system using its name in the file
system list. In the Shared Path column, query the shared path.
Step 4 Repeat Step 2 and Step 3 to create other SFS file systems.
1. Create an SFS file system sfs-hana-backup002 and mount it to the /hana/
backup directory on the standby SAP HANA node.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 167
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 168
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
3. Create an SFS file system sfs-s4-sapcd and mount it to the /sapcd directory
on the active and standby SAP S/4HANA nodes.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 169
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 170
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 5 The following figure shows the details about the created SFS file systems.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 171
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Click in the navigation plane on the left, and choose Computing > Elastic
Cloud Server.
Step 2 Click Buy ECS. On the displayed page, configure basic settings of the ECS to be
created for the active SAP HANA node. Table 4-12 describes the parameters.
Specifications For details about SAP HANA ECS specifications, see SAP
HANA ECS Planning.
For example, select m3.8xlarge.8.
System Disk Set this parameter as required. If you need multiple data
disks, click Add Data Disk to add more data disks.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 172
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 3 Click Next: Configure Network and configure network information based on
Table 4-13.
Table 4-13 Network configuration for the active SAP HANA ECS
Parameter Description
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 173
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 4 Click Next: Configure Advanced Settings. On the displayed page, configure the
advanced settings for the active SAP HANA ECS based on Table 4-14.
Table 4-14 Advanced settings for the active SAP HANA ECS
Parameter Description
Cloud Backup and Set it based on the site requirements, for example, Not
Recovery required.
ECS Group (Optional) Specifies a HANA ECS group. When you create ECSs,
the system will allocate the HANA ECSs in the same
server group to different physical servers to ensure the
running reliability of these HANA ECSs.
NOTE
If no ECS group is available, perform the following operations
to create one:
Click Create ECS Group. On the displayed page, click Create
ECS Group, specify the ECS group name, and click OK.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 174
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 6 Repeat Step 2 to Step 5 to create the ECS hana002 for the standby SAP HANA
node.
The procedure for creating the active and standby SAP HANA ECSs is similar. You
do not need to create SBD shared volume when creating the standby SAP HANA
ECS because you can mount the SBD shared volume created for the active SAP
HANA ECS to the standby ECS.
----End
Procedure
Step 1 On the public cloud management console, click in the upper left corner and
choose Computing > Elastic Cloud Server.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 175
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 2 Click Buy ECS in the upper right corner. A page for creating ECSs is displayed.
Step 3 Ser parameters required for creating the ECS s4001 for the active SAP S/4HANA
node based on Table 4-15.
Specifications For details about the SAP S/4HANA ECS specifications, see
SAP S/4HANA ECS Planning.
For example, select c6.4xlarge.4.
System Disk Set this parameter as required. If you need multiple data
disks, click Add Data Disk to add more data disks.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 176
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 4 Click Next: Configure Network and configure network information based on
Table 4-16.
Table 4-16 Network configurations for the active SAP S/4HANA ECS
Parameter Description
Step 5 Click Next: Configure Advanced Settings. On the displayed page, configure the
advanced settings for the active SAP S/4HANA ECS based on Table 4-17.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 177
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 178
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 7 Repeat Step 2 to Step 6 to create an ECS for the standby SAP S/4HANA node.
When creating the standby SAP S/4HANA ECS, you do not need to create a shared
disk.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 179
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Click in the navigation plane on the left, and choose Computing > Elastic
Cloud Server.
Step 2 In the Elastic Cloud Server list, locate the created active SAP HANA ECS and click
the ECS name to view its details.
Step 3 Click the NICs tab and then Manage Virtual IP Address in the row of the ECS
service/management plane NIC.
Step 4 Click Assign Virtual IP Address. In the dialog box that is displayed, select Manual
for Assignment Mode, and configure the IP address based on ECS Planning.
You need to assign three virtual IP addresses: 10.0.3.100, 10.0.3.110, and
10.0.3.120.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 180
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 5 Select a created virtual IP address and click More > Bind to Server in the
Operation column. Bind 10.0.3.100 to the active and standby SAP HANA ECSs,
and respectively bind 10.0.3.110 and 10.0.3.120 to the active and standby SAP S/
4HANA ECSs.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 181
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Bind the SBD shared volume to the standby SAP HANA ECS.
1. Click in the navigation plane on the left of the management console, and
choose Computing > Elastic Cloud Server.
2. Locate the created active SAP HANA ECS hana001 on the displayed page and
click its name to view its details.
3. Click the Disks tab. Locate the disk of the SBD volume and click the target
data disk to view its details.
4. Click the data disk ID. On the displayed page, click Attach Disk in the Servers
area. In the displayed dialog box, select the target ECS hana002 (the standby
SAP HANA node) and click OK.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 182
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 2 Bind the three shared volumes created to the standby SAP S/4HANA ECS.
1. Locate the created active SAP S/4HANA ECS s4001 on the ECS list page and
click its name to view its details.
2. Click the Disks tab. Locate the shared disk and click the target data disk to
view its details.
3. Click the data disk ID. On the displayed page, click Attach Disk in the Servers
area.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 183
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
4. In the displayed dialog box, select the target ECS s4002 (the standby SAP S/
4HANA node) and click OK.
5. Repeat Step 2.1 to Step 2.4 to mount the rest two shared volumes to the
standby SAP S/4HANA ECS.
----End
4.4.7.1 Formatting the File System for Active and Standby SAP HANA ECSs
The data volumes of SAP HANA nodes can be used only after they are formatted
and then attached to required directories.
Log in to ECS hana001 where SAP HANA is to be installed and check the
unformatted disks. Determine the disks of the /usr/sap volume, data volume (two
physical disks are used to make a data volume in using LVM), log volume, shared
volume, and swap volume according to the disk capacity. For details about the
disk capacity planning, see Table 4-4. Then, format the disks, create directories
which disks are to be attached to, and attach the disks.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 184
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Log in to the active SAP HANA ECS, run the following commands shown in the
following figure on CLI to query the disk size, determine mount points of disks
based on the disk capacity, and format the disks. For the data volume, two
physical disks are used to make a data volume in using LVM. For details about
how to creating a logical volume using LVM, see Creating a Logical Volume
Using LVM.
NOTE
There is no need to format the SBD volume attached to the active and standby SAP HANA
ECSs.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 185
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 2 Check the UUID of each disk and write mappings between UUIDs and mount
points to the /etc/fstab file. Then, obtain the shared path of the created SFS file
system and write the mapping between the shared path and the backup volume
to the /etc/fstab file.
NOTE
UUID is the unique character string for disk partitions in a Linux system.
Step 3 Create the directories which the disks are to be attached to and attach the disks.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 186
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 4 Repeat Step 1 to Step 3 to format the file system of the standby SAP HANA ECS.
----End
4.4.7.2 Formatting the File System for Active and Standby SAP S/4HANA
ECSs
The data disks of SAP S/4HANA nodes can be used only after they are formatted
and attached to required directories.
Log in to ECS s4001 where SAP S/4HANA is to be installed and check the
unformatted disks. Determine the disks of the /usr/sap volume, ASCS volume, ERS
volume, SBD volume, and swap volume according to the disk capacity. Then,
format the disks, create directories which disks are to be attached to, and attach
the disks. For details about the disk capacity and mount point, see SAP S/4HANA
File System Planning.
Procedure
Step 1 Log in to the active SAP S/4HANA ECS, run the following commands shown in the
following figure on CLI to query the disk size, determine mount points of disks
based on the disk capacity, and format the disks.
NOTE
There is no need to format the SBD volume attached to the active and standby SAP S/
4HANA ECSs.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 187
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 2 Check the UUIDs of the disks and write them to the /etc/fstab file. The mounting
information of ASCS and ERS volumes does not need to be written to the /etc/
fstab file. You only need to run the commands to mount volumes.
NOTE
● Do not write the attaching information of partitions sda and sdb to the fstab file
because the two partitions will be automatically attached when the HA function of SAP
S/4HANA is configured. Otherwise, the VM may fail to be restarted. Write the attaching
information of other partitions to the fstab file.
● S01 indicates the SID of SAP S/4HANA, and 01 is the instance number of ASCS.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 188
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 3 Mount the SFS file system. Obtain the three mounting addresses on the active SAP
S/4HANA ECS and mount the SFS file system.
Step 4 Log in to the standby SAP S/4HANA ECS and initialize the file system. You only
need to format the local swap and /usr/sap volumes. Follow the operations
described in Step 1 and Step 2.
NOTE
S01 indicates the SID of SAP S/4HANA, and 10 is the instance number of ERS.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 189
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 5 Mount the SFS file system. Obtain the three mounting addresses on the standby
SAP S/4HANA ECS and mount the SFS file system.
NOTE
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 190
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Log in to the active SAP HANA ECS hana001, edit the /etc/hosts file, and write
the mappings between the names and IP addresses of all SAP HANA ECSs to the
file.
NOTE
● If the mapping between 127.0.0.1 and the ECS name exists in the /etc/hosts file, delete
it. For details, see What Should I Do If an SAP Application on an ECS Cannot Be
Started?
● The IP address mentioned in this section is the IP address of the system replication/
heartbeat network plane.
● When configuring the mapping between the private IP address of the active node and
the hostname, add a virtual hostname after the hostname. The virtual hostname will be
used during SAP S/4HANA installation.
Step 2 Log in to the standby SAP HANA ECS hana002, edit the /etc/hosts file, and write
the mappings between the names and IP addresses of all SAP HANA ECSs to the
file.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 191
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Log in to the active SAP S/4HANA ECS s4001 and write the mappings between IP
addresses and names of all SAP S/4HANA ECSs to the /etc/hosts file.
The following uses the mappings between the IP addresses and names of the
active and standby ASCS nodes as an example.
● ascsha indicates the virtual hostname of the active ASCS node and ersha
indicates the virtual hostname of the standby ASCS node. Virtual hostnames
can be customized.
● You do not need to write the mappings between the virtual IP addresses and
virtual hostnames. The virtual IP addresses take effect only after the HA is
configured. Do not bind virtual IP addresses to virtual hostnames before the
virtual IP addresses take effect. After the ASCS and ERS instances are
installed, write the mappings between the virtual IP addresses and virtual
hostnames to the hosts file.
● Add the mapping between the private IP address and name of the active SAP
HANA ECS. Then, change the private IP address to the virtual IP address of
SAP HANA.
Step 2 Log in to the standby SAP S/4HANA ECS s4002, modify the /etc/hosts file, and
write the mappings between IP addresses and names of all SAP S/4HANA ECSs to
the file.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 192
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Log in to the active SAP HANA ECS, generate a key pair, and write the public key
information to the authorized_keys file.
The command is in the following format:
ssh-keygen -t rsa
Press Enter for three consecutive times to generate a key pair.
Step 2 Configure the generated key pair on the standby SAP HANA ECS.
The command is in the following format:
ssh-copy-id -i /root/.ssh/id_rsa.pub root@IP address of the standby SAP HANA
ECS
Enter the password of the standby ECS.
For example, if the IP address of the standby ECS is 10.0.3.31, run the following
command:
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]
Step 3 Run the following command to log in to the standby ECS without a password:
ssh root@IP address of the standby ECS
For example, if the IP address of the standby ECS is 10.0.3.31, run the following
command:
ssh [email protected]
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 193
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 4 Run the following command to generate a key pair for the standby ECS:
ssh-keygen -t rsa
Step 5 Run the following command to configure the generated key pair on the active SAP
HANA ECS:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 194
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
For example, if the IP address of the active ECS is 10.0.3.30, run the following
command:
Step 6 Run the following command to log in to the active ECS without a password:
For example, if the IP address of the standby ECS is 10.0.3.30, run the following
command:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 195
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
The trust relationship between the active and standby SAP HANA ECSs has been
configured.
Step 7 Repeat the preceding steps to configure the trust relationship between the active
and standby SAP S/4HANA ECSs.
NOTE
After the switching, you must switch back to the NAT server. Then, verify the switching
from the NAT server to other nodes.
During the first switching, the system displays the fingerprint as well as the message "Are
you sure you want to continue connecting (yes/no)?". Enter yes and continue the switching.
----End
Procedure
Step 1 Run the following commands to decompress the installation package:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 196
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 2 Go to the directory where the installation package is stored and perform the
installation.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 197
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 198
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 199
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 4 Log in to the other ECS where SAP HANA is to be installed, decompress the
installation package, and install SAP HANA. The installation procedure is the same
as the aforementioned. All parameters except ECS name must be consistent with
preceding ones.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 200
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Log in to the active SAP S/4HANA ECS s4001, and use Software Provisioning
Manager (SWPM) to install ASCS Instance on the VM ascsha.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 201
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 3 Enter the planned SID for SAP System ID and sapmnt for SAP Mount Directory.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 202
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 203
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 204
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 9 Set ASCS Instance Number and ASCS Instance Host Name according to the
installation planning. Enter the VM name (ascsha) of the active SAP S/4HANA ECS
for ASCS Instance Host Name.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 205
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 206
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 13 Check your parameter settings. If they are all correct, click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 207
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 208
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Log in to s4001, compress the SYS file of the /usr/sap/S01 directory, and copy the
file package to the /usr/sap/S01 directory on s4002.
----End
Procedure
Step 1 Log in to the standby SAP S/4HANA ECS s4002 and go to the directory where the
ERS installation package is stored to install it.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 209
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 210
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 211
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 212
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 8 Set Number of the ERS Instance and ERS Instance Host according to the
installation planning. Enter the VM name (ersha) of the standby SAP S/4HANA
node for ERS Instance Host.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 213
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 214
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 11 Check your parameter settings. If they are all correct, click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 215
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 216
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Log in to the active SAP S/4HANA ECS s4001 and go to the directory where the
DB Instance installation package is stored to install it.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 217
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 218
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Set required parameters such as Database Host, Instance Number of the SAP
HANA Database, and Database ID (DBSID). Set Database Host to the VM name
of the active SAP HANA node.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 219
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 220
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 221
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 222
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 223
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 224
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 225
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 226
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 18 Check your parameter settings. If they are all correct, click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 227
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 228
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Go to the directory where the PAS Instance installation package is stored and
install it on the active SAP S/4HANA node.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 229
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 230
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 231
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 232
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 233
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 234
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 11 Set PAS Instance Number and PAS Instance Host Name based on the
installation planning. Set PAS Instance Host Name to the physical hostname of
the active node.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 235
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 236
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 237
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 238
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 19 Check your parameter settings. If they are all correct, click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 239
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 240
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Go to the directory where the AAS Instance installation package is stored and
install it on the standby SAP S/4HANA node.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 241
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 242
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 243
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 7 Set the instance number and enter the password of the SYSTEM user.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 244
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 245
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 11 Set AAS Instance Number and AAS Instance Host Name based on the
installation planning. Set AAS Instance Host Name to the physical hostname of
the standby node.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 246
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 247
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 14 Check your parameter settings. If they are all correct, click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 248
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 249
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Start SAP HANA Studio.
Step 2 In the System area on the left, right-click the database node hana001 and choose
Backup and Recovery > Open Backup Console.
Step 3 Click the Configuration tab in the right pane and configure the backup paths.
Note: The backup paths are /hana/backup/data and /hana/backup/log.
Click the save icon in the upper right corner to save the configuration.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 250
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 4 In the System area on the left, right-click the database node and choose Backup
and Recovery > Back Up System Database... to back up the system database.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 251
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 5 Use default settings and click Next. The Review Backup Settings page is
displayed. Confirm configurations and click Finish. The system starts the backup
task.
Step 6 In the System area on the left, right-click the database node and choose Backup
and Recovery > Back Up Tenant Database... to back up the tenant database.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 252
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 8 Use default settings and click Next. The Review Backup Settings page is
displayed. Confirm configurations and click Finish. The system starts the backup
task.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 253
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 9 Repeat the preceding procedure to configure backup settings and perform backup
for the database node hana002.
----End
Prerequisites
● Before configuring HA, make sure that you have enabled data backup and
backed up the database on the two SAP HANA nodes. For details, see section
Configuring the Backup Path.
● Before configuring HA, make sure that you have written the mappings
between the IP addresses and names of the two SAP HANA ECSs to the /etc/
hosts files of the two ECSs in Configuring the Mappings Between IP
Addresses and Hostnames.
Procedure
Step 1 Configure the System Replication for the active SAP HANA node.
1. Log in to the active SAP HANA ECS hana001.
2. Run the following command to set the node as the active node:
hdbnsutil -sr_enable --name=siteA
In the preceding command, siteA indicates the node name, which can be
customized.
Example: hdbnsutil -sr_enable --name=hana001
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 254
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 2 Copy the files on the active node to the standby node.
1. Log in to the active SAP HANA ECS hana001.
2. Run the following commands to copy the /usr/sap/S00/SYS/global/security/
rsecssfs/data/SSFS_S00.DAT and /usr/sap/S00/SYS/global/security/
rsecssfs/key/SSFS_S00.KEY files from the active node to the standby node.
Ensure that the user group and user to which the copied file belongs are the
same as those of the original file. If they are not consistent, make a manual
adjustment.
scp hana001:/usr/sap/S00/SYS/global/security/rsecssfs/data/SSFS_S00.DAT
scp hana001:/usr/sap/S00/SYS/global/security/rsecssfs/key/SSFS_S00.KEY
Step 3 Configure the System Replication for the standby HANA node.
1. Run the following command to enter the administrator mode:
su – s00adm
2. Run the following command to stop the SAP HANA database:
HDB stop
3. Run the following command to enable System Replication:
hdbnsutil -sr_register --remoteHost=remoteHostName --
remoteInstance=remoteInstanceNumber --replicationMode=sync --
name=siteB
In the preceding command, remoteHostName indicates the hostname of the
active node, remoteInstanceNumber indicates the instance ID of the active
node, and SiteB indicates the name of the standby node, which can be
customized.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 255
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 4 Query the System Replication status in the SAP HANA system.
Run the following command in the administrator mode on the active node:
hdbnsutil -sr_state
Information similar to the following is displayed:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 256
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
----End
Prerequisites
● SSH switching between SAP HANA nodes has been allowed.
● The SBD volume has been mounted to the two SAP HANA ECSs.
● A floating IP address has been created and bound to the two SAP HANA ECSs.
Procedure
Step 1 Log in to the active SAP HANA ECS hana001.
Step 2 Run the following commands to check whether the dependency packages
patterns-ha-ha_sles and sap-suse-cluster-connector have been installed:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 257
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 258
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 259
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
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.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 260
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 261
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
CAUTION
● If the script execution fails, you have to run the command sh hana_auto_ha.sh
unconf to manually perform rollback 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. Run the following command to stop the database of standby node.
HDB stop
3. Register the hostname of the standby node to the active node.
Set secondary to the hostname 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. Run the following commands to start the database of 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
hostname of the current standby node.
crm resource cleanup <rsc_SAPHana_SLE_HDB00> <primary>
Step 6 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.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 262
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
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
----End
Only SAP HANA 1.0 needs to be configured because the default configurations of
SAP HANA 2.0 meet the specified requirements.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 263
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Log in to an SAP HANA node.
Step 2 Run the following command to switch to the SAP HANA administrator:
su - s00adm
Step 4 (Optional) Configure storage parameters on other SAP HANA nodes according to
the preceding steps.
If multiple SAP HANA nodes exist, perform the same configuration for these
parameters on other SAP HANA nodes.
----End
Procedure
Step 1 Log in to the active and standby SAP S/4HANA nodes and modify the /etc/hosts
file.
● Change the physical IP address of the active ASCS node to virtual IP address
of the active node.
● Change the physical IP address of the standby ASCS node to virtual IP address
of the standby node.
● Change the physical IP address of the active SAP HANA node to the virtual IP
address shared by the active and standby SAP HANA nodes.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 264
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
NOTE
ascsha indicates the virtual hostname of the active ASCS node and ersha indicates the
virtual hostname of the standby ASCS node. Virtual hostnames can be customized.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 265
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 2 Log in to the standby SAP S/4HANA node and modify the /etc/hosts file to be the
same as that of the active node.
----End
Procedure
Step 1 Run the following command to check whether the resource-agents package has
been installed:
sudo grep 'parameter name="IS_ERS"' /usr/lib/ocf/resource.d/heartbeat/
SAPInstance
● If the information similar to the following is displayed, the patch package has
been installed. No further action is required.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 266
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Procedure
Step 1 Run the following command to uninstall sap_suse_cluster_connector of the earlier
version. The software package name uses underscores (_).
zypper remove sap_suse_cluster_connector
Step 2 Run the following command to install sap_suse_cluster_connector of the latest
version. The software package name uses hyphens (-):
zypper install sap-suse-cluster-connector
Step 3 Run the following command to obtain the version information about the newly
installed sap-suse-cluster-connector:
/usr/bin/sap_suse_cluster_connector gvi --out version
Step 4 Run the following command to check the version file and verify that the
sap_suse_cluster_connector version is 3.1.0 or later:
cat /usr/bin/version
----End
Procedure
Step 1 Log in to the active SAP S/4HANA node, obtain the ha_auto_script.zip package,
and decompress it to any directory.
1. 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
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 267
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 2 Set parameters in the ascs_ha.cfg file based on the site requirements. Table 4-18
describes the parameters in the file.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 268
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 269
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 270
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 271
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
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
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
----End
Prerequisites
Open a browser and ensure that JavaScript and Cookie are enabled.
Procedure
Step 1 Enter the IP address or hostname of the active or standby node as the URL. The
login port is 7630.
Example: https://s4001:7630/
NOTE
If a certificate warning is displayed when you attempt to access the URL for the first time, it
indicates that a self-signed certificate is used. By default, the self-signed certificate is not
considered as a trusted certificate.
Click Continue to this website (not recommended) or add an exception in the browser to
eliminate the warning message.
Remarks:
Step 2 On the login page, enter the username and password of user hacluster or any
other user who belongs to the haclient group.
NOTE
The username is hacluster and the initial password is linux. Change the password after the
first login.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 272
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Step 3 Click Login. You can view the statuses of cluster nodes and resources on the
displayed page.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 273
SAP Best Practices 4 SAP S/4HANA (1809) HA Deployment Best
SAP Best Practices Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 274
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Introduction
Pre-installation Preparations
Resource Planning
Preparing for the Installation
Installing Software
FAQs
Change History
5.1 Introduction
This document provides guidance for preparing resources (such as cloud servers
and network resources) on the HUAWEI CLOUD platform and installing SAP
Business One on HANA. SAP is authorized in Bring Your Own License (BYOL)
mode. You need to log in at SAP Support Portal to purchase licenses.
This document describes how to install and deploy SAP Business One (SAP HANA
as the database).
This document cannot replace the standard SAP document. If you have any
trouble in installing and using SAP Business One due to its own problems, contact
the SAP technical support.
This document is written based on the OS SUSE Linux Enterprise Server. The
deployment modes mentioned in the document are only for reference. Install SAP
Business One by referring to the standard SAP installation manual or based on
sizing results and site requirements.
For details about the official SAP installation guide and related notes, see the
following documents:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 275
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
SAP License
SAP is authorized in Bring Your Own License (BYOL) mode. In this mode, you need
to log in to the SAP Support Portal and apply for a license.
NAT Server
Prepare a Network Address Translation (NAT) server on which SAP HANA and SAP
Business One clients and SAP HANA Studio are installed.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 276
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
You can configure the security group by referring to the following table.
NOTE
● Plan the network segments and IP addresses based on the site requirements. The
following security group rules are for reference only. You can configure your own
security group rules as needed.
● In the following table, ## stands for the SAP instance number, which must be consistent
with the instance number specified when the SAP software is installed. If there are
multiple instance numbers, enter them in sequence.
Inbound
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 277
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Outbound
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 278
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
/ 40 GB - No OS volume
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 279
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
For details about the minimum disk space, RAM, and software requirements
of each SAP component, see the SAP Installation Guides.
SAP-certified ECSs must be used for installing the SAP application. For details,
see SAP Notes.
● OS
The following table lists the OS required for SAP ECSs. This document uses
SAP Business One 9.3 as an example.
SAP ECS OS
Name Specifications
Procedure
Step 1 Log in to the management console.
Step 2 Click in the upper left corner and select the desired region and project.
Step 3 In the navigation pane on the left, click and choose Networking > Virtual
Private Cloud.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 280
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 281
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 282
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
----End
Procedure
Step 1 Create a SAP security group.
Choose Access Control > Security Groups in the navigation pane on the left of
the VPC console. On the Security Groups page, click Create Security Group.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 283
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 284
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Locate the row that contains the newly created security group, and click Manage
Rule in the Operation column to switch to the page for managing inbound and
outbound rules. On the Inbound Rules tab, click Add Rule. In the displayed dialog
box, add the desired ports listed in Security Group Planning.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 285
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
HANA
SWAP 17 High
I/O
Step 1 Log in to the HUAWEI CLOUD management console, click the service list icon, and
choose Compute > Elastic Cloud Server.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 286
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Step 3 Select the ECS flavor, image, and disk size based on #EN-
US_TOPIC_0000001143628972/table127451133151718.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 287
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Step 4 Click Next: Configure Network. Select the created VPC and security group,
confirm the configuration, and click Next: Configure Advanced Settings.
Step 5 Enter the ECS name and password of the root user, and click Next: Confirm.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 288
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Step 8 After ECSs are created, locate the created ECSs in the ECS list and click Remote
Login in the Operation column. Log in to the ECSs as user root using VNC.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 289
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 290
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 291
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 292
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
----End
Step 5 Run the following command to check swap information, including detailed
information about files and partitions.
swapon -s
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 293
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
----End
Step 1 Run the vi /etc/hosts command to add the IP addresses mapped to the host
names.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 294
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 295
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 296
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
----End
Step 1 Download the installation package from the SAP official website, decompress the
package, go to the Packages.Linux/ServerComponents directory, and run the ./
install command to install SAP Business One.
Step 2 The graphical installation interface is displayed. Configure the required parameter
based on the site requirements.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 297
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 298
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 299
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 300
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 301
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 302
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 303
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 304
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 305
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 306
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 307
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 308
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
----End
5.5.3 Installing the SAP HANA and SAP Business One Clients
Step 1 Install the SAP HANA client.
On the Windows client, go to the SAP_HANA_CLIENT directory and double-click
hdbsetup to start the installation.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 309
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 310
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 311
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 312
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 313
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 314
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 315
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 316
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
2. Run the SAP Business One client, enter the name of the SAP Business One ECS,
and click OK.
Company connected
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 317
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
----End
5.6 FAQs
Symptom
The /etc/hosts file contains "127.0.0.1 host name host name". As a result, the SAP
application installed on the ECS cannot be started. You need to log in to the ECS
where the SAP application is deployed to modify the configurations.
NOTE
You only need to perform this operation on the ECS where the SAP application software is
deployed.
Procedure
Step 1 Log in to the ECS where the SAP application software is deployed as user root.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 318
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
Step 3 Delete "127.0.0.1 host name host name" from the /etc/hosts file.
1. Run the following command to open the /etc/hosts file:
vi /etc/hosts
2. Delete "127.0.0.1 host name host name" from the /etc/hosts file and save
the modification.
Step 4 Restart the SAP application on the ECS where the SAP application has been
installed. If the SAP application has not been installed on the ECS, perform the
preceding operations and install the SAP software.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 319
SAP Best Practices 5 HUAWEI CLOUD SAP Business One on HANA
SAP Best Practices Installation Best Practice
After the node is restarted, you need to manually start SAP HANA and SLD. To
start SLD, perform the following operation:
Run the following commands:
/etc/init.d/sapb1servertools restart
/etc/init.d/b1s restart
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 320
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Overview
Installing the Monitoring Agent
(Optional) Upgrading the Monitoring Agent
Viewing Monitoring Metrics
Configuring Grafana SAP Full Screen Monitoring
Alarm Configuration
FAQs
6.1 Overview
SAP full-screen monitoring developed based on Enterprise Project Management
Service (EPS) has been brought offline. SAP full-screen monitoring 2.0 with more
powerful capabilities is provided. If you are now using the EPS-based SAP full-
screen monitoring, you need to follow the instructions described in (Optional)
Upgrading the Monitoring Agent to upgrade the monitoring plug-in accordingly.
The SAP full screen monitoring 2.0 provides functions such as SAP system
monitoring, alarm statistics, application overview, and overview of CPU usage,
memory usage, disk I/O, and network traffic. The SAP full screen monitoring helps
you better understand the application resource usage, alarms, and SAP system
running status in real time.
Table 6-1 lists the OSs and product versions supported by the Agent used for
collecting monitoring metrics. Table 6-2 describes the system resource usage of
the Agent.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 321
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Type Version
SAP HANA SAP HANA 1.0 SP12 or later and SAP HANA 2.0
SAP S/4HANA SAP S/4HANA 1709, SAP S/4HANA 1809, and SAP S/4HANA
1909
Prerequisites
Ensure that Application Operations Management (AOM) ICAgent has been
installed.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 322
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
● AOM ICAgent is used to collect host OS metrics, such as CPU, memory, and
disk. If it has not been installed, install it by referring to Installing an
ICAgent.
Ensure that the AOM FullAccess permission has been assigned to the agency
created for the host.
● AOM FullAccess is used for the authentication of AOM metric reporting API.
The following describes the procedure to configure the permission.
Step 2 In the navigation pane on the left, click and choose Identity Access
Management under Management & Governance.
Step 3 Click Agencies in the left pane, and then click Create Agency in the upper right
corner. The Create Agency page is displayed.
Step 5 Configure the agency created in the previous step for the ECS.
1. In the left navigation pane, click and choose Computing > Elastic Cloud
Server.
2. Select the ECS for which you want to configure the agency and click its name
to switch to the basic information page.
3. Click the edit button next to Agency in the Management Information area,
select the agency created in Step 4, and save the modification.
----End
CAUTION
AOM 2.0 is now available in the CN-Hong Kong, AP-Bangkok, AP-Singapore, AF-
Johannesburg, TR-Istanbul, LA-Mexico City1, LA-Mexico City2, LA-Sao Paulo1, and
LA-Santiago regions. Subscribe to AOM 2.0 and Upgrade ICAgent before
installing the SAP full screen monitoring for these regions.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 323
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Procedure
Installing and Configuring the Monitoring Agent
Step 1 Run the following commands to obtain the installation script to install the
monitoring agent:
cd /tmp
The download paths of the script vary depending on regions. For details about
how to obtain the path, see Table 6-3. The following commands show the
download path in AP-Bangkok.
cd /tmp
curl https://obs-sap-ap-southeast-2.obs.ap-southeast-2.myhuaweicloud.com/
sapmon/install.sh | sh
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 324
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Table 6-4 lists the parameters. Set the parameters based on the actual
situation. Change the password to the encrypted password obtained in Step
2.1.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 325
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
NOTE
If you need to monitor multiple tenant databases, copy and paste parameters under
database.hana, and change database.hana to database.hana.<tenantdb_name>.
Replace <tenantdb_name> with the tenant database name, and change values of
username, password, and other required parameters. username and password
indicate the username and password for logging in to the tenant database.
4. Run the following command to restart the monitoring agent.
systemctl restart sapmon
----End
(Optional) Uninstalling the Monitoring Agent
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 326
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
NOTE
● Set hostname to the names of hosts of active and standby nodes. On the active node,
set the value of enable of database.hana to true to enable the monitoring function.
● After the HA switchover, set the value of enable of database.hana on the original
active node to false to stop the monitoring for the original active node. On the original
standby node, set the value of enable of database.hana to true to enable the
monitoring for it (the new active node after HA switchover).
Prerequisites
Ensure that Application Operations Management (AOM) ICAgent has been
installed.
● AOM ICAgent is used to collect host OS metrics, such as CPU, memory, and
disk. If it has not been installed, install it by referring to Installing an
ICAgent.
Ensure that the AOM FullAccess permission has been assigned to the agency
created for the host.
● AOM FullAccess is used for the authentication of AOM metric reporting API.
The following describes the procedure to configure the permission.
Step 2 In the navigation pane on the left, click and choose Identity Access
Management under Management & Governance.
Step 3 Click Agencies in the left pane, and then click Create Agency in the upper right
corner. The Create Agency page is displayed.
Step 5 Configure the agency created in the previous step for the ECS.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 327
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
1. In the left navigation pane, click and choose Computing > Elastic Cloud
Server.
2. Select the ECS for which you want to configure the agency and click its name
to switch to the basic information page.
3. Click the edit button next to Agency in the Management Information area,
select the agency created in Step 4, and save the modification.
----End
Procedure
Preparations
----End
Installing the Monitoring Agent
Step 1 Run the following commands to obtain the installation script to install the
monitoring agent.
The download paths of the script vary depending on regions. For details about
how to obtain the path, see Table 6-5. The following commands show the
download path in AP-Bangkok.
cd /tmp
wget https://obs-sap-ap-southeast-2.obs.ap-southeast-2.myhuaweicloud.com/
sapmon/install.sh&& sh install.sh --nwrfcsdk-path /usr/sap/nwrfcsdk
/usr/sap/nwrfcsdk is the decompression path in Step 4.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 328
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 329
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
NOTE
If you need to monitor multiple applications, copy and paste parameters under
application.netweaver, and change application.netweaver to
application.netweaver.<sid>.
sid indicates the application system ID.
4. Run the following command to restart the monitoring agent.
systemctl restart sapmon
----End
(Optional) Uninstalling the Monitoring Agent
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 330
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
NOTE
● Set hostname to the names of hosts of active and standby nodes. On the active and
standby nodes, set the value of instance_number to the PAS or AAS instance number.
On the active node, set enable of application.netweaver to true to enable the
monitoring function.
● AAS and PAS must be installed on both the active and standby nodes, and their
processes must be started.
● After the HA switchover, set the value of enable of application.netweaver on the
original active node to false to stop the monitoring for the original active node. On the
original standby node, set the value of enable of application.netweaver to true to
enable the monitoring for it (the new active node after HA switchover).
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 331
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Step 1 Log in to the node where the SAP monitoring plug-in is installed.
Step 2 Run the following command to uninstall the EPS-based monitoring plug-in:
rpm -e sapmon
Step 3 Follow the instructions described in Installing Agent to install the monitoring
agent of the latest version.
----End
/usr/local/sapmon/upgrade.sh
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 332
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Procedure
Step 1 Log in to the management console.
Step 2 In the navigation pane on the left, click and choose Management &
Governance > Application Operations Management.
Step 3 In the navigation pane on the left on the displayed page, choose Monitoring >
Metric Monitoring to view the SAP system metrics and host OS metrics.
----End
Host OS Metrics
For details about the host OS metrics of AOM, see Metric Overview.
Table 6-7
Table 6-8
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 333
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 334
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 335
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 336
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 337
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Table 6-8 SAP NetWeaver ABAP and SAP NetWeaver Java application metrics
Metric Group Metric Name Description Unit
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 338
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 339
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 340
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Prerequisites
● The monitoring agent has been installed. If it has not been installed, follow
the instructions described in Installing the Agent to install it.
● Grafana has been installed and started. The SAP full screen monitoring is
implemented based on Grafana. You need to prepare a host for running
Grafana and install and start Grafana on the host. For details about how to
install Grafana, see Installing Grafana. During the installation, you are
directed to start the Grafana service.
Procedure
Step 1 Log in to Grafana and create an AOM data source on Grafana. For details, see
Viewing Metric Data in AOM Using Grafana.
NOTE
If you have upgraded to AOM 2.0, create an AOM data source on Grafana. For details, see
Viewing Metric Data in AOM 2.0 Using Grafana.
CAUTION
After Grafana has been installed and started, use a browser to access Host IP
address:Port number to log in to Grafana. The default port number is 3000. The
default username for first-time login is admin. Change the password upon the
first-time login. Grafana 9.0.0 is recommended.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 341
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Use the following links to download the Grafana full-screen monitoring templates.
Download all of the following templates that display system metrics from
different dimensions.
Table 6-9
Template Name Description
SAP HANA Metrics Displays detailed information about SAP HANA metrics.
AOM Host Metrics Displays details about host OS metrics collected by AOM.
The download path varies depending on the region. For details, see Table 6-10.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 342
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 343
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 344
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 345
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
Step 3 Log in to Grafana and import the downloaded template to Grafana. Hover the
cursor over in the upper right corner of the page, click Import >
Upload .json File, and select the template file to be uploaded. The import details
page is displayed.
Step 4 Configure import parameters.
● Prometheus: Select the AOM data source created in en-
us_topic_0000001165750083.xml#EN-US_TOPIC_0000001165750083/
li4243935211186.
Step 5 After the import parameters are configured, click Import.
Step 6 Check whether any data reported to AOM exists in the imported template.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 346
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
6.7 FAQs
The SAP full screen Enter the edit mode and check whether the
configuration is incorrect or application, application SID, database, and
the configured application database SID are configured as required. If they
has been deleted. are incorrect, correct them and update the
configuration.
The Agent has not been Install the Agent and wait for several minutes.
installed on the cloud
server in the application.
The Agent data is still The minimum reporting cycle of the SAP
within the reporting cycle. monitoring agent is one minute. Wait for one
minute and then refresh the data.
The cloud server meta Enter the edit mode, update the monitoring
information is incorrectly configuration, and wait for several minutes.
modified.
The Agent and daemon Check whether the Agent process is normal.
processes are abnormal.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 347
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
# FOR APPLICATION
logged_in_users = 1
application_version = 1
instance_quantity = 1
application_ha_active = 1
abap_short_dumps = 1
abap_short_dumps_5m = 5
jobs = 1
lock_entries_usage = 1
extended_memory_utilization = 1
heap_memory_utilization = 1
work_processes = 1
update_records = 1
rfc_ping = 1
failed_idocs = 1
dialog_response_time = 1
dialog_db_request_time = 1
j2ee_running_process = 1
j2ee_thread = 1
j2ee_session = 1
j2ee_websession = 1
j2ee_ejbsession = 1
j2ee_vm_heap_size = 1
3. Press i to enter the edit mode. Change the collection period of the monitoring
metric group.
Example command:
database_ha_active = 5
NOTE
The collection periods of metrics in the same group are managed uniformly. The unit
of the collection period is minute, and the collection period can be 1 minute, 5
minutes, or 15 minutes.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 348
SAP Best Practices
SAP Best Practices 6 SAP Monitoring Best Practices
4. Press Esc and run the wq! command to save and exit.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 349
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Overview
Migration Procedure
Migrating the SAP System from the x86 Platform to HUAWEI CLOUD
Migrating from a Third-Party Cloud to HUAWEI CLOUD
Migrating from IBM or HP Midrange Computers to HUAWEI CLOUD
Migrating SAP Applications Running on a Non-HANA Database to HUAWEI
CLOUD SAP HANA
Appendix
7.1 Overview
SAP migration projects are much more complex than traditional IT migration
projects. An SAP migration project involves hardware migration, software upgrade,
service and interface testing, project management, and risk control. In addition, a
SAP migration project involves personnel and organizations from multiple parties,
including customer's IT team, service team, migration implementor, and
infrastructure provider. A successful migration project requires close collaboration
among all the parties. During the migration, HUAWEI CLOUD provides
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 350
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Migrating In this scenario, you Use the following services and tools
SAP migrate an SAP system that to migrate the system:
systems is deployed on an x86 ● Use HUAWEI CLOUD Server
from x86 physical machine in your Migration Service (SMS) to
platform to on-premises data center or migrate SAP application
HUAWEI a VMWare virtual machine servers without service
CLOUD (VM). The supported interruption, replicating off-
operating systems (OSs) of cloud servers to HUAWEI
servers are listed in OSs CLOUD.
Supported by Different
Types of ECSs. There is no ● If there is no requirement on
restriction on the database. database downtime, use the
After the migration to SMS to migrate the database
HUAWEI CLOUD, the of a non-production system.
database and OSs remain ● To reduce the service downtime,
unchanged. use the native database
migration tool to move the
production system database to
the cloud. For example, use
SystemReplication, Oracle
DataGuard, or SQL Logging
Shipping migrate HANA.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 351
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 352
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Due to the complexity of a migration project, this section will not include the
detailed migration processes, but only focuses on the part related to HUAWEI
CLOUD. There are two types of migration:
● Homogeneous migration: The databases and OSs of the source and
destination servers remain unchanged, and the software can be upgraded in
the homogeneous migration.
● Heterogeneous migration: Either of databases and OSs are changed.
You can view the following examples:
● Homogeneous migration:
– Migrating the SAP System from the x86 Platform to HUAWEI CLOUD
– Migrating from a Third-Party Cloud to HUAWEI CLOUD
● Heterogeneous migration:
– Migrating from IBM or HP Midrange Computers to HUAWEI CLOUD
– Migrating SAP Applications Running on a Non-HANA Database to
HUAWEI CLOUD SAP HANA
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 353
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
500 2 TB
GB databa
datab se
ase
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 354
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 355
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 356
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 357
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
SMS Server Migration Service provides P2V and V2V migration services to
help you migrate applications and data from on-premises X86
physical servers or VMs on private or public clouds to HUAWEI
CLOUD Elastic Cloud Servers (ECSs).
SMS migrates SAP application servers while the applications are
running, and migrates database servers after the database service is
stopped. You can use SMS to migrate incremental data.
For more information about SMS, see What is Server Migration
Service.
IMS If your SAP application servers can be converted into image files,
and the types and OSs of the image files are listed in
Formats and OSs Supported for External Image Files, you can
create the SAP application server image files as private images on
HUAWEI CLOUD, and use the images to quickly deploy new
application servers.
For details, see Creating a Linux System Disk Image from an
External Image File and Creating a Windows System Disk Image
from an External Image File.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 358
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 359
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
7.3.1 Description
In this scenario, you migrate an SAP system that is deployed on an X86 physical
machine in your on-premises data center or VMWare VM. The supported OSs of
servers are listed in OSs Supported by Different Types of ECSs. There is no
restriction on the database. After the migration to HUAWEI CLOUD, the database
and OS remain unchanged.
Use HUAWEI CLOUD Server Migration Service to migrate SAP application servers
without service interruption, replicating off-cloud servers to HUAWEI CLOUD. For
database migration:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 360
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Figure 7-2 Migrating the SAP system from the x86 platform to HUAWEI CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 361
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
264432 SAP Adaptive Server Enterprise (ASE) 16.0 Certification Report for
2 Huawei Cloud
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 362
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Networking Plan
After the migration, a VPC is used on the cloud. For details about subnet planning,
see the VPC User Guide. HUAWEI CLOUD is connected with the on-premises IDC
using EIP, VPN, or Direct Connect.
HUAWEI CLOUD VPC is an isolated and private virtual network environment that
users apply for on the HUAWEI CLOUD. You can configure IP address segments,
subnets, and security groups, assign EIPs, and allocate bandwidths in a VPC.
Figure 7-4 shows the network architecture.
VPC provides multiple connections between the local system of a user and the SAP
system running on HUAWEI CLOUD. You can select a connection type as required.
● Direct Internet Connection
You can configure a public EIP address on the cloud server to connect it to the
public network through the EIP service. The SAP technical support personnel
can access the system deployed on HUAWEI CLOUD using the public IP
address.
● Direct Connect
Direct Connect helps you establish a dedicated network that connects your
local data center to the public cloud. Direct Connect sets up dedicated
connections between the Direct Connect gateway and a VPC on the public
cloud. With Direct Connect, you can establish network circuits between the
cloud and your data center, office, or collocation environment. Direct Connect
can effectively reduce network latency and improve network experience.
● VPN
VPN establishes a secure, encrypted communication tunnel between the VPN
gateway of the VPC on HUAWEI CLOUD and the VPN gateway of your local
data center, allowing you to directly use resources in the VPC through the
VPN.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 363
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
By default, cloud servers in a VPC cannot communicate with your data center
or private network. To enable communication between them, you can create
a VPN.
Security Design
Enterprises store core data in the SAP system. HUAWEI CLOUD ensures the
security of the SAP system based on the cloud platform security and network
configurations.
You are recommended to divide the cloud-based system (production environment
and development and test environment) into zones of different security levels,
including the management, application, SAP DB, and demilitarized zones (DMZ).
The zones are isolated from each other using VPCs or subnets.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 364
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Migration Solution
Table 7-6 lists the recommended migration solution. For details about the
migration methods, see Migration Solution Details.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 365
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 366
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 367
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 368
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Step 5 Start the migration task. For details, see Creating and Starting a Migration Task.
NOTE
Step 6 After the migration task is complete, log in to the target server using the source
server login mode. Check whether the basic functions are normal, including the
network and storage.
Step 7 Modify the basic OS settings of the target server to adapt to HUAWEI CLOUD.
1. Modify the DNS and NTP configurations. For details, see How Can I
Configure the NTP and DNS Servers for an ECS?.
2. (Optional) Install and configure Cloud-Init. For details, see Installing Cloud-
Init and Configuring Cloud-Init.
For more about Cloud-Init, see Cloud-init.
3. (Optional) Install the HUAWEI CLOUD one-click password reset plug-in. For
details, see (Optional) Installing the One-Click Password Reset Plug-in.
4. Modify the host name and the hosts file as required. For details, see
Changing Host Name.
5. Install Data Provider.
Data Provider is the SAP metric collector on HUAWEI CLOUD. For details
about how to install and configure Data Provider, see Data Provider for SAP
User Guide.
6. Restart the server and check whether other OS errors occur.
Step 8 Check whether the SAP HANA database can start properly.
1. Switch to user {$SID}ADM and run the HDB start command to start the
database.
2. Run the sapcontrol -nr 00 -function GetProcessList command to query the
status of all SAP HANA processes. The command output shows that all SAP
HANA processes are in the GREEN state.
3. Use SAP HANA Studio to connect to the SAP HANA database and check
whether the connection is successful and whether all processes are in the
normal state.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 369
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Step 9 (Optional) After a migration task is complete, you can use SMS to synchronize the
incremental data from the source servers to the target servers as needed. For
details about how to perform the incremental synchronization, see Synchronizing
Data After a Migration Task Is Complete.
NOTE
After the incremental synchronization, the status of the target server becomes consistent
with the source server. Perform Step 6 to Step 8 after the synchronization is complete.
Step 10 Connect the application with the database to test whether the system is
functional.
----End
Step 1 Export the source server as images of formats supported by HUAWEI CLOUD.
You can use the recommended tool to convert the image format. For details, see
Converting the Image Format Using qemu-img.
Step 2 Upload the external image file to the OBS bucket. For details, see Uploading an
External Image File.
Step 3 Select the uploaded image file on the management console and register the
image file as a private image. For details, see Creating a Linux System Disk
Image from an External Image File and Creating a Windows System Disk
Image from an External Image File.
Step 4 Use the created image to provision new servers in the planned environment based
on the design.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 370
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
This document uses the SAP HANA database as an example to describe how
to reduce migration RTO. For details, see Method 2: Using the Database
Backup and Restore Function and Method 3: Using the Database
Synchronization Technology.
The following uses the SAP HANA database as an example to describe how to use
method to migrate the database to HUAWEI CLOUD.
Step 1 Migrate the source database to HUAWEI CLOUD by performing steps provided in
Migrating Application Servers to HUAWEI CLOUD. Alternatively, deploy SAP
HANA servers on HUAWEI CLOUD. For details, see SAP HANA User Guide.
Step 2 Stop the database service at the source end and perform a full backup for the
database. Ensure that the necessary logs are retained. Transfer the backup file to
the target server on HUAWEI CLOUD.
You can also use OBS to transfer files. OBS provides multiple tools to accelerate
the file upload. For details, see OBS Tools.
Step 3 Log in to the target server and use HANA Studio or run the hdbsql command to
restore the backup data to the database. For details, see SAP HANA
Administration Guide.
NOTE
● If the size of a full backup file is large, data transmission and restoration will take a long
time. To reduce the downtime, you can restore the data on the target system using a
full backup without stopping services on the source system. After you stop the services
at the source end, perform a differential or incremental backup and then restore the
differential or incremental backup to the target system.
● Alternatively, you can use SMS to migrate source servers to HUAWEI CLOUD so that you
do not need to deploy the system again, and part of the backup data can be migrated
to the target server. You only need to perform a differential or incremental backup and
then restore it to the target system.
Step 4 Start the SAP HANA database on the cloud and verify that the database is
functional and the data is intact.
Step 5 Connect the application with the database to test whether the system is
functional.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 371
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
The following uses the SAP HANA database as an example to describe how to use
HANA System Replication to migrate the database to HUAWEI CLOUD.
Step 1 Migrate the source database to HUAWEI CLOUD by performing steps provided in
Migrating Application Servers to HUAWEI CLOUD. Alternatively, you can deploy
SAP HANA servers at HUAWEI CLOUD. For details, see SAP HANA User Guide.
Step 2 Configure asynchronous system replication from the source SAP HANA database
to the target SAP HANA database. For details, see SAP HANA Administration
Guide.
Step 3 Before the system switchover, check HANA System Replication to ensure that the
data replication status is normal, and then stop the source SAP application system.
Step 4 Run the SAP HANA takeover command on the target database to check the
database running status. For details, see SAP HANA Administration Guide.
Step 5 Start the target SAP application system on the cloud and ensure that the
connection between the application system and HANA database is normal.
Step 6 Check the system availability and service data integrity on the service side.
----End
Migration Drills
Use the designed service switchover plan to perform a drill to ensure that the plan
meets the requirements. For details about the service switchover plan, see Service
Switchover Plan.
Service Tests
Check the target system on the cloud and perform complete verification on key
service processes. Ensure that the system after the migration can meet service
requirements.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 372
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 373
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Networking Plan
The system networking on HUAWEI CLOUD is the same as that of the source end.
The system connects to a third-party cloud through EIP and VPN or Direct
Connect.
For details, see Networking Plan.
Security Design
● For details, see Security Design. Find more information in the SAP Security
White Paper.
● For details about permission management, see Service Account System
Design.
Migration Plan
Table 7-9 lists the recommended migration solutions.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 374
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Database ● You can migrate a non- When using SMS, you need to
production system database stop the database servcie
after stop the database before the migration to
service using SMS. ensure data consistency.
● You can use the database The service interruption
backup and restoration duration of using native
function or other native database tool is shorter than
database tools to migration that of using the SMS. For
the production system details about the estimated
database. interruption duration, see
section Table 7-2.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 375
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Use SMS to 1. After the application Stop source end services only
migrate the servers are migrated to after the last incremental
application HUAWEI CLOUD using synchronization is performed
servers, and SMS, use incremental using SMS.
the database replication to After the cloud database takes
replication synchronize the servers. over the services, the service
function to 2. Configure synchronous switchover is complete.
synchronize replication from the on-
database. The service interruption duration
premises database to is the database switchover
the cloud database. Stop duration.
the services on the
source end and perform
the service takeover on
the cloud database.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 376
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 377
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Networking Plan
A VPC is used on HUAWEI CLOUD, and subnets are created according to the
networking best practices on HUAWEI CLOUD. On-premises IDC connects to
HUAWEI CLOUD through EIP and VPN or Direct Connect.
For details, see Networking Plan.
Security Design
For details, see Security Design. Find more information in the SAP Security
White Paper.
For details about permission management, see Service Account System Design.
Migration Solution
Table 7-12 shows the recommended solutions.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 378
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 379
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
The application 1. After the system is The downtime is long, and the
servers and deployed on HUAWEI system needs to be shut down
database CLOUD, stop services from the beginning.
server are on the source end and The service interruption duration
redeployed on use the SWPM to = Data exporting duration + File
HUAWEI export the source transferring duration+ Data
CLOUD. The system. importing duration
database is 2. Upload the exported
migrated using files to the destination
the SWPM system through a
import and private line, and then
export function import the files to the
(R3load). destination system
using SWPM.
The application 1. After the system is After the cloud database takes
servers and deployed on HUAWEI over the services, the service
database CLOUD, use the Oracle switchover is complete.
server are GoldeGate to The service interruption duration
redeployed on configure data is the database switchover
HUAWEI synchronization from duration.
CLOUD. The the source to the
Oracle destination.
database is 2. Stop the services on
migrated using the source end and
the Oracle perform the service
GoldeGate. takeover on the cloud
database.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 380
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
The application 1. After the system is After the cloud database takes
servers and successfully deployed over the services, the service
database on HUAWEI CLOUD, switchover is complete.
server are cross-platform The service interruption duration
redeployed on transportable is the time of the last incremental
HUAWEI tablespaces (XTTS) synchronization of the database.
CLOUD. The and multiple
Oracle incremental backups
database is are used to
migrated using synchronize data with
Oracle XTTS. the cloud.
2. After services on the
source end are
stopped, perform the
data synchronization,
and then the database
on the cloud takes
over the services. This
greatly shortens the
downtime.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 381
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
When using System Copy, stop the services before you start the export. The service
interruption duration depends on the database size. Importing and exporting of
over 1 TB data takes a long time, which has a great impact on services. Figure
7-10 shows the procedure.
Step 1 On HUAWEI CLOUD, create the a subnet, configure security group policies, and
build the target system, including the database and application servers.
Step 2 Stop the source system services. Run the SWPM tool on the source server and use
System Copy to export data. For details, see SAP System Copy.
Step 3 Upload the exported data to the file system of the target system.
Step 4 Run the SWPM tool in the target system and use System Copy to import data.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 382
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 383
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Deployment Plan
Use HUAWEI CLOUD services for the deployment. Specifically, use ECS or BMS for
server computing resources, and EVS and SFS for storage.
Networking Plan
A VPC is used on HUAWEI CLOUD, and subnets are created according to the
networking best practices on HUAWEI CLOUD. On-premises IDC connects to
HUAWEI CLOUD through EIP and VPN or Direct Connect.
Security Design
For details, see Security Design. Find more information in the SAP Security
White Paper.
For details about permission management, see Service Account System Design.
Migration Solution
Redeploy the application servers and database server on HUAWEI CLOUD. For
database migration, use the SAP solutions. Table 7-14 describes the
recommended solutions.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 384
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Generally, data is transmitted over the network. The optimal network bandwidth is
higher than 50 Mbit/s.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 385
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
7.7 Appendix
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 386
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Server Migration SMS provides P2V and V2V migration services to help you
Service migrate applications and data from on-premises X86 physical
servers or VMs on private or public clouds to ECSs on
HUAWEI CLOUD.
For details about how to use SMS, see the Server Migration
Service Quick Guide.
NOTE
HUAWEI CLOUD also provides the Server Migration Tool (SMT). The
Server Migration Service is the SMT provided as a service, but the
SMT has more powerful functions. If the SMS cannot meet your
requirements, contact HUAWEI CLOUD technical support.
The differences between the SMS and SMT are as follows:
● Supported OSs: SMT supports more types and versions. For those
supported by SMS, see Supported Source Server OSs.
● Connections: For SMS, source servers need to access HUAWEI
CLOUD SMS server through the Internet. If a source server and a
target ECS are connected through Direct Connect or VPN, ensure
that the source server to be migrated can access the SMS.
Image Export/ If your servers can be converted into image files, and the
Import type and OS of the image files are listed in Formats and OSs
Supported for External Image Files, you can create server
image files as private images on HUAWEI CLOUD, and use
the images to quickly deploy new servers.
For details, see Creating a Linux System Disk Image from
an External Image File and Creating a Windows System
Disk Image from an External Image File.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 387
SAP Best Practices 7 Best Practices of SAP Migration to HUAWEI
SAP Best Practices CLOUD
Tool/Method Description
Object Storage OMS is an online data migration service that helps users
Migration easily and smoothly migrate object storage data from other
Service public clouds to HUAWEI CLOUD.
For details about how to use OMS, see the Object Storage
Migration Service Quick Start.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 388
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 389
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
CAUTION
The block-level migration function of SMS cannot be used to migrate SFS and
SFS Turbo. The migration of SFS and SFS Turbo must be completed at the file
system level.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 390
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
NOTE
The created destination ECS must meet the following requirements. Otherwise, the
migration may fail.
● A target server running Windows must have at least 2 GB memory.
● The destination server must have at least as many disks as the source server, and the
size of each disk on the destination server must be at least as large as those on the
source server.
● The destination server must run the same OS as the source server, or there will be a
server name conflict.
● The destination server must have been configured with an EIP, VPN, or Direct Connect
connection.
● The security group of the VPC that the destination ECS is in must be correctly
configured. If the destination ECS runs Windows, enable the TCP ports 8899 and 8900. If
the destination ECS runs Linux, enable ports 8900 and 22.
For details, see How Do I Configure the Security Group Rules for Target
Servers?
wget -t 3 -T 15 https://sms-agent-2-0-cn-north-1.obs.cn-
north-1.myhuaweicloud.com/SMS-Agent.tar.gz
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 391
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Step 3 Run the following command to switch to the SMS-Agent directory of the source
server:
cd SMS-Agent
CAUTION
A proxy server is a special network service. If your source server cannot access
HUAWEI CLOUD through the Internet, you can use a proxy server to access
HUAWEI CLOUD. You need to configure a proxy server by yourself.
cd agent/config
b. Run the following command to open and edit the auth.cfg file:
vi auth.cfg
c. Run the following command to save the auth.cfg file and exit:
:wq
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 392
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
NOTE
● proxy_addr indicates the IP address of the proxy server. It is used by the source server to
access SMS.
● If the HTTPS proxy is not used during the migration, you are not allowed to modify the
auth.cfg file.
● The proxy is used for registering the source server with SMS when a Direct Connect or
VPN connection is used. It is not used for data migration.
● enable controls if the proxy is used or not. To use the proxy, set this to true.
● If a username is required to use the proxy, set proxy_user to the username, for example,
root. If the username is not required, leave this parameter blank.
● If a password is required to use the proxy, set use_password to true. If the password is
not required, set it to false.
● The values shown here are for reference only. Actual values will depend on your server
configuration,
Step 5 Modify the g-property.cfg file in the config directory to enable Linux block-level
migration.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 393
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
./startup.sh
Step 8 Carefully review the description of what information will be collected by the
Agent, enter y, and press Enter.
Enter the AK and SK of the HUAWEI CLOUD account of the destination ECS and
the password of the HTTP proxy server as prompted.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 394
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
When the following information is displayed, the Agent has been started up and
will automatically start reporting source server information to SMS.
Repeat the preceding steps to install the Agent on the source server where SAP
HANA and SAP applications are installed.
----End
Step 1 Log in to the SMS management console and choose Servers in the left navigation
pane. On the server list page, click the server to be migrated to go to the server
details page. Select the Source Server Details tab to view check result for the
migration items on the source server. You can perform the following steps only
after all migration items are checked and confirmed OK. If there are some items
found to be abnormal, locate the cause and rectify it on the current page.
Step 2 Locate the server to be migrated and click Configure to configure the destination
server.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 395
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Step 3 Configure basic settings as required. Select Continuous Synchronization and click
Next: Configure Target.
Step 4 Select Create during migration or Use existing for Server, configure whether to
create shared disks, and select the VPC and disk specifications based on the site
requirements. Click Next: Confirm.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 396
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Parameter description
Name Description Examp
le
Value
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 397
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Whether ● If you select No, after the full replication, SMS will not Yes
to perform a continuous synchronization and will
perform a automatically start the target ECS. To synchronize
continuou incremental data, click Start in the Operation column.
s ● If you select Yes, after the full replication, SMS will
synchroni perform a continuous synchronization. To complete the
zation migration, you need to manually launch or clone the
after the target ECS.
full
replicatio
n is
complete.
Step 5 Ensure that all parameters have been configured based on the site requirements
and click Save.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 398
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 399
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 400
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Wait until the migration enters the continuous synchronization status. Before
starting the destination server, stop SAP software and databases.
----End
Step 1 Log in to the SMS management console and view the migration progress. When
the migration is in the continuous synchronization status, stop the SAP software.
Step 2 Log in to the source server and stop SAP S/4HANA.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 401
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Then, the SMS migration progress is still in the continuous synchronization status.
In this case, you can click Launch Target.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 402
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Before launching the destination server, you can clone the destination server for
service testing. If there are no problems in the testing of cloned server, launch the
destination server.
The cloned server must be in the same AZ as the destination server, but can be in
a different VPC.
Step 1 Log in to the SMS management console. In the navigation pane on the left,
choose Servers. Locate the target server you want to launch, and click Launch
Target in the Operation column.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 403
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Step 3 Wait until the destination server is launched. When the status changes to
Finished, the destination server is launched and the migration is completed.
----End
Step 1 Check the disk mounting status to ensure that all disks have been correctly
mounted to the directories on the server.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 404
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 405
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Step 5 (Optional) Use SAP GUI to connect to SAP S/4HANA for verification.
Choose Variable Logon in the toolbar, enter the IP address of the SAP application
server, PAS instance number, and system ID, and click Next.
Step 6 Click Logon. In the dialog box that is displayed, enter the username ddic and
password, and press Enter.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 406
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 407
8 Best Practice of Using Block-Level Migration of
SAP Best Practices SMS to Migrate SAP Applications and Databases
SAP Best Practices Running on Linux Servers
Step 7 The check is completed and the results meet the expected requirements. SAP S/
4HANA and SAP HANA on the destination server can start and run properly, and
the SAP GUI can be used to connect to SAP S/4HANA.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 408
SAP Best Practices
SAP Best Practices 9 Best Practice of SAP Migration from XEN to KVM
Introduction
Overall Solution
Preparations
Implementation
9.1 Introduction
Xen PODs on HUAWEI CLOUD are gradually replaced by KVM PODs. In addition,
AZs where Xen PODs reside are under inventory management and do not support
new deployment and capacity expansion. This document guides SAP migration
from the Xen POD to the KVM POD in two AZs isolated from each other in the
same region. You can also refer to this document for other SAP migrations, such as
migration from offline to online, or online migration.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 409
SAP Best Practices
SAP Best Practices 9 Best Practice of SAP Migration from XEN to KVM
9.3 Preparations
Before the migration, ensure that the following preparations are complete:
1. Obtain information about the OS version, network planning and design, and file
system of the source system, and generated the delivery LLD of the target system
based on the obtained information.
2. Confirm the HANA database version of the source and target systems, and
obtain the OS image and installation package of the target database.
3. Ensure that your SMS account has sufficient balance for server creation and
renewal.
9.4 Implementation
There are two phases for SAP migration. In the first phase, replicate files and data
in the source system to the target system. In the second phase, stop the source
system and bring the target system online.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 410
SAP Best Practices
SAP Best Practices 9 Best Practice of SAP Migration from XEN to KVM
In this phase, deploy new servers in AZ 3, use SMS for real-time replication of
application servers, and use HANA SR for asynchronous database replication. In
this case, the source system is running properly as the production system, while
the target system is not running and has no impact on the production system.
9.4.1.1 Preparations
1. Before the replication, ensure that you have performed a full backup of the
source system to restore the system in case of faults or misoperations. Back up the
HANA database using HANA Studio or other methods. Back up the four
application servers using the Cloud Backup and Recovery service of HUAWEI
CLOUD.
2. Install the SMS migration Agent on the four application servers. For details, see
Preparations Before Migration and Installing the Agent on Linux Servers.
Step 1 Run the dh -h command to check whether the file system of the target system
(except the NFS file system) is the same as that of the source system.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 411
SAP Best Practices
SAP Best Practices 9 Best Practice of SAP Migration from XEN to KVM
Step 2 Query the /etc/fstab configuration file to check whether the directories and items
(except the NFS file system) mounted during startup are the same as those in the
source system.
----End
3. Launch target servers. For details, see Launching the Target ECS.
Note: Before launching target servers, ensure that SAP in the source system is not
set to automatically start upon power-on.
Step 1 On the HUAWEI CLOUD management console, mount the ERS shared disk to
ASCS and the ASCS shared disk to ERS.
Step 2 Create an SBD shared disk and mount it to ASCS and ERS based on the delivery
LLD.
Step 3 Run the dh -h command to check whether the file system of the target system
(except the NFS file system) is the same as that of the source system.
Step 4 Query the /etc/fstab configuration file to check whether the directories and items
(except the NFS file system) mounted during startup are the same as those in the
source system.
----End
Step 2 Install the HANA database and upgrade it to the target version. The version must
be no earlier than the HANA version of the source system.
Step 3 Configure the SR data synchronization between the source database and the
target database on the backend.
hdbnsutil -sr_enable --name=[Server name of the target HANA DB] //(Source HANA DB execution)
hdbnsutil -sr_register --remoteHost=[Server name of the target HANA DB] --remoteInstance=00 --
replicationMode=sync --name=[Server name of the source HANA DB] //(Target HANA DB execution)
HDB start //(Target HANA DB execution)
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 412
SAP Best Practices
SAP Best Practices 9 Best Practice of SAP Migration from XEN to KVM
In this phase, stop the source system, switch the production IP address to the
target system in AZ 3, and start services in the target environment to take over
production services.
Log in to the PAS/AAS server as an application user and run the sapcontrol -nr
[Instance ID] -function Stop command to stop PAS and AAS.
Log in to any ASCS/ERS node as the root user and run the service pacemaker
stop command to stop ASCS and ERS.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 413
SAP Best Practices
SAP Best Practices 9 Best Practice of SAP Migration from XEN to KVM
Step 5 Shut down the source database. Ensure that no other services directly read data
from or write data to the HANA database after applications are stopped.
Log in to the target database as a database user and run the following command
to stop data synchronization with the source database:
hdbnsutil -sr_unregister
Log in to the source database as a database user and run the following command:
HDB stop
----End
Step 8 Change the SBD device ID in /etc/sysconfig/sbd on the active and standby
ASCS/ERS nodes to the actual device ID and rebuild the SBD disk.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 414
SAP Best Practices
SAP Best Practices 9 Best Practice of SAP Migration from XEN to KVM
Run the crm configure edit command to access the two-node cluster
configuration page and change the ASCS/ERS shared disk ID to the actual disk ID
of the target system.
Stop the maintenance status of the cluster.
crm configure property maintenance-mode=false
Check the cluster resources. Ensure that the ASCS/ERS resources are in the started
status.
crm status
Step 10 Log in to the PAS/AAS servers as an application user, start the PAS and AAS, check
their process, and check the application status on SAP.
sapcontrol -nr [Instance ID] -function Start
sapcontrol -nr [Instance ID] –function GetProcessList
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 415
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 416
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
In this test, the production site and DR site are in AZ 2 and AZ 3, respectively, in
the South China region. The production site uses two servers that have SAP PAS
and AAS instances installed respectively, and uses the SQL Server database. After
SDRS is used, the servers at the DR site are the same as those at the production
site. After a failover, the IP address of the server at the DR site is exchanged with
that of the server at the production site, and the server at the DR site takes over
workloads from the server at the production site. The SAP system can be started
and run properly, and the original production site becomes the DR site.
Specifications of the ECS at the production site in this test are as follows:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 417
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 1 Log in to ecssap2 at the production site, run SAP Logon, and click Variable
Logon.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 418
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 419
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 3 Configure required parameters based on the site requirements and click Next.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 420
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 421
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 422
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 5 Enter username ddic and the password, and then press Enter.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 423
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 424
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 7 Enter slicense in the search box and press Enter to view the value of Active
Hardware Key and record it.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 425
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 426
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
----End
10.3 DR Configurations
10.3.1 Creating a Protected Group
Specify two AZs as the source and target AZs, and create a protection group. Then,
you can create protected instances and replication pairs in this protection group.
Determine the production and DR sites before you create a protection group. In
this version, only the VPC migration deployment model is supported. Specifically,
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 427
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
the servers at the production and DR sites must be in different AZs but in the
same VPC.
Step 1 Log in to the management console and choose Storage > Storage Disaster
Recovery Service.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 428
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 429
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 3 Configure the basic information about the protection group as prompted. (Set
Production Site and VPC to the actual AZ and VPC where the production server is
located, respectively.)
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 430
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 431
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 5 Click Back to Protection Group List to return to the SDRS homepage and query
the protection group status.
Step 6 Click the name of the protected group to view its details.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 432
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 433
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
The server at the DR site is in the Stopped state after the protected instance
created. These automatically created resources, including the DR site servers and
disks, cannot be used before a planned failover or failover.
Step 1 On the Storage Disaster Recovery Service page, click Protected Instances in the
created protection group.
Step 2 Click Create Protected Instance under the Protected Instances tab.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 434
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 3 Configure the basic information about the protected instance as prompted. The
specifications of the server can be modified.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 435
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 4 Click Create Now, confirm the configuration parameters, and click Submit.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 436
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 437
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 5 Click Back to Protection Group Details Page and view the protected instances of
the protection group. If the protected instance status changes to Available or
Protecting, the protected instance has been created successfully.
Step 6 After a protected instance is created, the system automatically creates replication
pairs for the disks of the protected instance and backs up all the disks. To view the
replication pair details, click the Replication Pairs tab.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 438
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
----End
Step 1 On the Storage Disaster Recovery Service page, click Enable Protection in the
pane of the desired protection group.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 439
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 2 In the displayed dialog box, confirm the protection group information, and click
Yes. Once protection is enabled, data synchronization starts.
Step 3 Click the protected group to view the data synchronization progress.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 440
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 5 Log in to the ECS console, and you can see that two ECSs with the same
specifications as those at the DR site are created, the AZ of the two ECSs is the AZ
selected when the protection group is created, and the two ECSs are in the
Stopped state.
----End
Step 1 Log in to the Storage Disaster Recovery Service page. In the pane of the
protection group to be disabled, click Protected Instances.
Step 2 In the upper right corner of the page, click Disable Protection.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 441
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 3 In the displayed dialog box, confirm the protection group information, and click
Yes.
After protection is disabled, data synchronization between the production site and
DR site for all protected instances in the protection group will stop.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 442
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 4 To enable protection again, perform the steps described in Enabling Protection.
----End
SDRS will migrate NICs on the server during the planned failover. After the
planned failover, the IP, EIP, and MAC addresses of the production site server will
be migrated to the DR site server, so that the IP, EIP, and MAC addresses remain
the same.
NOTE
● Ensure that all the servers in the protection group are stopped before the planned
failover.
● During the planned failover, do not start the servers in the protection group. Otherwise,
the planned failover may fail.
● Once a planned failover is complete, data synchronization will not stop, only the
synchronization direction will reverse.
● After the planned failover is complete, the status of the protection group changes to
Protecting. Switch to the protected instance details page and start the server at the
production site.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 443
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 1 Log in to the ECS management console and stop the target server at the
production site.
Step 2 Log in to the Storage Disaster Recovery Service page, click the protected group
for which you want to perform a planned failover, and check the synchronization
result and whether the server in the protected group is stopped.
Step 4 Select the protected instance for which you want to perform a planned failover
and click Execute Planned Failover.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 444
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 6 Check whether the failover is complete. (The failover usually takes several
minutes. The time required depends on the actual situation.)
After the failover, the previous production site becomes the new DR site, the
previous DR site becomes the new production site, and the status of the protected
group and protected instance changes from Planned failover in progress to
Protected.
Step 7 Log in to the ECS management console and view server details at the new
production site and DR site.
----End
Compare the ECS details before and after the failover. It is found that the private
and public IP addresses of the production site server before the failover are the
same as the private and public IP address of the DR site server after the failover. In
this case, manually start the new DR server. (Note that the server at the DR site
cannot be manually started. Only the server at the production site can be
manually started.)
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 445
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 1 After the failover, the servers at the new production site are still in the stopped
state and you need to manually start them. If the startup passwords of the servers
at the new production site are different from those at the current DR site,
manually change the passwords of the servers at the new production site on the
ECS console, restart the ECSs, and the new passwords will take effect.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 446
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 2 Log in to the ecssap1 server at the new production site, click SAP Management
Console on the desktop, right-click S01, and choose Start from the shortcut
menu.
Step 3 Enter the password to start the SAP application and click OK.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 447
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 4 Click the refresh button to view the SAP startup information.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 448
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 6 Enter username ddic and the password, and then press Enter.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 449
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 7 Check whether the SAP GUI login is successful, and whether the SAP application is
running smoothly.
Step 8 Enter slicense and press Enter to view the SAP license.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 450
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 9 Compare the SAP hardware key before and after the DR failover to ensure that the
SAP hardware key keeps unchanged before and after the failover. That is, the SAP
license keeps unchanged.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 451
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 1 Click Enable Protection on the Storage Disaster Recovery Service page.
Step 2 Log in to the SAP system as user ddic. For details, see Checking SAP
Applications.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 452
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 453
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 4 In the dialog box that is displayed, choose Table View > Display-Change.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 454
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 455
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 6 Enter the client parameters, save the settings, and exit.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 456
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 457
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 8 Assign the login permission to the new client, return to the home page, enter
RZ10 in the search box, and press Enter.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 458
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 9 The initial profile cannot be selected. In the dialog box that is displayed, choose
Utilities > Import profiles > Of active servers.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 459
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 460
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 10 Select DEFAULT for Profile name and Default Profile for Prof.type.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 461
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 462
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 463
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 464
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 465
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 17 Log in to the SAP GUI using the created client. The username is SAP* and the
password is pass.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 466
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 467
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 18 Choose SAP Menu > Tools > Administration > Administration > Client
Administration > Client Copy > Local Copy.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 468
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 19 Enter 000 for Source Client, select SAP_ALL under Profiles, and click Start
Immediately.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 469
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 470
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 471
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 21 After the client copy operation is complete, click Log Display.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 472
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 22 Record the operation duration. The duration of Client Copy is 1 hour and 13
minutes when SDRS protection is enabled
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 473
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 23 Click Disable Protection and perform the Client Copy operation again.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 474
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 475
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 476
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 26 Wait until the operation is complete and record the operation duration.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 477
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
As shown in the preceding figure, when SDRS protection is enabled, the Client
Copy operation takes 1 hour and 12 minutes.
----End
Conclusion: By comparing the time required for performing the preceding two
Client Copy operations, you can find that the duration of the Client Copy operation
does not change before and after SDRS protection is enabled. Therefore, enabling
or disabling SDRS protection has no obvious impact on the application
performance.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 478
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 1 Click Enable Protection on the Storage Disaster Recovery Service page.
Step 2 Install and run the HammerDB performance test tool. For details, see Test
Method.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 479
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 480
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 4 Choose SQL Server > TPROC-C > Schema Build, and double-click Options to
configure parameters. Configure SQL Server, SQL Server ODBC Driver, Number
of Warehouses, Virtual Users to Build Schema, and click OK.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 481
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 482
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 6 Wait until the schema is created. The duration depends on the number of
warehouses and schemata.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 483
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 484
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 485
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 8 Choose Driver Script, double-click Options to confirm the parameters, and click
OK.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 486
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 487
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 10 Choose Virtual User and double-click Options. In the Virtual User Options
dialog box, set Virtual Users to the number of virtual users, that is, 20 in this test,
deselect Show Output, and click OK.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 488
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 489
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 490
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 491
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 492
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 493
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 494
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Step 16 Continue the HammerDB performance test until the TPM peak value is stable.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 495
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
NOTE
Transactions per minute (TPM): Number of simulated orders processed by the system in the
TPCC standard model per minute.
----End
Conclusion: By comparing the TPM values before and after SDRS protection is
enabled, performance of the SQL Server database decreases by about 3.39% after
SDRS protection is enabled.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 496
SAP Best Practices
SAP Best Practices 10 Best Practice of SAP Disaster Recovery with SDRS
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 497
SAP Best Practices 11 Best Practice of Rsync-based SAP Disaster
SAP Best Practices Recovery
Script Overview
Preparations
Performing Synchronization
Inotify is a Linux kernel subsystem, which monitors changes to the filesystem, such
as file storing, extracting, deleting, moving, and modification. This software is not
pre-installed in the SUSE Linux OS. You need to install it if necessary. You can
obtain this tool at https://github.com/rvoicilas/inotify-tools.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 498
SAP Best Practices 11 Best Practice of Rsync-based SAP Disaster
SAP Best Practices Recovery
11.2 Preparations
Procedure
Step 1 Log in to node 1 as user root.
Step 2 Generate the public and private keys.
ssh-keygen -t rsa
The following information is displayed:
Generating public/private rsa key pair. Enter file in which to save the key (/home/deven/.ssh/
id_rsa): (Press Enter.)
Enter passphrase (empty for no passphrase): (Press Enter.)
Enter same passphrase again: (Press Enter.)
Your identification has been saved in /home/deven/.ssh/id_rsa.
Your public key has been saved in /home/deven/.ssh/id_rsa.pub.
The key fingerprint is:89:56:d6:4a:b2:6c:4a:05:............
Press Enter after you enter the information required each time as prompted. The
id_rsa and id_rsa.pub files are generated in the /root/.ssh/ directory.
Step 3 Write id_rsa.pub to the authorized-keys file.
cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
Step 4 Modify the permission of id_rsa.
chmod 600 /root/.ssh/id_rsa
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 499
SAP Best Practices 11 Best Practice of Rsync-based SAP Disaster
SAP Best Practices Recovery
Step 6 Check whether the two servers can communicate with each other using using SSH.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 500
SAP Best Practices 11 Best Practice of Rsync-based SAP Disaster
SAP Best Practices Recovery
----End
Procedure
Step 1 Log in to the source node 1 as user root using a key or password.
Step 2 Go to the directory where the decompressed file is stored and run the vi command
to open the sync.conf configuration file.
cd /opt/huawei/DirSyncScript
vi sync.conf
Step 3 Modify the configuration parameters by referring to Table 11-1 and save the
modification.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 501
SAP Best Practices 11 Best Practice of Rsync-based SAP Disaster
SAP Best Practices Recovery
The directories in the following figure are used as an example. Configure the
directories based on the site requirements.
----End
Procedure
Step 1 After modifying the configuration file, run the following command on source node
1:
cd /opt/huawei/DirSyncScript
sh sync.sh
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 502
SAP Best Practices 11 Best Practice of Rsync-based SAP Disaster
SAP Best Practices Recovery
NOTE
In addition to the script execution, the sh sync.sh command has the following functions:
● sh sync.sh init for environment initialization, checking whether Inotify has been
installed. If no, it will be installed.
● sh sync.sh check for environment check, checking whether the modification file is
correct and whether the required software has been installed to determine whether the
synchronization can be started.
● sh sync.sh start for starting the synchronization when the environment is ready. A
synchronization process will be generated for each directory to be synchronized.
● sh sync.sh stop for stopping the synchronization process
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 503
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
Overview
Prerequisites
Installation and Deployment
Installation Verification and Common Usage Examples
Logs and Troubleshooting
Uninstalling Backint Agent
12.1 Overview
Backint is a backup and restoration solution provided by SAP HANA. Backint for
SAP HANA is an API that enables third-party tool vendors to directly connect their
backup agents to the SAP HANA database. Backups are transferred via pipe from
the SAP HANA database to the third-party backup agent, which runs on the SAP
HANA database server and then sends the backups to the third-party party
backup server.
Huawei Backint Agent is provided to back up the data in SAP HANA to OBS. After
the SAP HANA database and Huawei Backint Agent are deployed and related
parameters of SAP HANA database and OBS are configured, Huawei Backint
Agent backs up the SAP HANA database to OBS, restores it, or deletes the backup
files using SAP management tools, such as SAP HANA Cockpit, SAP HANA Studio,
or SAP HANA HDBSQL. Backint can be applied to the following scenarios:
● Backup: Full backup, incremental backup, and differential backup for system
or tenant data
● Restoration: Data restoration from the latest backup file, to a specified time
point, or from a specified backup file
● Deletion: Deletion of specified backup file or backup files earlier than the
specified one
● Query: Queries for full backups, incremental backups, and differential backups
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 504
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
12.2 Prerequisites
For details, see Registering a HUAWEI ID and Enabling Huawei Cloud Services
You can log in to Huawei Cloud using any of the methods described in Logging In
to Huawei Cloud.
The server where the SAP HANA database is located and the OBS bucket must
belong to the same Huawei Cloud account and be in the same region.
You must install SAP HANA Studio or SAP HANA Cockpit on a Windows ECS to
configure Backint. For details about how to install SAP HANA Studio on a HUAWEI
CLOUD ECS, see Installing the SAP HANA Studio on a Windows ECS.
If you install SAP HANA on different servers, do not use the same system ID (SID).
Otherwise, it is difficult to determine which SAP HANA database the data backed
up in the OBS bucket belongs to. If you want to use the same system ID, create
different OBS buckets for independent backup.
Run the following command to obtain the installation script. Select the download
link based on the region where the server accommodating the SAP HANA
database is located.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 505
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
Scri D Command
pt es
cri
pt
io
n
Run the following command as user root to install Backint Agent. Enter the
system ID of the server where Backint Agent is installed for SID in the command,
for example, bash install.sh --install S99.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 506
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
In the high availability (HA) scenario, you need to repeat the preceding operations
to install Backint Agent on the standby server.
12.3.2.1 Creating an IAM Agency for the ECS Where SAP HANA Is Located
Before configuring Backint Agent, you need to create an agency for the ECS where
the SAP HANA database is located to obtain the temporary AK and SK. The
procedure is as follows:
1. Log in to the public cloud management console and select a desired region in
the upper left corner.
2. In the navigation pane on the left, click and choose Management &
Governance > Identity and Access Management.
3. Choose Agencies in the pane on the left, and click Create Agency in the upper
right corner. The Create Agency page is displayed.
5. Configure the agency created in the previous step for the ECS.
● In the navigation pane on the left, click and choose Compute > Elastic
Cloud Server.
● Select the ECS for which you want to configure the agency and click its name
to switch to the basic information page.
● On the tab page that is displayed by default, click the edit icon next to
Agency in the Management Information area, select the created agency,
and save it.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 507
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
1. Log in to the public cloud management console and select a desired region in
the upper left corner.
2. In the navigation pane on the left, click and choose Storage > Object
Storage Service.
● The server where the SAP HANA database is located and the OBS bucket
must be in the same region.
● Select Private for Bucket Policy.
1. Run the following command to go to the directory where the configuration file
is located:
cd /usr/sap/{SID}/SYS/global/hdb/opt/hdbconfig
Replace {SID} in the directory with the actual system ID. Example command:
/usr/sap/S99/SYS/global/hdb/opt/hdbconfig
vi hw-backint-agent.conf
You must set BUCKET, LOGLEVEL, and SID in the configuration file.
● BUCKET: specifies the name of the OBS bucket where Backint Agent reads
and writes data. This OBS bucket will be used to store backups.
● LOGLEVEL: specifies to what extent the log details can be. You only need to
set it to INFO. DEBUG is used only for troubleshooting after a fault occurs.
● SID: specifies the system ID (SID) used during SAP HANA system installation.
● THREADNUM: specifies the number of concurrent backup and restoration
tasks. The value ranges from 1 to 20. The default value is 8. Set this
parameter based on the server specifications.
● BACKUPSIZE: indicates the data volume uploaded by each thread during
backup and restoration (unit: MB). The data volume can be set to a value
ranging from 1 to 2047 (unit: MB). The default value is 200.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 508
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
NOTE
When Backint is used for backup or restoration, certain memory is occupied. Peak usage = 2
x THREADNUM x BACKUPSIZE. Configure these parameters properly based on the memory
of the server. For oversized backup, the value of BACKUPSIZE cannot be too small. Backup
size = BACKUPSIZE x 10000
The following example shows the valid content of the hw-backint-agent.conf file.
BUCKET=xxx
LOGLEVEL=INFO
SID=S01
THREADNUM=8
BACKUPSIZE=200
3. After the file is modified, press Esc, and then press Shift and : at the same time.
Enter wq! to save and exit.
Use SAP HANA Studio or SAP HANA Cockpit to set the parameters in the backup
part of the global.ini configuration file to the values shown in the following table.
To make the changes take effect, you do not need to restart SAP HANA.
Replace {SID} in the directory with the actual system ID. Example:
/usr/sap/S99/SYS/global/hdb/opt/hdbconfig/hw-backint-agent.conf
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 509
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
The following uses SAP HANA 2.0 and SAP HANA Studio as an example to
describe the configuration procedure.
2. In the displayed dialog box, enter the IP address of the server where SAP HANA
is installed and configure required parameters.
3. In the navigation pane on the left, double-click the newly added system. In the
Filter area on the Configuration tab, enter a parameter keyword and configure
the system and database.
4. The following uses the tenant database as an example. On the page that is
displayed, enter the corresponding value in the table and save the setting.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 510
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
5. Repeat steps 3 and 4 until all the parameters listed in the table are configured.
For details about how to set other parameters, see the SAP official document.
After the configuration is complete, perform backup and restoration tests by
referring to Installation Verification and Common Usage Examples to verify
the installation and configuration.
After the upgrade, the parameters in the configuration file may be updated. You
need to modify the configuration file by referring to Modifying the Backint
Agent Configuration File.
In the HA scenario, you need to repeat the preceding operations to upgrade
Backint Agent on the standby server.
NOTE
Before executing the upgrade command, ensure that no backup (including log backup) or
restoration task is being executed. Otherwise, the running tasks may be affected.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 511
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
12.4.2 Backup
You can use SAP HANA Studio, SAP HANA Cockpit, or SAP HANA HDBSQL to back
up the data.
Log backup can be triggered periodically after automatic backup is configured.
Catalog can be automatically backed up when Backint Agent is deployed. For
details about the configuration methods, see Configuring SAP HANA.
The following use a case where SAP HANA Studio is used to back up SAP HANA
2.0 and Backint Agent is deployed to make full backup for data, catalog, and log
and store the backups to OBS as an example to describe the backup procedure.
1. Open SAP HANA Studio, right-click the system to be backed up on the left,
choose Backup and Recovery, and select an option based on the actual
requirements:
● Back Up System Database
● Back Up Tenant Database
2. For example, to back up a tenant database, select a tenant database and set
Destination Type to Backint. You can customize Backup Prefix.
3. Confirm the backup information and click Finish. If the installation and
configuration are successful, the backup progress is displayed until the backup is
complete.
4. After the backup is complete, you can query the backup in OBS. You can view
the backups through OBS Browser+ or go to the Object Storage Service console to
view the backups. The backup directories are as follows:
● System data backup directory: obs://{BUCKET}/usr/sap/{SID}/SYS/
global/hdb/backint/SYSTEMDB
● Tenant data backup directory: obs://{BUCKET}/usr/sap/{SID}/SYS/
global/hdb/backint/DB_{Tenant name}
5. After accessing the preceding directories, you can find the corresponding backup
files based on Backup Prefix you set. Examples of file names for different types of
backups are as follows:
● Full data backup: {Backup Prefix}_databackup_x_x.
● Incremental data backup: {Backup
Prefix}_databackup_incremental_x_xxxxx_xxxxx
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 512
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
You can view the backup files in different directories. You can find the
corresponding backup files based on the backup time and backup ID. If the
corresponding files are found, the backup is successful. The following backup file
directory is an example.
obs://xxx/usr/sap/S99/SYS/global/hdb/backint/DB_S30/
COMPLETE_DATA_BACKUP_databackup_2_1/1626157625497.bak
12.4.3 Restoration
You can use SAP HANA Studio, SAP HANA Cockpit, or SAP HANA HDBSQL to
restore the data for SAP HANA.
The following use a case where SAP HANA Studio is used to restore the data in
SAP HANA 2.0 and Backint Agent is deployed to make full backup for data,
catalog, and log and store the backups to OBS as an example to describe the
restoration procedure.
1. Open SAP HANA Studio, right-click the system which data restoration needs to
be performed for on the left, choose Backup and Recovery, and select an option
based on the actual requirements:
2. For example, to restore the data in the tenant database, select a tenant
database and select a restoration type:
3. For example, to restore the database to its most recent state, select Search for
the backup catalog in Backint only in Recover using the backup catalog.
4. The tenant database needs to be shut down during the restoration. In the
dialog box that is displayed, click OK.
5. After selecting a backup file, you can click Check Availability to check whether
the backup file is available. If the icon turns into green, the backup file is
available. Click Next. Confirm the information and click Next.
6. If you want to check the availability of differential backups and log backups
during the restoration, select Third-Party Backup Tool (Backint) and click Next.
7. Confirm the information restored and click Finish. If the installation and
configuration are successful, the restoration progress is displayed until the
restoration is complete.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 513
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 514
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
The following use a case where SAP HANA Studio is used to delete backups of SAP
HANA 2.0 and Backint Agent is deployed to make full backup for data, catalog,
and log and store the backups to OBS as an example to describe the backup
deletion procedure.
1. Open SAP HANA Studio and double-click Backup on the left. On the page that
is displayed, select Backup Catalog and select the target tenant from Database.
The corresponding backups are displayed.
2. Right-click a backup to perform the following operations:
● To delete a single data backup, click Delete Data Backup.
● To delete the data backups earlier than the specified one, click Delete Older
Backups. Third-Party Backup Tool (Backint) need to be selected in the
subsequent step.
3. If you want to delete all backups, select Catalog and Backup Location. If you
want to delete only the backups from the catalog, select Catalog.
4. Click Next, confirm the information, and click Finish.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 515
SAP Best Practices
SAP Best Practices 12 SAP Backint Installation Guide
In the high availability (HA) scenario, you need to repeat the preceding operations
to uninstall Backint Agent on the standby server.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 516
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
Overview
Preparations Before the Upload
Uploading Backups to the OBS Bucket
FAQs
13.1 Overview
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 517
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
13.1.2 Script
This script is developed using Python and applies to the Linux operating system.
This script is used to upload local files to the OBS bucket and save copies locally.
This script calls the obsutil to upload files to the OBS bucket.
obsutil is a command line tool for accessing OBS. You can use this tool to perform
common configurations in OBS, such as creating buckets, uploading and
downloading files/folders, and deleting files/folders. If you are familiar with
command line interface (CLI), obsutil is recommended as an optimal tool for
batch processing and automated tasks.
13.1.3 Dependency
The script runs on the Linux operating system and is compatible with all Linux
versions. The script invokes obsutil. Table 13-1 shows the dependency between
the running environment of the obsutil and python.
Procedure
Step 1 Register an account and use OBS.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 518
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
Procedure
Step 1 Log in to a server as user root using a key or password.
wget https://obs-sap-ap-southeast-1.obs.https://obs-
sap.obs.myhuaweicloud.com/obsutil_adapter/obsutil_adapter.zip.com/
obsutil_adapter/obsutil_adapter.zip -P /opt/huawei
cd /opt/huawei
NOTE
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 519
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
Procedure
Step 1 Log in to a server as user root using a key or password.
Step 2 Run the following command to modify the obsutil_adapter.cfg configuration file
and save it:
vi /opt/huawei/obsutil_adapter/obsutil_adapter.cfg
Step 3 Modify the configuration parameters by referring to Table 13-3 and save the
modification.
obs_pat Path of the OBS bucket to which the backups will be obs-sap/
h uploaded. You can enter the OBS bucket name and hana
specify a path after the bucket name. The format is
bucket name/bucket path. Use the OBS bucket path you
need.
modifie Upload interval. The unit is minute. The files that are 5
d_inter modified within this period will not be uploaded. For
val example, if its value is set to 5, files that are modified
within the last 5 minutes will not be uploaded.
NOTE
The value of modified_interval must be an integer.
reserve File reservation period. The unit is minute. For example, 2880
_time if its value is set to 2880, the files in the
backup_archive can be stored for 2880 minutes at most
locally.
NOTE
The value of reserve_time must be an integer.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 520
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
backup Path that stores file backups. After the backup of a file /hana/
_path is complete, the file is moved to backup_archive. backup/
NOTE data
Multiple paths are supported. Use commas (,) to separate
paths. For example: /hana/backup/data, /hana/backup/log
backup Files that are successfully uploaded are archived in this /hana/
_archiv directory. backup/
e When this script is executed, the files in the archive
backup_archive directory are queried first. If the
difference between the current time and the file
creation time exceeds the value of reserve_time, the
files will be deleted. Otherwise, files will be backed up
in the backup_path directory. After the backup of files
is complete, the files will be archived in
backup_archive.
NOTE
----End
Prerequisites
● The obsutil has been downloaded. For details, see Downloading Software.
● The access keys (AK and SK) have been obtained. For details, see Step 3 in
Preparing the Environment.
Procedure
Step 1 Run the following commands to initialize obsutil:
chmod +x obsutil
./obsutil config -i=ak -k=sk -e=endpoint
● ak: indicates the tenant access key, that is, the AK in Creating Access Keys
(AK and SK).
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 521
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
● sk: indicates the tenant secret key, that is, the SK in Creating Access Keys
(AK and SK).
● endpoint: The IP address of an endpoint varies from region to region. Table
13-4 lists OBS endpoint IP addresses. For more information about OBS
endpoints, see Regions and Endpoints.
NOTE
Step 2 After the configuration is complete, you can run the following command to check
the connectivity:
./obsutil ls -s
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 522
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
Procedure
Step 1 After modifying the configuration file, run the following commands to start the
upload:
cd /opt/huawei/obsutil_adapter
python3 obsutil_adapter.py
NOTE
After the script is executed, log in to OBS to view the uploaded file. The directory name on
OBS is determined by time, and the structure is Bucket path/Year and month/Day/, for
example, obs-sap/hana/201808/22/.
----End
Procedure
Step 1 Run the following command to call the script:
cd /opt/huawei/obsutil_adapter && python3 obsutil_adapter.py
NOTE
----End
Procedure
Step 1 Edit the crontab file:
crontab -e
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 523
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
Set the scheduled task. Change the time according to the actual situation, save
the modification, and exit.
If the following information is displayed, the script will be called at 21:30 o'clock
every day:
30 21 * * * cd /opt/huawei/obsutil_adapter && python3 obsutil_adapter.py >/dev/null 2>&1
NOTE
The scheduled task execution time is defined by the customer. Ensure that the scheduled
task execution time is later than the backup time.
Step 2 View scheduled tasks. If you can find the scheduled tasks in Step 1 by running the
following command, it indicates that the setting is successful.
crontab -l
----End
13.4 FAQs
NOTICE
● Ensure that source objects in the OBS bucket do not change. Otherwise, the
download may fail or data may be inconsistent.
● If the objects to be downloaded are in the OBS Archive storage class, you must
restore the objects first. Otherwise, the download fails.
Procedure
Step 1 Log in to a server as user root using a key or password.
Step 2 Run the following command to recursively download all files and folders
(including the folder itself) in the bucket to a local path:
./obsutil cp obs://obs_path/Year/Month/Day/Local path -r -tempFileDir= a
specified path -f
In the preceding command:
● obs_path: OBS bucket path, for example: obs-sap/hana
● Year/Month/Day: directory of a folder in the OBS bucket. For example:
201905/28.
● Local path: path where the files are stored on the local host. For example:
src1.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 524
SAP Best Practices 13 Best Practices for Uploading SAP Backups to the
SAP Best Practices OBS Bucket
– Temporary files generated during multipart download are stored in this directory.
Ensure that the user who runs obsutil commands has the write permission on the
path.
– The available space of the path must be greater than the size of the objects to be
downloaded.
For example, in the obs-sap bucket, download the backup files of May 28, 2019 to
the local path src1. The command is as follows:
./obsutil cp obs://obs-sap/hana/201905/28 /src1 -r -tempFileDir=/hana/backup
-f
For more information about obsutil, see Introduction to obsutil.
----End
NOTICE
Procedure
Step 1 For details, see Configuring a Lifecycle Rule.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 525
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
Purpose
Resource Planning
Deployment
HA Solution
Backup
DR
Cloud Migration
14.1 Purpose
This document describes the HUAWEI CLOUD SAP ASE solution, including
information about resource selection, system backup, high availability (HA),
disaster recovery (DR), and offline system migration. HUAWEI CLOUD provides
various cloud services to ensure stable and secure running of the SAP Adaptive
Server Enterprise (ASE) system.
The HUAWEI CLOUD SAP ASE solution has the following advantages:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 526
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
HUAWEI CLOUD uses the built-in license for the SAP ASE database. HUAWEI
CLOUD provides a high-performance enterprise-level relational database
management system for SAP ASE, which is suitable for mission-critical services
and data-intensive environments. For additional information about running SAP
ASE on HUAWEI CLOUD, see SAP Note #2644322, which requires SAP Service
Marketplace credentials.
When deploying the SAP ASE system, you need to plan public and private IP
addresses. For details, see Table 14-1.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 527
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
NOTE
The following node names, network segments, and IP addresses are provided for reference
only. Set them based on the actual network plan.
Small-scale
This scheme is applicable to the small enterprise resource planning (ERP) system
or other SAP systems, such as PI, SAP Portal product portfolio, CRM, and SRM. M3
ECSs are suitable for development, testing, and production systems. Table 14-2
lists the specifications.
Development 4 32 m3.xlarge.8
Testing 4 32 m3.xlarge.8
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 528
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
Production 8 64 m3.2xlarge.8
Medium-scale
This scheme is applicable to the medium-sized ERP system. M3 ECSs are suitable
for development, testing, and production systems. Table 14-3 lists the
specifications.
Development 4 32 m3.xlarge.8
Testing 8 64 m3.2xlarge.8
Large-scale
This scheme is applicable to the large ERP system. M3 ECSs are suitable for
development, testing, and production systems. Table 14-4 lists the specifications.
Development 8 64 m3.2xlarge.8
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 529
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
14.3 Deployment
Installation Media
Table 14-6 lists the required installation media.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 530
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
Licenses
Bring-Your-Own-License (BYOL) is used for authorization. You can log in to the
SAP help portal to apply for the license as required.
OSs
The OS is SUSE Linux Enterprise Server For SAP Applications 12 SP3. SAP ASE
database is mainly used for SAP NetWeaver 7.4 and 7.5. The Kernel version is 740
or later, and the ASE version is 16.0 or later.
For details about the version mapping, see the OS Support List on the SAP
website.
14.4 HA Solution
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 531
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
14.4.1 Database HA
The typical HA solutions commonly used by the ASE database are available on
HUAWEI CLOUD. For example, both High-availability and disaster recovery
(HADR) and SUSE® Linux Enterprise High Availability Extension (HAE) can be used
to achieve ASE system HA. HUAWEI CLOUD also provides HA solutions for both
the databases and applications to ensure stable and reliable running of the SAP
ASE system.
NOTE
The databases and applications of the SAP ASE production system is installed in distributed
mode.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 532
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
14.4.2 Application HA
Applications and databases in the SAP ASE production system are installed in
distributed mode, so that the application layer and HA scheme are the same as
those of the SAP HANA system.
14.5 Backup
SFS and OBS are suitable storage media for the database backup. SFS is a network
attached storage (NAS) service that provides scalable high-performance file
storage. Use SFS as the storage medium of ASE database backup files. OBS is a
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 533
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
stable, secure, efficient, and easy-to-use cloud storage service. It provides highly
reliable storage capabilities at relatively low costs. Use OBS as the archive storage.
You can upload SFS data to OBS.
HUAWEI CLOUD provides a free backup uploading script to periodically archive
backup files in SFS file systems to OBS buckets, and clear the files in the SFS file
systems based on user-defined rules. For details, see Best Practices for Uploading
SAP Backups to the OBS Bucket.
4. Choose Job Selection > Database Dump > Start Immediately. You can also
choose Schedule as Recurring Action as needed.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 534
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
For details about how to back up the ASE database and logs, see the following
notes:
For more details about DBA Cockpit, see The DBA Cockpit on the SAP website.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 535
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
NOTE
For incremental backup, set trunc log on chkpt to false. The command is as follows:
sp_dboption my_database, "trunc log on chkpt", false
For details about how to run the DUMP DATABASE commands to back up the
database, see the "Backing Up Databases" section in Backup and Recovery on the
SAP website.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 536
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
14.6 DR
14.6.1 Database DR
In the SAP ASE system, the DR strategies for applications and databases are
different.
● On HUAWEI CLOUD, use SDRS for the DR of SAP application servers.
● For the ASE database, use the HADR scheme or HUAWEI CLOUD SDRS. For
details about the SDRS, see the Storage Disaster Recovery Service User
Guide.
Figure 14-4 shows the HADR scheme of the ASE database.
Description
The SAP ASE production system is deployed in HA mode. The HADR scheme
facilitates synchronous replication between the primary and standby nodes to
ensure data consistency. The asynchronous replication is implemented between
the standby node and the standby DR node.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 537
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
The DR system is deployed in a different area from the production system. The
two areas are connected through private lines. For more details about HADR, see
HADR with SAP ASE on the SAP website.
NOTE
The primary, standby, and standby DR nodes must have the following in common:
● OS and patch level
● SAP ASE version
● ASE database parameter configuration
NOTE
This service applies only to the systems running on HUAWEI CLOUD. To backup and recover
on-premises servers to HUAWEI CLOUD, deploy the application servers on HUAWEI CLOUD.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 538
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
NOTE
This solution applies only to the scenario where the source and target application servers
are the same. If you need to change the application server software version or perform
heterogeneous database migration, you need to reinstall the application servers.
You can select a homogeneous migration solution as needed. Table 14-7 describes
the optional schemes.
Solution Description
Database backup and The operation is simple, but the service downtime is
restoration long.
NOTE
The downtime includes the time for offline backup, backup
uploading, and restoration.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 539
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
Solution Description
HUAWEI CLOUD SMS supports batch migration and does not require ASE
Server Migration database administrators. However, the downtime of this
Service scheme is long, which is mainly for incremental data
synchronization.
Step 1 On HUAWEI CLOUD, plan the subnet for the target end, configure security group
policies, and build a target system that has the same OS, database, and
application servers as the source system.
Step 2 Stop the services on the source system and back up the ASE database offline.
Step 3 Copy the database backup files from the source system to the file system in the
target system. You can use OBS to transfer the files. Upload the files to Huawei
Cloud OBS using obsutil and then download the file to the target server.
Step 5 Verify data integrity and switch the database services to the target system.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 540
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
Step 1 On HUAWEI CLOUD, create the a subnet, configure security group policies, and
build a target system that has the same OS, database, and application servers as
the source system.
Step 2 Configure the data replication from the source system to the target system. For
details, see SAP HADR Users Guide.
Step 3 After the synchronization is complete, stop services in the source system and
switch them to the target system.
----End
Step 1 On HUAWEI CLOUD, plan the subnet for the target end, configure security group
policies, and build a target system that has the same OS, database, and
application servers as the source system.
Step 2 Prepare for the migration. Install the migration Agent on the source server, enable
the ports required for migration, and provide user information used for migration.
Step 3 Migrate the database server. Use the Server Migration Tool to migrate the ECSs.
You do not need to stop the services on the source server.
Step 4 Synchronize incremental data and switch the services. Synchronize incremental
data to the target ECS and switch services to the target system after the
synchronization.
Step 5 Monitor the target system for about one week to check if the target system is
running properly. After the verification, release source system resources.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 541
SAP Best Practices
SAP Best Practices 14 Best Practices of the SAP ASE Solution
Step 1 On HUAWEI CLOUD, create the a subnet, configure security group policies, and
build the target system, including the database and application servers.
Step 2 Stop the source system services. Run the SWPM tool on the source server and use
System Copy to export data. For details, see SAP System Copy.
Step 3 Upload the exported data to the file system of the target system.
Step 4 Run the SWPM tool in the target system and use System Copy to import data.
Step 5 Verify data integrity and switch the database services to the target system.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 542
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Overview
Before You Start
Upgrading ECS Configuration
Expanding EVS Disk Capacity
Verifying the Expansion
FAQs
15.1 Overview
If the ECSs or EVS disks you purchased cannot meet your surging SAP business
requirements, you can expand the resources on HUAWEI CLOUD.
This document describes how to expand ECSs and EVS disks on HUAWEI CLOUD.
ECS Expansion
● Modifying ECS Specifications
If the ECS specifications do not meet service requirements, you can modify the
ECS specifications, including vCPUs and memory. Table 15-1 describes an
example where an SAP HANA ECS is upgraded from e1.4xlarge to e1.8xlarge.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 543
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Description:
A system disk of 100 GB and a data disk of 470 GB are attached to an ECS.
The system disk and data disk are expanded to 200 GB and 940 GB,
respectively.
● For details about the Expanding EVS Disk Capacity (with LVM), see Table
15-3.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 544
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Description:
There are two data disks of 400 GB each attached to an ECS. A logical volume
of 696 GB is divided from the LVM volume that is formed by the two data
disks and mounted to the /hana/data directory. You can expand the /hana/
data directory to 1.4 TB by expanding the capacity of EVS disks and the file
system.
The following documents describe how to expand the capacity of an EVS disk.
● Expansion Overview
● Post-Expansion Operations for a Windows EVS Disk
ET2 ET2
ET2 E3
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 545
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
e3 e3
SAP H1 H1
applications
M3 M3
c6 c6
Expansion 1 GB
increment
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 546
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
NOTICE
When a disk has been put to use, you must check the disk partition style before
expanding its capacity as follows:
● If the MBR partition style is used, the maximum disk capacity supported is 2
TB (2048 GB), and the disk space exceeding 2 TB cannot be allocated and
used.
● With GPT, you can expand the capacity of a data disk to up to 32 TB. An EVS
data disk supports up to 32 TB (32768 GB) so that you can expand the
capacity of a data disk to up to 32 TB when the GPT partition style is used.
If the in-use partition style is MBR and the disk capacity needs to be expanded to
over 2 TB, change the partition style from MBR to GPT. Ensure that the disk data
has been backed up before changing the partition style because services will be
interrupted and data on the disk will be cleared during this change.
15.2.3 Impact
This section describes the possible impacts of the capacity expansion.
NOTICE
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 547
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Preparations
To prevent NIC IP address flapping after the specification is modified, run the
following commands on the ECS to delete the network rules files whose names
contain persistent and net from the directory before modifying the specification:
rm -fr /etc/udev/rules.d/*net*persistent*.rules
rm -fr /etc/udev/rules.d/*persistent*net*.rules
Procedure
Step 1 Log in to HUAWEI CLOUD management console.
Step 2 Choose Service List > Computing > Elastic Cloud Server.
Step 3 In the ECS list, select the ECS whose specifications you want to modify and click
Stop.
NOTE
Stop the SAP applications running on the ECS before stopping the ECS.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 548
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Procedure
Step 1 Stop the HANA database of the source system or shut down the source ECS.
Step 2 Create a full-ECS image using the ECS. For details, see Creating a Full-ECS Image
Using an ECS.
Step 3 (Optional) If you need to purchase an ECS in another region, copy the newly
created full-ECS image to the target region. For example, the original HANA server
is an ECS in a CN East region, and you need to migrate it to a CN South region.
1. Log in to the management console and choose Service List > Computing >
Image Management Service.
2. In the Operation column of the newly created image, click More and choose
Replicate.
3. Set parameters as prompted. For details, see Table 15-6.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 549
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
You can modify the private IP address of an ECS. If the source and target systems are in the
same VPC, you need to release the source ECS IP address first and then change the target
ECS IP address to the released one. For details, see Modifying a Private IP Address.
Step 6 (Optional) Adjust the disk capacity after modifying ECS specifications. For details,
see Expanding EVS Disk Capacity.
Step 7 Start the HANA database for verification.
Step 8 Check the connection between an SAP application and the HANA database and
configure SAP HANA HA.
----End
Procedure
Step 1 Create a full-ECS image for the ECS. For details, see Creating a Full-ECS Image
Using an ECS.
Step 2 Purchase a HANA database ECS using the full-ECS image. For details about how to
create the image, see Step 2 to Step 7.
Step 3 Migrate data from the source system to the target system. Use the backup
recovery or the HSR function.
● Using HSR for the migration
After the HANA database ECS is provisioned, use HSR to synchronize data.
Figure 15-2 shows the scheme. For details, see SAP HANA Administration
Guide. Configure system replication and synchronize the data. Perform
database takeover on the target ECS and modify the address mapping
between the SAP application server and the database ECS.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 550
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Step 4 Check connections between SAP applications and the HANA database and
perform subsequent operations, such as configuring HANA HA.
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 551
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Procedure
Step 1 Expand the EVS disk capacity.
1. Log in to HUAWEI CLOUD management console.
2. Choose Service List > Computing > Elastic Cloud Server.
3. In the ECS list, click the name of an ECS.
4. Under the Disks tab, click next to the system disk name.
5. Click the system disk ID to go to the system disk details page.
6. In the upper right corner of the page, click Expand Capacity.
7. Enter the capacity to be added based on the site requirements. For example:
100 GB and click Next.
8. Confirm the configuration information and click Submit.
The system disk capacity expansion is complete.
9. Expand the data disk capacity by following step Step 1.1 to Step 1.8.
Step 2 Expand partitions.
1. Log in to the ECS as user root.
2. Run the following commands to check the disk capacity after the expansion:
lsblk
df -Th
If information similar to the following is displayed, the disk capacity has been
expanded to 200 GB and 940 GB, but the mounted directory and /hana/data
directory are not expanded. Expand partitions and file systems of the
expanded EVS disks.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 552
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
3. In this example, system disk xvda has a partition xvda1. You need to run
growpart to expand the partition.
growpart /dev/xvda 1
4. Run the following command to check whether the xvda1 partition of the
system disk has been expanded to 200 GB. The data disk has no partition. You
do not need to run growpart. The default size is 940 GB.
fdisk -l
Step 3 Run the following command to expand the capacity of the file system:
● Run the resize2fs command to expand the ext2, ext3, or ext4 file systems.
● Run the xfs_growfs command to expand the xfs file system.
In this example, run the following commands:
resize2fs /dev/xvda1
xfs_growfs /hana/data
----End
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 553
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Procedure
Step 1 Expand the capacity of the EVS disks by following the instructions provided in
Expanding EVS Disk Capacity (Without LVM).
Step 2 Run the following command to check the sizes of the two EVS disks after capacity
expansion:
lsblk
If information similar to the following is displayed, the sizes of the two EVS disks
are both 800 GB, but the size of the logical volume is still 696 GB.
Step 3 Run the following commands to expand the physical volume capacity and check
the sizes of the physical volumes after the capacity expansion:
pvresize /dev/vdb
pvresize /dev/vdc
pvs
If information similar to the following is displayed, the sizes of the physical
volumes are both 800 GB after the capacity expansion:
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 554
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Step 4 Run the following command to check the size of the LVM volume group:
vgdisplay
If information similar to the following is displayed, the size of the LVM volume
group is expanded to 1.56 TB.
Step 5 Run the following command to add 696 GB to the logical volume:
lvextend -L +696G /dev/mapper/vghanadata-lvhanadata
If information similar to the following is displayed, the logical volume capacity is
expanded by 696 GB.
Step 6 Run the following command to check the logical volume capacity:
lvdisplay
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 555
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
Step 7 Run the following command to expand the capacity of the file system:
● Run the resize2fs -d /hana/data command to expand the ext2, ext3, or ext4
file system.
● Run the xfs_growfs -d /hana/data command to expand the xfs file system.
In this example, run the following command:
xfs_growfs -d /hana/data
----End
Procedure
Step 1 View the ECS specification.
1. Log in to HUAWEI CLOUD management console.
2. Choose Service List > Computing > Elastic Cloud Server.
3. In the ECS list, locate the row that contains the target ECS, check whether the
ECS specification is successfully changed.
– If yes, the expansion is successful.
– If no, handle the problem by referring to What Can I Do If the ECS
Specifications Fail to Be Modified?.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 556
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
After the specification is modified, disk attachment may fail. Therefore, check disk
attachment after specification modification. If disks are properly attached, the
specification modification is successful.
1. Log in to the ECS as user root.
2. Run the following command to view the disks attached before specification
modification:
fdisk -l| grep 'Disk /dev/'
3. Run the following command to view disks attached after specification
modification:
df -h| grep '/dev/'
4. Check whether the number of disks in Step 2.2 and Step 2.3 is the same.
– If yes, the disk attachment is successful. No further action is required.
– If no, the disk attachment failed. In such a case, go to Step 2.5.
5. Run the mount command to attach the disks.
Example:
mount /dev/vbd1 /mnt/vbd1
In the preceding command, /dev/vbd1 is the disk to be attached, and /mnt/
vbd1 is the path for disk attachment.
NOTICE
Run the following commands to check whether the number of disks in Step
2.2 and Step 2.3 are the same:
fdisk -l| grep 'Disk /dev/'
df -h| grep '/dev/'
– If they are the same, no further action is required.
– If no, contact customer service for technical support.
----End
Procedure
Step 1 Log in to the ECS as user root.
Step 2 Run the following command to check the capacity of the /hana/data directory
after the expansion:
df -Th
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 557
SAP Best Practices
SAP Best Practices 15 Best Practices of SAP System Capacity Expansion
----End
15.6 FAQs
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 558
SAP Best Practices
SAP Best Practices A Change History
A Change History
Description Released On
This issue is the fifteenth official release, which incorporates the 2023-11-06
following changes:
Added section "SAP S/4HANA (1809) HA Deployment Best
Practice".
Removed the best practice of obsfs-enabled SAP HANA backup.
This issue is the twelfth official release, which incorporates the 2021-12-31
following change:
Added the SAP Backint Installation Guide.
This issue is the eleventh official release, which incorporates the 2021-10-08
following change:
Added the best practice of SAP migration from Xen to KVM.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 559
SAP Best Practices
SAP Best Practices A Change History
Description Released On
This issue is the tenth official release, which incorporates the 2021-08-31
following changes:
Added the "HUAWEI CLOUD SAP on Oracle Installation Best
Practice".
Added the "HUAWEI CLOUD SAP Business One on HANA
Installation Best Practice".
Added the "Best Practice of Using Block-Level Migration of SMS
to Migrate SAP Applications and Databases Running on Linux
Servers".
Added the "Best Practice of Rsync-based SAP Disaster
Recovery".
This issue is the ninth official release, which incorporates the 2021-08-04
following change:
Added the best practice of obsfs-enabled SAP HANA backup on
HUAWEI CLOUD.
This issue is the eighth official release, which incorporates the 2021-06-30
following change:
Added SAP monitoring best practices.
This issue is the seventh official release, which incorporates the 2021-06-07
following changes:
Added the "SAP S/4HANA (1809) HA Deployment Best
Practice".
Added the "HUAWEI CLOUD SAP on DB2 Installation Best
Practice".
Added the "HUAWEI CLOUD SAP on SQL Server Installation
Best Practice".
Added the "Best Practice of SAP Disaster Recovery with SDRS".
This issue is the third official release, which incorporates the 2020-07-06
following change:
Added the best practices of migrating the SAP system to
HUAWEI CLOUD.
This issue is the second official release, which incorporates the 2019-07-12
following change:
Added the best practices of uploading SAP backups data to the
OBS bucket.
Issue 01 (2024-03-12) Copyright © Huawei Cloud Computing Technologies Co., Ltd. 560