Quantcast
Channel: SCN : Document List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 1183

SAP Hana TDI setup - VMware 5.1 (part 1)

$
0
0

In this documentation I will explain how to setup and configure a Hana TDI scenario test environment. I will show in detail step and configuration point to achieve this configuration.


For my Hana TDI test case I’ll use my own lab on Vmware Vsphere 5.1.0 and run Hana revision 91 with the following deployment scenario:

  • 1 master + 1 worker (load balancing)
  • 1 master + 1 worker + 1 standby (HA)
  • 1 Hana on Primary site + 1 Hana on Secondary site (DR replication)

 

Disclaimer:  this is a personal documentation for test purpose; I will willingly bypass the mandatory hardware check and HW configuration check

 

In order execution

  • Configure Vsphere for the relevant scenario
  • Configure and setup scenario 1 - load balancing
  • Configure and setup scenario 2 - High Availability
  • Configure and setup scenario 3 - DR replication

 

Guide used:

SAP Hana Administration Guide SP9

SAP HANA virtualization and TDI_V2

SUSE Linux Enterprise High Availability ExtensionSLEHA

 

Note used:

1944799 - SAP HANA Guidelines for SLES Operating System Installation

2070786 - SAP systems on VMware vSphere: minimum SAP and OS requirements

1788665 - SAP HANA Support for Virtualized Environments

1943937 - Hardware Configuration Check Tool - Central Note

1969700 - SQL statement collection for SAP HANA

 

Link used:

Novell SAPHanaSR 10162 - SAPHanaSR provides resource agents to control the SAP HANA database in high availability environments

Configure Vsphere for the relevant scenario

1.jpg

 

From the above diagram my esxi server is configure with 4 internal disk, each of them for a specific purpose, I have installed and configured a virtual NAS appliance (freenas) in order to set nfs shared and mount point.

 

I will explain how to create new SLES vm from a template for Hana so it will be easier to have a reference (image ready) to deploy a new server

 

SLES installation

  • 4 cores
  • 32 GB of Ram
  • 30 GB of local disk for OS
  • 2 NIC card

 

I obviously did not detail how to create a new vm within vsphere since it's very straight forward, but once the new SLES server is ready3-27-2015 6-36-16 PM.jpg

 

I start some post work in order to have the VMware tools installed and make it Hana SP9 compliant4-1-2015 3-40-06 PM.jpg4-1-2015 3-56-36 PM.jpg

 

Now let’s make the system Hana SP9 relevant; in order to do this some additional package needs to be installed on the system regarding the note “1944799 - SAP HANA Guidelines for SLES Operating System Installation”. Those package can be install by using the os command or by using the tool “Yast” ,“Yast2” or “Zypper”In my case this two components were too low, the required version is 17.24-1-2015 4-47-54 PM.jpg4-1-2015 4-49-37 PM.jpg

 

Once deploy I install the specific package for Hana (check the following link for further information on what this package is all about)4-2-2015 3-18-26 PM.jpg

 

My system is all set now; I perform a snapshot of it and create a template for the future deployment4-2-2015 3-38-13 PM.jpg

 

The VM is now ready to have Hana installed on it, but first I need to set the volume used for the installation.

I will use my FreeNas VM appliance to set my volume with the following rule:

/hana/log FS = 0,5 x Ram (shared)

/hana/data FS = 1 x Ram (shared)

/hana/shared FS = 1 x Ram (shared)

/usr/sap FS = 20 GB (local drive)

 

 

The drives ready I now add it to my server

5-6-2015 3-32-51 PM.jpg

 

Hana is ready now to be installed.

Configure and setup for scenario 1 – Load Balancing

2.jpg

 

Let start the first scenario by installing Hana single node, before to run the installed I run the HanaHwCheck script to see if my server component are supported for a Hana installation.

4-3-2015 9-39-49 AM.jpg

 

Of course it failed!!! but it’s the first thing that needs to be run before doing an install, in order to by passed this check during the install I will set the following variable IDSPISPOPD="1".

 

Once set do a quick check on the script again

4-3-2015 9-47-23 AM.jpg

 

Now the second test performance script will needs to be run to validate TDI approach, to do this first download the “Hardware config check “ tool on the market place and extract it into “/hana/shared” (also available from the complet dvd set)4-3-2015 10-11-35 AM.jpg

 

Form the note “1943937 - Hardware Configuration Check Tool - Central Note” I adapt the .json file setting according my environment (refer to the attach document in the note) and copy them into “/hana/shared/hwcct”Once done I run my performance test4-3-2015 11-07-11 AM.jpg

 

The output tells me what needs to be corrected; I don’t run all of them since it’s for a lab test purpose

 

 

 

The installation of the master node is now done

4-9-2015 8-41-18 PM.jpg

 

I order to now install the second node for load balancing I’ll deploy the new server by using VM Template4-9-2015 8-43-58 PM.jpg

 

I fast forward since it’s pretty straight, I did customize the template in order to receive the new config4-9-2015 9-09-48 PM.jpg

 

My new server ready let's add it to the current landscape, but before to run the script to add the new host I first need to set the master parameter “listeninterface” to “global”

4-9-2015 10-06-24 PM.jpg

 

Now the new server go to “/hana/shared/HB1/global/hdb/install/bin” and run the script ./hdbaddhost4-9-2015 10-09-17 PM.jpg

 

The new host appears

4-9-2015 10-14-14 PM.jpg

 

Paid attention now to the fact that the system in now distributed, let's go to the next scenario.4-9-2015 10-12-52 PM.jpg

Configure and setup for scenario 2 – High Availability (basic scenario)

3.jpg

 

Since I did explain how to install a new vm over a template, I’ll skip this part in the documentation but will focus more on the standby installation and failover test.Quick sum of activities not documented in this section:

  • Deployment of vm from template
  • Adjustment of parameters
  • Filesystem mount for new system

 

Proceed the same way to add a new host like previously, but choose option "2 - Standby".

Now that the standby node has been added let’s make a failover test to see how Hana react, to force the take over from host03 I’ll perform a HDB stop on the node 2 (vmhana02)

4-10-2015 4-36-02 PM.jpg


Stop at 4:36 pm, failover finish at 4:38 and we can see that the node #3 become slave and not standby anymore

4-10-2015 4-38-32 PM.jpg

 

Since there is no automatic failed back, once the node #2 is back it become the Standby node

4-10-2015 4-42-08 PM.jpg


For the next scenario, check the second part of the document below.

SAP Hana TDI setup - VMware 5.1 (part 2)


Viewing all articles
Browse latest Browse all 1183

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>