Page 1
Chapter I Previous
1. Red Hat Enterprise Linux for SAP HANA
Target Audience
o Administrators who have some Linux or UNIX background
o Sales Engineers and Platform Consultants who need to learn about deploying SAP
HANA on Red Hat Enterprise Linux
Course Objective
After successfully completing this course, you will be able to understand and demonstrate
how to prepare and deploy SAP HANA in a Red Hat Enterprise Linux environment, using XFS.
Course Format
The training consists of two parts: a lecture and a hands-on lab. You are strongly encouraged
to finish both parts. The hands-on lab provides a good opportunity to make mistakes,
troubleshoot, and succeed. The hands-on lab will definitely help you achieve a deeper
understanding of the lecture, which should also help you pass the exam.
Copyright ©2015 Red Hat, Inc.
Page 2
Chapter 1. Red Hat Enterprise Linux for SAP HANA Overview
1.1. Introducing Red Hat Enterprise Linux for SAP HANA
1.2. Red Hat Enterprise Linux for SAP HANA Contents
1.3. Certified Configurations
1.4. Installation Guide, SAP Notes, and Red Hat Support Articles
1.5. Collaborative Support
1.6. Red Hat Enterprise Linux for SAP Portfolio for the Entire SAP Landscape
Page 3
Abstract
Overview
Goal Understand the Red Hat Enterprise Linux for SAP HANA SKU, its contents, certified
configurations, support process, and where to find product documentation
Objectives o Identify the components of the Red Hat Enterprise Linux for SAP HANA
SKU
o Understand SAP HANA certified configurations
o Know where to find documentation
o Understand the support process
o Get familiar with the Red Hat Enterprise Linux for SAP product portfolio
1.1. Introducing Red Hat Enterprise Linux for SAP HANA Red Hat Enterprise Linux for SAP HANA provides technology that makes it easy to deploy SAP
HANA and that enhances its ability to scale and handle large volumes of data. Product
highlights include:
o The option to continue standardizing on the leading enterprise Linux platform
o World-class support from hardware partners, SAP, and Red Hat
o A platform that offers reliability, flexibility, and certainty for scale out deployments
o Delivered as an appliance from multiple hardware vendors *
o Available in Single-Node and Scale-Out configurations
o Optimized configurations for DATAMART, BWoH, and SoH
Reference
* An up-to-date list of certified configurations is available
at: http://global.sap.com/community/ebook/2014-09-02-hana-hardware/enEN/index.html
Copyright ©2015 Red Hat, Inc.
Page 4
1.2. Red Hat Enterprise Linux for SAP HANA Contents Red Hat Enterprise Linux for SAP HANA contains the following channels:
o Red Hat Enterprise Linux Server Base Channel 6.5 (as of Dec. 2014)
o Red Hat Enterprise Linux for SAP HANA Child Channel
Red Hat Enterprise Linux Server Base Channel
Because Red Hat does not ship custom-built kernels for any products, Red Hat Enterprise
Linux Server Base Channel is identical to a regular Red Hat Enterprise Linux channel which
contains the same Linux kernel. Any additional packages will be shipped via a child channel
or an Add-On.
Note
The name of the repository for Red Hat Enterprise Linux Server Base Channel 6.5 is: rhel-
x86_64-server-6
Red Hat Enterprise Linux for SAP HANA Child Channel
Red Hat Enterprise Linux for SAP HANA Child Channel contains additional packages essential
to a HANA deployment:
o Scalable File System Add-On (XFS)
o compat-sap-c++.so package
o Tuned profiles “sap-hana” and “sap-hana-vmware”
Note
The name of the repository for Red Hat Enterprise Linux for SAP HANA Child Channel 6.5 is:
rhel-x86_64-server-sap-hana-6
Scalable File System Add-On (XFS)
XFS is a robust and highly-scalable single-host 64-bit journaling file system. It is entirely
extent-based, so it supports very large file and file system sizes. The maximum supported
file system size is 500 TB. The number of files an XFS system can hold is limited only by the
space available in the file system.
Why use a specific file system like XFS?
o SAP tests their software during QA on a small number of file systems
o XFS is clarified for SAP HANA
o It is regarded as one of the best solutions to reach Key Performance Indicators (KPIs)
compat-sap-c++.so Package
In order to run SAP HANA on Red Hat Enterprise Linux 6.5, you must install an additional
runtime environment for GCC 4.7: the RPM package compat-sap-c++ (see SAP note 2001528).
The compat-sap-c++.so package is required for the following reasons:
o It provides the gcc-4.7 libstdc++ rebuilt for Red Hat Enterprise Linux 6
Page 5
o This gcc 4.7 compatibility library is required because SAP HANA was built on a
different platform
o SAP uses a more recent compiler for its more recent feature set
Note
The compat-sap-c++.so package is installed as /opt/rh/SAP/lib64/compat-sap-c++.so
Tuned Profiles
Tuned is a daemon that monitors the use of system components and dynamically tunes
system settings based on that monitoring information. Tuned profiles are pre-defined
profiles for specific use cases. A tuned profile sets tunable kernel parameters (i.e. CPU
states and network latency parameters), or runs scripts to tune the operating environment
for a specific purpose.
Note
Tuned profile “sap-hana” is designed for SAP HANA running on bare metal.
Tuned profile “sap-hana-vmware” is designed for SAP HANA running on a VMware hypervisor.
Important
Red Hat Enterprise Linux for SAP HANA is required for every SAP HANA deployment.
Copyright ©2015 Red Hat, Inc.
Page 6
1.3. Certified Configurations The following configurations have been certified for SAP HANA Appliance running on Red Hat
Enterprise Linux for SAP HANA:
HANA Version
HANA 1.0 SPS 08 and 09 (as of Dec. 2014)
CPU Architecture
Intel Ivy Bridge-EX, a.k.a. Xeon E7 v2
Note
What about Intel Westmere? Will Red Hat Enterprise Linux for SAP HANA be certified for the
Westmere platform?
Both Red Hat and SAP wish to protect the investment the customer has already made. For
this first release, we were looking forward and made sure that we were running on the latest
technology. If a customer would like a particular Westmere configuration with a particular
HW vendor, they must work with that HW vendor and create the request. Both Red Hat and
SAP support these certification efforts.
Configurations
o Single Node
o Scale Out
o SoH: (Business) Suite on SAP HANA
Important
Always check the most current list of certified hardware before a HANA deployment. You can
find an up-to-date list of certified hardware at:
http://global.sap.com/community/ebook/2014-09-02-hana-hardware/enEN/index.html
File Systems
o GPFS by IBM/Lenovo
o XFS and ext3 by other HW vendors
Note
XFS is covered in this course and the accompanying labs.
Copyright ©2015 Red Hat, Inc.
Page 7
1.4. Installation Guide, SAP Notes, and Red Hat Support Articles The following documentation is provided for a smooth SAP HANA deployment:
Single-Host Mode Installation Guide
o ALL Hardware Vendors: SAP Note 2009879 - SAP HANA Guidelines for Red
Hat Enterprise Linux (RHEL) Operating
System - http://service.sap.com/sap/support/notes/2009879
o SAP HANA on RHEL on IBM xServer using
GPFS: http://www.saphana.com/docs/DOC-4739
Multiple-Host Mode Installation Guide
SAP HANA Server Installation and Update
Guide:http://help.sap.com/hana/SAP_HANA_Server_Installation_Guide_en.pdf
SAP Notes
o SAP Note 2013638 - SAP HANA DB: Recommended OS settings for RHEL
6.5 -http://service.sap.com/sap/support/notes/2013638
o SAP Note 2001528 - Linux: SAP HANA Database SPS 08 revision 80 (or
higher) on RHEL 6 or SLES 11 -
http://service.sap.com/sap/support/notes/2001528
Red Hat Support Articles
o Red Hat Enterprise Linux for SAP HANA: system update and
supportability:https://access.redhat.com/solutions/1243453
o Why can I not install or start SAP HANA after a system
upgrade?:https://access.redhat.com/solutions/1236813
o Why SAP HANA crashes after 10days of
uptime?: https://access.redhat.com/solutions/1323663
o Why SAP HANA SP08 fails to install despite my server is a certified
appliance and I have a valid RHEL for SAP HANA
subscription?: https://access.redhat.com/solutions/1129463
Important
It is important to read the documentation before starting an SAP HANA deployment. The
documentation contains information pertaining to supportability.
Copyright ©2015 Red Hat, Inc.
Page 8
1.5. Collaborative Support SAP and Red Hat have joined in a highly collaborative support relationship to provide a
seamless support experience to customers. Adoption of SAP HANA has never been easier with
a single-ticket support system.
Red Hat offers an SAP TAM (Technical Account Manager) service. Customers who have this
service find it highly valuable because they receive meaningful technical advice from the
TAM, as well as faster resolution of both SAP and Red Hat issues.
Integrated ticketing system - Customer has single support interface
Note
Customers can reach out to SAP or to the OEM to initiate support. Because SAP, the OEM,
and Red Hat all participate in the SAP Global Support Process and the SAP Linux Lab, we will
all work together to resolve customer issues without ping-ponging them between support
contacts.
Copyright ©2015 Red Hat, Inc.
Page 9
1.6. Red Hat Enterprise Linux for SAP Portfolio for the Entire SAP Landscape With Red Hat Enterprise Linux for SAP HANA, Red Hat offers a complete Red Hat Enterprise
Linux for SAP portfolio for the entire SAP Landscape, including SAP Business Applications and
HANA.
Red Hat Enterprise Linux for SAP Business Applications
o SAP certified pacemaker-based HA resource agents
o sapconf OS provisioning tool
o Legacy SAP locales to migrate non-unicode SAP from Unix/Windows
o vhostmd for SAP monitoring on KVM
o Fully-certified virtualization hypervisor (KVM) and unlimited guests
Reference
You can find details about Red Hat Enterprise Linux for SAP Business Applications at:
https://access.redhat.com/knowledge/node/34169
Red Hat Enterprise Linux for SAP HANA
o Scalable File System Add-On (XFS)
o compat-sap-c++.so package
o tuned profiles “sap-hana” and “sap-hana-vmware”
Reference
You can find details about Red Hat Enterprise Linux for SAP HANA at:
https://access.redhat.com/articles/1187363
Copyright ©2015 Red Hat, Inc.
Page 10
Chapter 2. SAP HANA Installation Process and Methods
2.1. SAP HANA Installation Process and Methods
2.2. Minimum Requirements
Abstract
Overview
Goal Understand the deployment process, installation methods, and minimum requirements.
Objectives o Understand the SAP HANA installation process
o Understand the SAP HANA installation methods
o Understand minimum requirements
2.1. SAP HANA Installation Process and Methods
SAP HANA Installation Process
Each of the following steps will be discussed in detail in the following chapters:
1. Install Red Hat Enterprise Linux for SAP HANA.
2. Prepare the operating system.
3. Prepare the file systems.
4. Prepare SAP HANA installation media.
5. Install SAP HANA.
SAP HANA Installation Methods
You can use either of the following methods to install SAP HANA:
o Manually install Red Hat Enterprise Linux for SAP HANA and HANA
o Install using a kickstart file
Note
Manual installation is covered in this course and the associated labs.
Please check the installation guide for details on installing using a kickstart profile.
Copyright ©2015 Red Hat, Inc.
Page 11
2.2. Minimum Requirements The following minimum requirements must be met:
Memory
The system must have a minimum of 24GB of RAM, otherwise the installation of SAP HANA
will fail.
Storage
For details on storage requirements, see “SAP HANA - Storage Requirements”
at: http://scn.sap.com/docs/DOC-60313
Example
Based on the formulas provided by the “SAP HANA - Storage Requirements” document, a
system with 24GB of RAM would have the following file system structure and minimum
storage requirements:
Table 2.1. Minimum storage for a system with 24GB RAM
Mount Point Size Notes
/ 10 GB root - Red Hat Enterprise Linux base installation
/hana/shared/SID 24 GB 1 x RAM
/hana/data 24 GB 1 x RAM
/hana/log 12 GB 0.5 x RAM
/install 128 GB Fixed size for installation temp files
/usr/sap 50 GB Fixed minimum size
Copyright ©2015 Red Hat, Inc.
Page 12
Chapter 3. Install Red Hat Enterprise Linux for SAP HANA
3.1. Install Red Hat Enterprise Linux for SAP HANA - Manual Method
3.2. Red Hat Enterprise Linux for SAP HANA Subscription
3.3. Prepare the Red Hat Enterprise Linux Operating System
3.4. Prepare the File Systems - XFS
Page 13
Abstract
Overview
Goal Understand the installation and provisioning of Red Hat Enterprise Linux for SAP HANA, and the preparation of
file systems.
Objectives o Install Red Hat Enterprise Linux manually
o Manage Red Hat Enterprise Linux for SAP HANA subscriptions
o Prepare the operating system
o Prepare the file systems - XFS
3.1. Install Red Hat Enterprise Linux for SAP HANA - Manual Method Below is the process to manually install Red Hat Enterprise Linux for SAP HANA:
1. Install interactively from DVD (use the minimal installation).
2. Set the hostname for the server.
3. Check for network connectivity.
4. Register the host to the Red Hat Customer Portal or your local Red Hat Satellite
Server.
5. Subscribe to the “Red Hat Enterprise Linux for SAP HANA” channel.
Note
Red Hat Enterprise Linux base installation is not covered in this course. In the lab, each
student receives a system with a pre-installed Red Hat Enterprise Linux Base Server.
To obtain training on Red Hat Enterprise Linux base installation, register for the Red Hat
Enterprise Linux Implementation course offered by Red Hat OPEN.
Copyright ©2015 Red Hat, Inc.
Page 14
3.2. Red Hat Enterprise Linux for SAP HANA Subscription The process of registering your system to a Red Hat Enterprise Linux for SAP HANA
subscription involves the following steps:
1. Make sure Red Hat Enterprise Linux for SAP was granted to your Red Hat Network
Classic1 account
2. Subscribe to Red Hat Enterprise Linux for SAP HANA using Red Hat Subscription
Management
Make Sure Red Hat Enterprise Linux for SAP was Granted to Your Red Hat Network
Classic1 Account
When a Red Hat Enterprise Linux for SAP HANA subscription is purchased, the entitlement
appears in the Red Hat Network Classic1 account used for the purchase. If this is not the
case, contact Red Hat Support.
Subscribe to Red Hat Enterprise Linux for SAP HANA Using Red Hat Subscription
Management
Register to Red Hat Network Classic1 using Red Hat Subscription Management
Red Hat Subscription Management is a local service which tracks installed products and
subscriptions on a local system to help manage subscription assignments. It communicates
with the backend subscription service (the Customer Portal or an on-premise server, such as
Subscription Asset Manager) and it works with content management tools such as yum.
[root@server ~]# subscription-manager register --username=RHN_USERNAME \
--password=RHN_PASSWORD
List Available Pools
List all the available pools that the system is eligible to subscribe to:
[root@server ~]# subscription-manager list --available
Subscribe to Red Hat Enterprise Linux for SAP HANA
Use the output of the previous step to identify the pool that contains “Red Hat Enterprise
Linux for SAP Hana”, and then use its Pool ID to subscribe:
[root@server ~]# subscription-manager subscribe --pool POOL_ID
Note
If you do not have a Red Hat Network Classic1 account with sufficient subscriptions, the
system provided by the lab has been subscribed to Red Hat Enterprise Linux for SAP HANA.
Verify the Subscription
The Red Hat Enterprise Linux for SAP HANA channel and its repo should be visible to this
system:
Page 15
[root@server ~]# yum repolist
repo id repo name status
rhel-x86_64-server-sap-hana-6 RHEL 6.5 SAP HANA 2
Copyright ©2015 Red Hat, Inc.
Page 16
3.3. Prepare the Red Hat Enterprise Linux Operating System The Red Hat Enterprise Linux operating system must be provisioned with all the necessary
software packages, kernel settings, and configurations that make it ready for SAP HANA
installation. These items fall into the following categories:
o Kernel Updates and Supportability
o Settings recommended in SAP Note 2013638
o Required Configurations
o Optional Configurations
Kernel Updates and Supportability
As of Dec. 2014, SAP HANA IS CURRENTLY CERTIFIED FOR RED HAT ENTERPRISE LINUX 6.5
ONLY. The system must not be updated to Red Hat Enterprise Linux 6.6. It is important to
update only the OS kernel and firmware packages to the latest release that appeared in Red
Hat Enterprise Linux 6.5.
Important
You can find the latest information on kernel updates and supportability on the Red Hat
Customer Portal in this article: https://access.redhat.com/solutions/1243453
SAP Note 2013638
For important OS settings see SAP Note 2013638 - SAP HANA DB: Recommended OS
Settings for RHEL 6.5http://service.sap.com/sap/support/notes/2013638. This note
contains important OS setting recommendations:
o Disable Transparent HugePages
o Configure C-States for lower latency in Linux
o Upgrade OpenSSL
o Install GCC 4.7 runtime environment
o Disable SELinux
o Check the version of nss-softokn-freebl
Disable Transparent HugePages
SAP HANA is not currently intended to be used with Transparent HugePages (THP); when THP
are enabled, SAP HANA can crash occasionally. Therfore, THP should be deactivated until
verification has been completed.
Configure C-States for lower latency in Linux
The Linux kernel shipped with Red Hat Enterprise Linux 6.5 includes a new cpuidle driver for
recent Intel CPUs: intel_idle. This driver leads to a different behavior in C-states switching.
The normal operating state is C0, when the processor is put to a higher C state, it will save
power. However, for low latency applications, the additional time needed to start the
execution of the code again causes performance degradations.
Page 17
Upgrade OpenSSL
The Red Hat Enterprise Linux 6.5 distribution is vulnerable to an OpenSSL bug called
"Heartbleed". OpenSSL versions 1.0.1 before 1.0.1g allow remote attackers to obtain
sensitive information i.e. private keys.
Note
To fix the bug, upgrade OpenSSL by following the instructions provided by Red
Hat:https://access.redhat.com/site/solutions/781793 (see also SAP note 2005955 -
http://service.sap.com/sap/support/notes/2005955).
Install GCC 4.7 Runtime Environment
To run SAP HANA on Red Hat Enterprise Linux 6.5, you need an additional runtime
environment for GCC 4.7; the RPM package compat-sap-c++ must be installed (see also SAP
note 2001528).
Disable SELinux
Red Hat Enterprise Linux 6.5 is delivered with SELinux enabled by default. However, there is
no SELinux policy available for SAP HANA, so leaving SELinux enabled can lead to problems
when running SAP HANA on Red Hat Enterprise Linux. Therefore, you should disable SELinux.
Check the Version of nss-softokn-freebl
The latest version of the nss-softokn-freebl package that is currently supported with SAP
HANA on Red Hat Enterprise Linux 6.5 is: nss-softokn-freebl-3.14.3-12.
If you already updated unintentionally, you need to downgrade the package by following the
instructions in the knowledgebase article below.
Reference
Details on the version of nss-softokn-freebl can be found in this Red Hat knowledgebase
article:https://access.redhat.com/solutions/1236813
Required Configurations
Besides the settings outlined in SAP Note 2013638, the following settings are required:
o Configure NTP
o Disable firewall
o Install dependencies
o Install SAP JVM to be used by HANA Studio
o Install tuned profile
o Tunable kernel parameters
o Symbolic links
o Disable crash and core file handling of the OS
o Install unrar
Page 18
Configure NTP
If you can access an NTP time server from the machine, we strongly recommend that you
enable Network Time Protocol (NTP) to keep the time and date synchronized on all SAP
HANA servers.
Disable Firewall
The firewall is disabled by default. See Appendix I of the installation guide for detailed
instructions on how to configure iptables for usage with SAP HANA.
Note
Firewall configuration is an advanced Red Hat Enterprise Linux administrative topic. Due to
time constraints, firewall configuration is not covered in this course no its labs.
Install Dependencies
Install dependencies in accordance with the SAP HANA Server Installation and
Update Guide.
o Software group: base
o Software packages: gtk2 libicu xulrunner ntp sudo tcsh libssh2 expect cairo graphviz
iptraf krb5-workstation krb5-libs.i686 nfs-utils lm_sensors rsyslog openssl098e openssl
xorg-x11-xauth PackageKit-gtk-module libcanberra-gtk2 libtool-ltdl
o Optional package: numactl, if the benchmark HWCCT is to be used.
Install SAP JVM to be Used by HANA Studio
SAP JVM is used by HANA Studio and you can download it from SAP Service Marketplace.
Note
As an alternative, IcedTea will be installed in the lab.
Install Tuned Profile
Tuned is a daemon that monitors the use of system components and dynamically tunes
system settings based on that monitoring information. Red Hat Enterprise Linux for SAP
HANA provides two tuned profiles:
o sap-hana: for bare-metal installation
o sap-hana-vmware: for HANA installation on VMware hypervisor
Tunable Kernel Parameters
The following parameters must be set in /etc/sysctl.conf. The SAP HANA installer adds some
of these parameters, so add these settings after SAP HANA is installed. The following is an
example:
net.ipv4.tcp_slow_start_after_idle=0
Page 19
net.ipv4.conf.all.rp_filter=0
net.ipv4.ip_local_port_range=40000 61000
net.ipv4.neigh.default.gc_thresh1=256
net.ipv4.neigh.default.gc_thresh2=1024
net.ipv4.neigh.default.gc_thresh3=4096
net.ipv6.neigh.default.gc_thresh1=256
net.ipv6.neigh.default.gc_thresh2=1024
net.ipv6.neigh.default.gc_thresh3=4096
kernel.shmmni=65536
kernel.msgmni=32768
kernel.sem=1250 256000 100 8192
kernel.sysrq=1
vm.swappiness=60
vm.max_map_count=2000000
vm.memory_failure_early_kill=1
fs.file-max=20000000
fs.aio-max-nr=458752
Symbolic Links
For compatibility reasons, the following four symbolic links are required:
# ln -s /usr/lib64/libssl.so.0.9.8e /usr/lib64/libssl.so.0.9.8
# ln -s /usr/lib64/libssl.so.1.0.1e /usr/lib64/libssl.so.1.0.1
# ln -s /usr/lib64/libcrypto.so.0.9.8e
/usr/lib64/libcrypto.so.0.9.8
# ln -s /usr/lib64/libcrypto.so.1.0.1e
/usr/lib64/libcrypto.so.1.0.1
Page 20
Disable Crash and Core File Handling of the OS
Because SAP HANA has its own dump mechanisms which can be analyzed by SAP support,
kdump should be disabled. Additionally, kdump eats up memory that could otherwise be
used for the database.
The occurrence of SAP HANA crashes is entirely unrelated to operating system mechanisms.
This means that you can omit the application crash and core file handling of the operating
system. The abrt service, which handles application crashes, must be disabled completely.
Install unrar
The SAP HANA archive is in multi-spanning format, so you need the unrar utility to unpack it.
Reference
See SAP Note 886535 - Downloading Multispanning
Archiveshttp://service.sap.com/sap/support/notes/886535 for details.
Optional Configurations
The following configurations are optional depending on your system:
o Lock Kernel Version
o Hardware With IvyTown Sockets
o NIPING
Lock Kernel Version
As of Dec. 2014, SAP HANA is currently certified for Red Hat Enterprise Linux 6.5 only.
According to SAP Note 2013638 - SAP HANA DB: Recommended OS settings for
RHEL 6.5 the system must not be updated to Red Hat Enterprise Linux 6.6.
Lock the kernel, kernel-firmware, and kernel-headers to the latest available kernel of the
2.6.32-431 series. Also lock the nss-softokn-freebl and nss-softokn packages to the latest
versions compatible with Red Hat Enterprise Linux 6.5.
Important
Always check the latest installation guide for supported Red Hat Enterprise Linux kernel
version information!
Hardware With IvyTown Sockets
For hardware with eight IvyTown sockets and larger, the maximum number of processes for
the sapsys group is not sufficient. This causes the installation of SAP HANA to fail.
The solution is to create the /etc/security/limits.d/99-sapsys.conf file with the
following content:
[root@server ~]# cat /etc/security/limits.d/99-sapsys.conf
@sapsys soft nproc unlimited
Page 21
NIPING
The niping program is used for SAP support. To use this program, download it from the SAP
Service Marketplace.
Note
You also need to download SAPCAR from SAP Service Marketplace to install NIPING.
Copyright ©2015 Red Hat, Inc.
Page 22
3.4. Prepare the File Systems - XFS The following steps outline the process of installing and creating XFS file systems for SAP
HANA:
1. Install XFS
2. Create Disk Partitions
3. Create LVM Logical Volumes
4. Create XFS File Systems
5. Create Mount Points
6. Mount File Systems
Note
XFS is good for large files or for extremely small files. However, it lacks tuning support once
the file system is created. As a good practice, design and tune the file system before
creating it. To assist with the design and tuning, Red Hat provides an XFS File System Layout
Calculator at:https://access.redhat.com/labs/fslayoutcalculator
Note
See the Minimum Requirements chapter for important information on file system layout and
size.
Copyright ©2015 Red Hat, Inc.
Page 23
Chapter 4. Install SAP HANA
4.1. SAP HANA Installation Modes
4.2. SAP HANA Installation Methods
4.3. SAP HANA Installation Media
4.4. SAP HANA Installation - Interactive
4.5. Lecture Wrap Up
Page 24
Abstract
Overview
Goal Understand the installation of SAP HANA.
Objectives o Understand SAP HANA installation modes
o Understand SAP HANA installation methods
o Prepare SAP HANA Installation Media
o Install SAP HANA
4.1. SAP HANA Installation Modes SAP HANA can be installed on a single host or distributed onto multiple hosts.
Single-Host Mode
In single-host mode, one SAP HANA instance is installed on one host. This is the simplest type
of HANA system installation. On the single host, HANA scales up as needed.
Multi-Host Mode
In a multiple-host (distributed) system, multiple SAP HANA instances distribute over multiple
hosts, with one instance per host.
Note
Single-Host installation is covered in this course and its labs. For details about Multi-Host
installation, see SAP HANA Server Installation and Update Guide.
Copyright ©2015 Red Hat, Inc.
Page 25
4.2. SAP HANA Installation Methods Several tools are provided to install SAP HANA:
o Command line: hdblcm
o GUI hdblcmgui
Command Line: hdblcm
hdblcm can take installation parameters either interactively or from a prepared answer file.
Note
Using the hdblcm command to install SAP HANA interactively is covered in this course and its
labs.
Copyright ©2015 Red Hat, Inc.
4.3. SAP HANA Installation Media This topic covers the download and preparation of the SAP HANA installation media.
o Download SAP HANA Installation Media
o Extract SAP HANA Installation Media
Download SAP HANA Installation Media
You can download SAP HANA from SAP Service Marketplace:
http://support.sap.com/swdc -> Installations and Upgrades -> A-Z Index -> H -> SAP In-
Memory (SAP HANA ) -> HANA Platform Edition -> SAP HANA PLATFORM EDITION -> SAP HANA
PLATFORM EDIT. 1.0 -> Installation -> Scroll down to the bottom of the Downloads panel -
> SAP HANA Platform Ed. 1.0 Latest
Note
Below is an example of the download. Please note that the media's object number may
change when SAP releases an update. Check Title description instead of Object number.
Note
You need an SAP S User account to access the SAP Service Marketplace. If you do not have
one of these accounts, contact your company's SAP administrator. It may take one or two
days to process the account request.
Page 26
Extract SAP HANA Installation Media
Use the unrar utility to unpack the HANA installation media.
Reference
For details, see SAP Note 886535 - Downloading Multispanning Archives -
http://service.sap.com/sap/support/notes/886535.
Copyright ©2015 Red Hat, Inc.
4.4. SAP HANA Installation - Interactive
Interactive Installation With hdblcm Command
hdblcm can take installation parameters either interactively or from a prepared answer file.
Make sure that you have the following data available:
o System ID of the database
o Instance number of the installation (beware of cluster installations)
o Usage type of the database
o Instance admin password
o Linux account data of the instance admin
o Home directory
o UID
o Default shell
o GID
o System user password
o Whether the SAP HANA instance should restart after machine reboot
Installation Command
[root@server ~]# ./hdblcm --action=install
Copyright ©2015 Red Hat, Inc.
4.5. Lecture Wrap Up This concludes the lecture part of the Red Hat Enterprise Linux for SAP HANA OPEN training.
Next, proceed with the labs to get some hands-on practice.
Copyright ©2015 Red Hat, Inc.
Page 27
Chapter 5. Red Hat Enterprise Linux for SAP HANA Lab
5.1. Lab - Prerequisites
5.2. Lab - Set Up Your Lab Environment
5.3. Lab - Download SAP HANA Installation Media
5.4. Lab - Verify Your Red Hat Enterprise Linux for SAP HANA Subscription
5.5. Lab - Prepare the Red Hat Enterprise Linux OS
5.6. Lab - Provision Required Red Hat Enterprise Linux OS Features
5.7. Lab - Provision Optional Red Hat Enterprise Linux OS Features
5.8. Lab - Prepare XFS File Systems
5.9. Lab - Reboot Your System
5.10. Lab - Extract SAP HANA Installation Media
5.11. Lab - Install SAP HANA
5.12. Lab - Test SAP HANA Database
5.13. Lab - The End
Page 28
Abstract
Overview
Goal Install and provision Red Hat Enterprise Linux for SAP HANA, prepare the file
systems, install SAP HANA
Objectives o Review lab prerequisites
o Setup and access the lab environment
o Download the software
o Prepare the Red Hat Enterprise Linux operating system
o Prepare the file systems (XFS)
o Unpack SAP HANA installation media
o Install SAP HANA
o Test SAP HANA Start/Stop
5.1. Lab - Prerequisites You need the following accounts to access important information and necessary software:
o SAP S user account
o Red Hat Customer Portal account
SAP S User Account
This account allows you to download software and generate license keys from SAP Service
Marketplace athttp://service.sap.com. You need this account to download SAP HANA.
Note
If you do not have an SAP S user account, contact your company's SAP administrator and
request an account withSoftware download authorization. It may take one day or two to
process your account request.
Red Hat Customer Portal Account
The Red Hat Customer Portal account is also known as a Red Hat Network Classic1 or RHN
account. This account allows you to download Red Hat software and to access support
articles from Red Hat Customer Portal:http://access.redhat.com
Note
You can create a Red Hat Customer Portal account at http://www.redhat.com.
Copyright ©2015 Red Hat, Inc.
Page 29
5.2. Lab - Set Up Your Lab Environment ** This entire section is extremely important. Please read and understand
it before continuing with the course. Many of your questions will be
answered here. **
Provision Your Lab Environment
1. Log in to the OPENTLC CloudForms system at http://labs.opentlc.com.
2. Go to Services -> Catalogs.
3. On the left, expand All Services/OPENTLC Labs.
4. On the left, click RHEL for SAP HANA Lab.
5. On the right, click Order.
6. On the bottom right, click Submit.
Important
You will receive an email with the information on how to access your environment. It takes
about 20 minutes for your lab to fully start up and be accessible.
Get Familiar With Your Lab Environment
In this course, you do most of the hands-on practice exercises and lab work with one
dedicated computer system. This system is pre-installed with a Red Hat Enterprise Linux
base server. Red Hat Enterprise Linux for SAP HANA subscription is provided on the system,
as well as disk partitions with enough space for an SAP HANA installation. The entire
environment is hosted in the cloud, but the system configuration resembles a bare metal
environment.
Access Your System via SSH
You can access your system using an SSH client pointed to the hostname that you received in
your provisioning email. You must log in using your OPENTLC SSO account (the same login
that you used to provision the lab) plus your OPENTLC SSO SSH Key.
If you have not already registered your SSH Public Key with OPENTLC SSO, log in
tohttps://www.opentlc.com/pwm/private/UpdateProfile and paste your public key there.
Reference
If you need more information on generating SSH keys see:
Windows: http://kb.site5.com/shell-access-ssh/how-to-generate-ssh-keys-and-connect-to-
your-account-with-putty
Linux/OSX: https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2
Log in to Your System
You can log in to the system using ssh:
[student@desktop ~]$ ssh opentlc_username@system_IP
Page 30
Become Root User
The root password on the system is r3dh@t1!.
Important
You must log in to the system using your OPENTLC SSO account, and then become
the root user using sudo.
[student@server ~]$ sudo su -
Note
Unless noted otherwise, all the command line executions in the lab will be conducted
as root user.
Copyright ©2015 Red Hat, Inc.
Page 31
5.3. Lab - Download SAP HANA Installation Media Due to End User License Agreement (EULA) restrictions, Red Hat OPEN cannot provide SAP
HANA Installation Media in this training course. You must download the installation media
from SAP Service Marketplace using your own SAP S user account.
Important
Start the download as soon as possible; it may take a while to complete the download.
Download SAP HANA Installation Media
SAP HANA can be downloaded from SAP Service Marketplace:
1. Point your browser to: http://support.sap.com/swdc.
2. Select Installations and Upgrades.
3. Select A-Z Index -> H.
4. Select SAP In-Memory (SAP HANA ) -> HANA Platform Edition -> SAP HANA
PLATFORM EDITION -> SAP HANA PLATFORM EDIT. 1.0.
5. Select Installation, and then scroll down to the bottom of the Downloads panel and
select SAP HANA Platform Ed. 1.0 Latest.
Note
Below is an example of the download. Please note that the media's object number may
change when SAP releases updates. Check the Title description instead of the Object
number.
Note
You need an SAP S user account to access the SAP Service Marketplace. If you do not have an
account, contact your company's SAP administrator and request an account with Software
download authorization. It may take one day or two to process your account request.
Upload SAP HANA Installation Media to Your System
Use the following command to upload the SAP HANA software from your client to the lab
system:
[student@desktop ~]$ scp 51049219_part*.* opentlc_username@system_IP:~
Page 32
Important
Start the upload as soon as you have access to the system. The upload may take several
hours depending on the speed of your network connection.
While the software upload is in progress, open another terminal, log in to the server, and
prepare the system in parallel.
Copyright ©2015 Red Hat, Inc.
5.4. Lab - Verify Your Red Hat Enterprise Linux for SAP HANA Subscription The lab environment should have a pre-installed version of Red Hat Enterprise Linux 6.5 base
server, and it should already be subscribed to the Red Hat Enterprise Linux for SAP HANA
channel.
Verify the Red Hat Enterprise Linux for SAP HANA Subscription
Use the following command to verify your subscription:
[root@server ~]# yum repolist
repo id repo name status
rhel-x86_64-server-sap-hana-6 RHEL 6.5 SAP HANA 2
Copyright ©2015 Red Hat, Inc.
5.5. Lab - Prepare the Red Hat Enterprise Linux OS Complete the steps in this section to prepare the Red Hat Enterprise Linux OS based on SAP
Note 2013638http://service.sap.com/sap/support/notes/2013638.
Disable Transparent HugePages
In the /boot/grub/grub.conf file, add the kernel command line
argument: transparent_hugepage=never
[root@server ~]# vi /boot/grub/grub.conf
kernel /vmlinuz-2.6.32-431.el6.x86_64 ro
root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8
rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16
crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc
KEYTABLE=us rd_NO_DM transparent_hugepage=never
You can switch Transparent HugePages on and off with these commands:
Page 33
[root@server ~]# echo always >
/sys/kernel/mm/transparent_hugepage/enabled
[root@server ~]# echo never > /sys/kernel/mm/transparent_hugepage/enabled
Configure C-States for Lower Latency in Linux
To see if the recommended driver is enabled, execute the following command. The correct
value should be acpi_idle
[root@server ~]# cat /sys/devices/system/cpu/cpuidle/current_driver
acpi_idle
Upgrade OpenSSL
To fix a known bug, upgrade OpenSSL by following the instructions provided by Red
Hat:https://access.redhat.com/site/solutions/781793 (see also SAP note 2005955 -
http://service.sap.com/sap/support/notes/2005955):
[root@server ~]# rpm -q openssl
openssl-1.0.1e-15.el6.x86_64
Upgrade openssl:
[root@server ~]# yum –y update openssl
After the update, perform a system reboot.
Warning
Wait for the SAP HANA software upload to finish before you perform the system reboot!
Install GCC 4.7 Runtime Environment
Use the following command to install GCC 4.7:
[root@server ~]# yum install compat-sap-c++
[root@server ~]# ls -l /opt/rh/SAP/lib64/compat-sap-c++.so
Disable SELinux
1. Check the current SELinux status as follows:
2. [root@server ~]# sestatus
3. SELinux status: enabled
4. SELinuxfs mount: /selinux
5. Current mode: permissive
Page 34
6. Mode from config file: enforcing
7. Policy version: 24
8. Policy from config file: targeted
9. Use the following command to disable SELinux:
[root@server ~]# sed -i 's/^SELINUX=.*/SELINUX=disabled/g'
/etc/selinux/config
10. SELinux will be disabled after a system reboot. (Do not, reboot while the SAP HANA
upload is in progress!)
Using caution, set SELinux to permissive before you reboot:
[root@server ~]# setenforce 0
[root@server ~]# getenforce
Permissive
Check the nss-softokn-freebl Version
Use the following command to check the installed version:
[root@server ~]# yum info nss-softokn-freebl
Installed Packages
Name : nss-softokn-freebl
Arch : x86_64
Version : 3.14.3
Release : 9.el6
Note
Version 9.el6 is fine. The version can be up to Release 12.el6 - the latest in Red Hat
Enterprise Linux 6.5.
If you already updated unintentionally, downgrade the package by following the instructions
in the Red Hat kbase article: https://access.redhat.com/solutions/1236813
Copyright ©2015 Red Hat, Inc.
Page 35
5.6. Lab - Provision Required Red Hat Enterprise Linux OS Features
Configure NTP
[root@server ~]# service ntpd stop
[root@server ~]# ntpdate 0.rhel.pool.ntp.org
[root@server ~]# service ntpd start
[root@server ~]# echo 0.rhel.pool.ntp.org >> /etc/ntp/step-tickers
[root@server ~]# chkconfig ntpd on
[root@server ~]# chkconfig |grep ntpd
[root@server ~]#
ntpd 0:off 1:off 2:on 3:on 4:on 5:on
6:off
ntpdate 0:off 1:off 2:off 3:off 4:off 5:off
6:off
Disable Firewall
[root@server ~]# service iptables save
[root@server ~]# service iptables stop
[root@server ~]# chkconfig iptables off
Install Dependencies
[root@server ~]# yum -y groupinstall base
[root@server ~]# yum -y install gtk2 libicu xulrunner ntp sudo tcsh
libssh2 expect cairo graphviz iptraf krb5-workstation krb5-libs.i686 nfs-
utils lm_sensors rsyslog openssl098e openssl xorg-x11-xauth PackageKit-
gtk-module libcanberra-gtk2 libtool-ltdl
Install IcedTea for Use by HANA Studio
[root@server ~]# yum -y install icedtea-web
Page 36
Install and Configure Tuned Profiles
1. Install the tuned-profiles-sap-hana package from the Red Hat Enterprise Linux
for SAP HANA channel:
[root@server ~]# yum -y install tuned-profiles-sap-hana
2. For SAP HANA operating on bare-metal, configure the tuned profile accordingly:
3. [root@server ~]# tuned-adm profile sap-hana
4. [root@server ~]# chkconfig tuned on
5. [root@server ~]# tuned-adm list
6. ... ...
7. Current active profile: sap-hana
Add Tunable Kernel Parameters to /etc/sysctl.conf
[root@server ~]# vi /etc/sysctl.conf
net.ipv4.tcp_slow_start_after_idle=0
net.ipv4.conf.all.rp_filter=0
net.ipv4.ip_local_port_range=40000 61000
net.ipv4.neigh.default.gc_thresh1=256
net.ipv4.neigh.default.gc_thresh2=1024
net.ipv4.neigh.default.gc_thresh3=4096
net.ipv6.neigh.default.gc_thresh1=256
net.ipv6.neigh.default.gc_thresh2=1024
net.ipv6.neigh.default.gc_thresh3=4096
kernel.shmmni=65536
kernel.msgmni=32768
kernel.sem=1250 256000 100 8192
kernel.sysrq=1
Page 37
vm.swappiness=60
vm.max_map_count=2000000
vm.memory_failure_early_kill=1
fs.file-max=20000000
fs.aio-max-nr=458752
[root@server ~]# sysctl -p
Create Symbolic Links
[root@server ~]# ln -s /usr/lib64/libssl.so.0.9.8e
/usr/lib64/libssl.so.0.9.8
[root@server ~]# ln -s /usr/lib64/libssl.so.1.0.1e
/usr/lib64/libssl.so.1.0.1
[root@server ~]# ln -s /usr/lib64/libcrypto.so.0.9.8e
/usr/lib64/libcrypto.so.0.9.8
[root@server ~]# ln -s /usr/lib64/libcrypto.so.1.0.1e
/usr/lib64/libcrypto.so.1.0.1
[root@server ~]# ldconfig
Disable Crash and Core File Handling of the OS
1. Disable kdump:
2. [root@server ~]# service kdump status
3. [root@server ~]# service kdump stop
4. [root@server ~]# chkconfig kdump off
5. Disable the abrt service which handles application crashes:
6. [root@server ~]# chkconfig abrtd off
7. [root@server ~]# chkconfig abrt-ccpp off
8. [root@server ~]# service abrtd stop
9. [root@server ~]# service abrt-ccpp stop
10. Disable core dumps for all users:
Page 38
11. [root@server ~]# vi /etc/security/limits.conf
12. * soft core 0
13. * hard core 0
Install unrar
[root@server ~]# wget -P /root http://www.rarlab.com/rar/unrar-5.0-
RHEL5x64.tar.gz
[root@server ~]# tar zxf /root/unrar-5.0-RHEL5x64.tar.gz -C /bin/
[root@server ~]# chmod 755 /bin/unrar
Copyright ©2015 Red Hat, Inc.
Previous | Next
5.7. Lab - Provision Optional Red Hat Enterprise Linux OS Features Note
This lab is optional.
Lock the Kernel Version
# yum -y install yum-plugin-versionlock yum-plugin-security
# echo kernel-2.6.32-431.el6.* >>
/etc/yum/pluginconf.d/versionlock.list
# echo kernel-firmware-2.6.32-431.el6.* >>
/etc/yum/pluginconf.d/versionlock.list
# echo kernel-headers-2.6.32-431.el6.* >>
/etc/yum/pluginconf.d/versionlock.list
# echo nss-softokn-freebl-3.14.3-12.el6.* >>
/etc/yum/pluginconf.d/versionlock.list
Page 39
# echo nss-softokn-3.14.3-12.el6.* >>
/etc/yum/pluginconf.d/versionlock.list
Create the /etc/security/limits.d/99-sapsys.conf File, if Your Hardware has 8 or More
IvyTown Sockets:
[root@server ~]# vi /etc/security/limits.d/99-sapsys.conf
@sapsys soft nproc unlimited
Configure NIPING
[root@server ~]# ./SAPCAR_315-20010450.EXE -xvf ./NIPING.SAR
[root@server ~]# cp niping /bin
[root@server ~]# chmod 755 /bin/niping
Copyright ©2015 Red Hat, Inc.
Page 40
5.8. Lab - Prepare XFS File Systems In this lab, you will complete the following tasks:
o Review disk layout
o Install XFS
o Create disk partitions
o Create LVM logical volumes
o Create XFS file systems
o Create mount points
o Mount file systems
Table 5.1. File Systems for a System with 24GB RAM
Mount Point Size Notes
/hana/shared 24 GB 1 x RAM
/hana/data 24 GB 1 x RAM
/hana/log 12 GB 0.5 x RAM
/install 128 GB Fixed size for installation temp files
/usr/sap 50 GB Fixed minimum size
Note
Check the Minimum Requirements chapter for important information on file system layout
and size.
Review Your System's Disk Layout
The following disks have been provided on your system:
Table 5.2. Disk Layout of Your System
Disk Size Notes
/dev/vda 20 GB Already mounted at /
/dev/vdb 50 GB For mount point /usr/sap
/dev/vdc 250 GB For HANA installation
Page 41
Install XFS
Use the following command to install XFS:
[root@server ~]# yum -y install xfsprogs
Create Disk Partitions
1. Check for available block devices:
2. [root@server ~]# lsblk -f
3. NAME FSTYPE LABEL UUID MOUNTPOINT
4. vda
5. ├─vda1 /boot
6. └─vda2
7. ├─VolGroup-lv_root (dm-0) /
8. └─VolGroup-lv_swap (dm-1) [SWAP]
9. vdb
10. vdc
11. Create a disk partition that occupies the entire disk on /dev/vdc:
12. [root@server ~]# fdisk -cu /dev/vdc
13. Command (m for help): n
14. Command action
15. e extended
16. p primary partition (1-4)
17. p
18. Partition number (1-4): 1
19. First sector (63-524287999, default 63): [return]
20. Using default value 63
21. Last sector, +sectors or +size{K,M,G} (63-524287999, default
524287999): [return]
Page 42
22. Using default value 524287999
23.
24. Command (m for help): t
25. Selected partition 1
26. Hex code (type L to list codes): 8e
27. Changed system type of partition 1 to 8e (Linux LVM)
28.
29. Command (m for help): w
30. Create a disk partition that occupies the entire disk on /dev/vdb:
31. [root@server ~]# fdisk -cu /dev/vdb
Create LVM Logical Volumes
1. Create physical volumes:
2. [root@server ~]# pvcreate /dev/vdc1
3. [root@server ~]# pvcreate /dev/vdb1
4. Create volume groups:
5. [root@server ~]# vgcreate vg00 /dev/vdc1
6. [root@server ~]# vgcreate vg01 /dev/vdb1
7. Create logical volumes:
8. [root@server ~]# lvcreate -L24GB -n lv_hana_shared vg00
9. [root@server ~]# lvcreate -L24GB -n lv_hana_data vg00
10. [root@server ~]# lvcreate -L12GB -n lv_hana_log vg00
11. [root@server ~]# lvcreate -L128GB -n lv_install vg00
12. [root@server ~]# lvcreate -L50GB -n lv_usr_sap vg01
Create XFS File Systems
Note
XFS is good for large files or for extremely small files. However it lacks the tuning support
once the file system is created. As a good practice, design and tune the file system before
Page 43
creating it. To assist with the design and tuning, Red Hat provides an XFS File System Layout
Calculator at:https://access.redhat.com/labs/fslayoutcalculator
The following example creates the file systems that reside on a RAID 5 Array with three
disks, a block size of 4 KB, and a chunk size of 64 KB:
[root@server ~]# mkfs -t xfs -b size=4096 -d su=64k,sw=2
/dev/vg00/lv_hana_shared
[root@server ~]# mkfs -t xfs -b size=4096 -d su=64k,sw=2
/dev/vg00/lv_hana_data
[root@server ~]# mkfs -t xfs -b size=4096 -d su=64k,sw=2
/dev/vg00/lv_hana_log
[root@server ~]# mkfs -t xfs -b size=4096 -d su=64k,sw=2
/dev/vg00/lv_install
[root@server ~]# mkfs -t xfs -b size=4096 -d su=64k,sw=2
/dev/vg01/lv_usr_sap
Create Mount Points
1. Use the following commands to create mount points:
2. [root@server ~]# mkdir -p /hana/{shared,data,log}
3. [root@server ~]# mkdir -p /usr/sap
4. [root@server ~]# mkdir /install
5. Use the following commands to write mount entries into /etc/fstab:
6. [root@server ~]# echo "/dev/vg00/lv_install /install xfs defaults 1
3" >> /etc/fstab
7. [root@server ~]# echo "/dev/vg01/lv_usr_sap /usr/sap xfs defaults 1
4" >> /etc/fstab
8. [root@server ~]# echo "/dev/vg00/lv_hana_data /hana/data xfs
defaults 1 5" >> /etc/fstab
9. [root@server ~]# echo "/dev/vg00/lv_hana_log /hana/log xfs defaults
1 6" >> /etc/fstab
10. [root@server ~]# echo "/dev/vg00/lv_hana_shared /hana/shared xfs
defaults 1 7" >> /etc/fstab
Page 44
Mount File Systems
Use the following command to mount the file systems:
[root@server ~]# mount -avt xfs
Copyright ©2015 Red Hat, Inc.
5.9. Lab - Reboot Your System Warning
Wait for the SAP HANA software upload to finish before you reboot!
Reboot the system to apply some of the changes:
[root@server ~]# reboot
Copyright ©2015 Red Hat, Inc.
5.10. Lab - Extract SAP HANA Installation Media Use the unrar utility to unpack the SAP HANA installation media:
[root@server ~]# unrar x ~/51049219_part1.exe /install
Copyright ©2015 Red Hat, Inc.
5.11. Lab - Install SAP HANA
Installation Parameters
Make sure that you have the data listed below available. Please also check the installation
guide for special requirements.
Parameter Value
Usage Type of the database All components: server/client/etc.
HANA System ID ANA
Instance Number 00
Database Mode Single-Container
System Usage custom
Restrict Maximum Memory Allocation 24GB
System Administrator Login Shell /bin/bash
Page 45
Parameter Value
System Administrator UID 1000
ID of User Group (sapsys) 79
Restart after Reboot Y
SAP Host Agent User (sapadm) Password rhel4saphana
System Administrator (anaadm) Password rhel4saphana
Database User (SYSTEM) Password Rhel4saphana
Launch the Installer
Use the following commands to launch the installer:
[root@server ~]# cd /install/51049219/DATA_UNITS/HDB_SERVER_LINUX_X86_64/
[root@server ~]# ./hdblcm --action=install
SAP HANA Lifecycle Management - SAP HANA 1.00.090.00.1416514886
***************************************************************
Scanning Software Locations...
Detected components:
SAP HANA Database (1.00.090.00.1416514886) in
/install/51049219/DATA_UNITS/HDB_SERVER_LINUX_X86_64/server
SAP HANA AFL (Misc) (1.00.090.00.1416514886) in
/install/51049219/DATA_UNITS/HDB_AFL_LINUX_X86_64/packages
SAP HANA LCAPPS (1.00.090.000.449616) in
/install/51049219/DATA_UNITS/HANA_LCAPPS_10_LINUX_X86_64/packages
SAP TRD AFL FOR HANA (1.00.090.00.1416514886) in
/install/51049219/DATA_UNITS/HDB_TRD_AFL_LINUX_X86_64/packages
Page 46
SAP HANA Database Client (1.00.090.00.1416514886) in
/install/51049219/DATA_UNITS/HDB_CLIENT_LINUX_X86_64/client
SAP HANA Smart Data Access (1.00.3.005.0) in
/install/51049219/DATA_UNITS/SAP_HANA_SDA_10/packages
SAP HANA Database version '1.00.090.00.1416514886' will be
installed.
Select additional components for installation:
Index | Components | Description
----------------------------------------------------------------
--------------------
1 | server | No additional components
2 | all | All components
3 | client | Install SAP HANA Database Client version
1.00.090.00.1416514886
4 | afl | Install SAP HANA AFL (Misc) version
1.00.090.00.1416514886
5 | lcapps | Install SAP HANA LCAPPS version
1.00.090.000.449616
6 | smartda | Install SAP HANA Smart Data Access version
1.00.3.005.0
7 | trd | Install SAP TRD AFL FOR HANA version
1.00.090.00.1416514886
Enter comma-separated list of the selected indices [3]: 2
Page 47
Enter Local Host Name [hana-d032.rhpds.opentlc.com]:
Enter Installation Path [/hana/shared]:
Enter SAP HANA System ID: ANA
Enter Instance Number [00]:
Index | Database Mode | Description
----------------------------------------------------------------
-------------------------------
1 | single_container | The system contains one database
2 | multiple_containers | The system contains one system
database and 1..n tenant databases
Select Database Mode / Enter Index [1]:
Index | System Usage | Description
----------------------------------------------------------------
---------------
1 | production | System is used in a production
environment
2 | test | System is used for testing, not
production
3 | development | System is used for development, not
production
4 | custom | System usage is neither production, test
nor development
Select System Usage / Enter Index [4]:
Page 48
Enter Location of Data Volumes [/hana/data/ANA]:
Enter Location of Log Volumes [/hana/log/ANA]:
Restrict maximum memory allocation? [n]: y
Enter Maximum Memory Allocation in MB [24029]:
Enter Certificate Host Name For Host 'hana-d032.rhpds.opentlc.com'
[hana-d032.rhpds.opentlc.com]:
Enter SAP Host Agent User (sapadm) Password:
Confirm SAP Host Agent User (sapadm) Password:
Enter System Administrator (anaadm) Password:
Confirm System Administrator (anaadm) Password:
Enter System Administrator Home Directory [/usr/sap/ANA/home]:
Enter System Administrator Login Shell [/bin/sh]: /bin/bash
Enter System Administrator User ID [1000]:
Enter ID of User Group (sapsys) [79]:
Enter Database User (SYSTEM) Password:
Confirm Database User (SYSTEM) Password:
Restart instance after machine reboot? [n]: y
Summary before execution:
=========================
SAP HANA Components Installation
Installation Parameters
Remote Execution: ssh
Page 49
Local Host Name: hana-d032.rhpds.opentlc.com
Installation Path: /hana/shared
SAP HANA System ID: ANA
Instance Number: 00
Database Mode: single_container
System Usage: custom
Location of Data Volumes: /hana/data/ANA
Location of Log Volumes: /hana/log/ANA
Restrict maximum memory allocation?: Yes
Maximum Memory Allocation in MB: 24029
Certificate Host Names: hana-d032.rhpds.opentlc.com -> hana-
d032.rhpds.opentlc.com
System Administrator Home Directory: /usr/sap/ANA/home
System Administrator Login Shell: /bin/bash
System Administrator User ID: 1000
ID of User Group (sapsys): 79
Restart instance after machine reboot?: Yes
SAP HANA Database Client Installation Path:
/hana/shared/ANA/hdbclient
Software Components
SAP HANA Database
Install version 1.00.090.00.1416514886
Location:
/install/51049219/DATA_UNITS/HDB_SERVER_LINUX_X86_64/server
SAP HANA AFL (Misc)
Page 50
Install version 1.00.090.00.1416514886
Location:
/install/51049219/DATA_UNITS/HDB_AFL_LINUX_X86_64/packages
SAP HANA LCAPPS
Install version 1.00.090.000.449616
Location:
/install/51049219/DATA_UNITS/HANA_LCAPPS_10_LINUX_X86_64/packages
SAP TRD AFL FOR HANA
Install version 1.00.090.00.1416514886
Location:
/install/51049219/DATA_UNITS/HDB_TRD_AFL_LINUX_X86_64/packages
SAP HANA Database Client
Install version 1.00.090.00.1416514886
Location:
/install/51049219/DATA_UNITS/HDB_CLIENT_LINUX_X86_64/client
SAP HANA Smart Data Access
Install version 1.00.3.005.0
Location:
/install/51049219/DATA_UNITS/SAP_HANA_SDA_10/packages
Do you want to continue? (y/n): y
Copyright ©2015 Red Hat, Inc.
Page 51
5.12. Lab - Test SAP HANA Database 1. Check the status of the SAP HANA database:
2. [root@server ~]# su - anaadm
3. [anaadm@server ~]$ HDB info
4. [You should see the following processes running for SAP HANA server]
5. USER PID PPID %CPU VSZ RSS COMMAND
6. anaadm 8245 8226 1.0 3847532 1115060 \_ hdbnameserver
7. anaadm 8306 8226 8.0 5620060 2906728 \_ hdbpreprocessor
8. anaadm 8309 8226 0.7 3177548 323864 \_ hdbcompileserver
9. anaadm 8330 8226 2.6 8417012 5117296 \_ hdbindexserver
10. anaadm 8333 8226 3.0 4450476 1603676 \_ hdbstatisticsserver
11. anaadm 8336 8226 1.2 4430580 1092020 \_ hdbxsengine
12. Stop the SAP HANA database:
13. [root@server ~]# su - anaadm
14. [anaadm@server ~]$ HDB stop
15. Start the SAP HANA database:
16. [root@server ~]# su - anaadm
17. [anaadm@server ~]$ HDB start
Copyright ©2015 Red Hat, Inc.