Guide HA For SAPHANA On Azure SIOSProtectionSuite
Guide HA For SAPHANA On Azure SIOSProtectionSuite
Guide HA For SAPHANA On Azure SIOSProtectionSuite
Balamuralikrishnan Anbalagan
Bala.Anbalagan@Microsoft.com
https://us.sios.com
Table of Contents
Introduction .................................................................................................................................................. 3
SIOS Protection Suite ................................................................................................................................ 3
Components of SIOS Protection Suite ...................................................................................................... 3
SIOS LifeKeeper ..................................................................................................................................... 3
Witness/Quorum .................................................................................................................................. 3
SAP HANA Recovery Kit ......................................................................................................................... 4
IP Recovery Kit ...................................................................................................................................... 4
IP-Gen-App (optional) Provided As-Is ................................................................................................... 4
Support...................................................................................................................................................... 4
SAP Support .......................................................................................................................................... 4
SIOS Support ......................................................................................................................................... 4
Implementation ............................................................................................................................................ 5
Deploy Infrastructure ................................................................................................................................ 6
Install SIOS Protection Suite & Recovery Kits ........................................................................................... 6
Install SIOS Protection Suite.................................................................................................................. 6
Configure HANA System Replication....................................................................................................... 13
Create HANA Cluster Resource ............................................................................................................... 14
Create Communication Path between Cluster Nodes and Witness ................................................... 14
Create Azure IP Gen App for HANA (Optional) ................................................................................... 18
Create IP Resource for HANA .............................................................................................................. 22
Create HANA Cluster Resource ........................................................................................................... 24
Create Dependency to HANA & IP Resource ...................................................................................... 35
Operations .................................................................................................................................................. 35
Cluster Failover Test.................................................................................................................................... 35
Controlled failover .............................................................................................................................. 35
Kernel Panic ........................................................................................................................................ 38
Appendix ..................................................................................................................................................... 38
Important reads ...................................................................................................................................... 38
https://us.sios.com
Introduction
HANA System Replication is the only supported high availability solution on Azure virtual machines
(VMs). SAP HANA Replication consists of one primary node and at least one secondary node. Changes to
the data on the primary node are replicated to the secondary node synchronously or asynchronously.
Please refer SAP Note 1662610 Support details for SIOS Protection Suite for Linux
SIOS LifeKeeper
The LifeKeeper family of products includes software that allows you to provide failover protection for a
range of system resources.
Witness/Quorum
The Quorum/Witness Server Support Package for LifeKeeper (steeleye-lkQWK, hereinafter
“Quorum/Witness Package”) combined with the existing failover process of the LifeKeeper core allows
system failover to occur with a greater degree of confidence in situations where total network failure
could be common. This effectively means that local site failovers and failovers to nodes across a WAN
can be done while greatly reducing the risk of split-brain situations.
https://us.sios.com
SAP HANA Recovery Kit
SAP HANA provides three different mechanisms to increase the availability.
Host Auto-Failover – At least one standby node added to a SAP HANA system. These nodes are
configured to work in standby mode (SAP HANA scale-out)
Storage Replication – The storage used on the SAP HANA node replicates all data to another SAP HANA
node. This replication works without a control process from the SAP HANA system. The Storage
Replication is provided by hardware partners.
System Replication – SAP HANA replicates all data by using their own feature to a secondary SAP HANA
node. Data is constantly pre-loaded on the secondary SAP HANA node. (SAP HANA scale-up)
With this SAP HANA Recovery Kit SAP HANA systems can be controlled through an activated system
replication in SIOS LifeKeeper.
IP Recovery Kit
The SIOS Protection Suite for Linux Internet Protocol (IP) Recovery Kit provides a mechanism to recover
an IP address from a failed primary server to a backup server in a LifeKeeper environment. The IP
Recovery Kit can define an IP address that can be used to connect to a LifeKeeper-protected application.
As with other LifeKeeper resources, IP resource switchovers can be initiated automatically as a result of
a failure or manually by an administrative action.
Support
SAP Support
Support for SAP products is provided by the customer’s SAP support agreement directly from SAP. SIOS
does not replace the need for an SAP support agreement.
SIOS Support
As a SIOS Technology Corp. customer with a valid Support contract, you are eligible for support as
outlined by the SIOS Technical Support Agreement. The SIOS Technical Support Agreement is provided
to each customer with the software purchase.
https://us.sios.com
Implementation
Note:
SLES 12 SP4 with SIOS Protection Suite for Linux 9.3.2 is used in this illustration.
Please refer SAP Note 1662610 for other supported operation systems on Azure
This section describes how to deploy and configure the virtual machines, install the cluster framework,
and install and configure SAP HANA System Replication. In the example configurations, installation
commands, instance number 00, and HANA System ID S4D are used.
The following list shows the configuration of the HANA & Witness Node IP addresses and Virtual
Hostnames configured in DNS.
azsuhana2 11.1.2.52
https://us.sios.com
SAP HANA System Replication setup uses a dedicated virtual hostname and virtual IP addresses. On
Azure, a load balancer is required to use a virtual IP address. The following list shows the configuration
of the load balancer:
For the back-end configuration, connect the load balancer to primary network interfaces of all virtual
machines that should be part of HANA System Replication
Deploy Infrastructure
Please refer corresponding azure docs to provision you infrastructure, Install HANA and configure HSR
SLES
RHEL
LifeKeeper Core
• azsuhana1
• azsuhana2
• azsusapwit2
Witness/Quorum
• azsusapwit2
• azsuhana1
• azsuhana2
https://us.sios.com
• download the HANA Application Recovery Kit based on your HANA version - HANA2-ARK.run
• download the Azure IP Recovery kit - SIOS_enhancedAzure_gen_app-02.02.00.tgz
PLEASE NOTE: The file name may vary based on the version
mkdir -p /DVD
./setup
https://us.sios.com
Please repeat the steps for all witness nodes.
Install SAP Recovery Kit in HANA Nodes change directory to SIOS installation media which was mounted
as /DVD
cd /DVD
./setup
https://us.sios.com
FIGURE 1 - SELECT “INSTALL LICENSE KEY”
https://us.sios.com
FIGURE 3 - SELECT “RECOVERY KIT SELECTION MENU”
https://us.sios.com
FIGURE 5 - SELECT “LIFEKEEPER SAP RECOVERY KIT”
https://us.sios.com
FIGURE 7 - SELECT “YES” & PRESS “ENTER”
https://us.sios.com
Install the rpm downloaded into the /tmp directory.
See http://docs.us.sios.com/spslinux/9.4.0/en/topic/sap-hana-installation-and-configuration
• NOTE: Make sure you put the files in a folder that is safe to execute. On some installations,
programs need to be authorized to execute from certain folders. You can make sure that the
setup program has execute permission (chmod +x setup.)
• Note the folder where the files are stored (e.g. /root/folder)
https://us.sios.com
Configure System Replication on the second node:
Register the second node to start the system replication. Run the following command as <hanasid>adm :
https://us.sios.com
https://us.sios.com
https://us.sios.com
https://us.sios.com
Create Azure IP Gen App for HANA (Optional)
Install Azure CLI
Install Azure CLI on the (A)SCS cluster nodes which is a pre-requisite for SIOS Enhanced Azure IP GenApp.
Please refer to the installation procedure respective to OS
• RHEL
• SLES
az login --use-device-code
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and
enter the code “B3D42JUFD” to authenticate
https://us.sios.com
Create Azure IP Gen App
https://us.sios.com
https://us.sios.com
https://us.sios.com
Create IP Resource for HANA
https://us.sios.com
https://us.sios.com
Create HANA Cluster Resource
https://us.sios.com
https://us.sios.com
/opt/LifeKeeper/HANA2-ARK/restore.pl
/opt/LifeKeeper/HANA2-ARK/remove.pl
/opt/LifeKeeper/HANA2-ARK/quickCheck.pl
/opt/LifeKeeper/HANA2-ARK/recover.pl
https://us.sios.com
https://us.sios.com
https://us.sios.com
https://us.sios.com
https://us.sios.com
https://us.sios.com
https://us.sios.com
https://us.sios.com
https://us.sios.com
Create Dependency to HANA & IP Resource
Operations
https://us.sios.com
https://us.sios.com
https://us.sios.com
Kernel Panic
Enter the following command
echo c > /proc/sysrq-trigger
Appendix
Important reads
Read the following SAP Notes and papers first: SAP Note 1662610 Support details for SIOS Protection
Suite for Linux
The list of Azure VM sizes that are supported for the deployment of SAP software.
The supported SAP software, and operating system (OS) and database combinations.
The required SAP kernel version for Windows and Linux on Microsoft Azure.
SAP Note 2015553 lists the prerequisites for SAP-supported SAP software deployments in Azure.
SAP Note 2205917 has recommended OS settings for SUSE Linux Enterprise Server for SAP Applications.
SAP Note 2009879 has SAP HANA Guidelines for Red Hat Enterprise Linux
SAP Note 1944799 has SAP HANA Guidelines for SUSE Linux Enterprise Server for SAP Applications.
SAP Note 2178632 has detailed information about all of the monitoring metrics that are reported for
SAP in Azure.
SAP Note 2191498 has the required SAP Host Agent version for Linux in Azure.
SAP Note 2243692 has information about SAP licensing on Linux in Azure.
SAP Note 1984787 has general information about SUSE Linux Enterprise Server 12.
SAP Note 1999351 has additional troubleshooting information for the Azure Enhanced Monitoring
Extension for SAP.
SAP Note 401162 has information on how to avoid “address already in use” when setting up HANA
System Replication.
SAP Community WIKI has all the required SAP Notes for Linux.
Azure Virtual Machines planning and implementation for SAP on Linux guide.
https://us.sios.com
Azure Virtual Machines deployment for SAP on Linux (this article).
SUSE Linux Enterprise Server for SAP Applications 12 SP3 best practices guides
Setting up an SAP HANA SR Performance Optimized Infrastructure (SLES for SAP Applications 12 SP1).
The guide contains all the required information to set up SAP HANA System Replication for on-premises
development. Use this guide as a baseline.
Setting up an SAP HANA SR Cost Optimized Infrastructure (SLES for SAP Applications 12 SP1)
https://us.sios.com