SlideShare a Scribd company logo
1 of 21
SAP HANA Distributed System
Scale out and HA
This is a compilation of notes from installation/configuration of SAP HANA
multiple-host system, including automatic failover testing, and monitoring.
By OZSoft Consulting for ITConductor.com
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 1
Introduction
Overview of system architecture
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 2
• HANA scaleout requires data persistence layer to be on either shared storage
(such as NFS, NAS), SAN with clustered filesystem, or non-shared storage using
HAN storage connector API
In our scenario OZHANANFS – prerequisite shared file system (NFS) to contain
• Installation path (sapmnt) /hana/shared
• Data volume /hana/data/<SID>
• Log volume /hana/log/<SID>
References
Reference:
• SAP HANA Administration Guide
• SAP HANA Server Installation and Update Guide - SAP Help
Portal
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 3
Installation - overview
In this document, there are two installation steps
1. Install the server database in the master host (ozhanaitc) and at
the same time add host ozhdbnode2
2. Add another host ozhdbnode3
Some of the prerequisites
- All hosts in a multi-host system must have the same sapsys group
ID
- Although not strictly required, for convenience all hosts should
have the same root password, or can be overwritten during
installation. Installation is handled by hdblcm with root privileges
- Shared mount /hana accessible to all hosts
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 4
Master host + additional host Installation (1)
The installation of a SAP HANA multiple-host system uses the same hdblcm tool
used in installing single-host system, with additional prompts
• To add another host and its role
• Certificate to use in the additional host, for internal communications (between
hosts as well as between processes in a single-host)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 5
Master host + additional host Installation (2)
After the installation, the two hosts and all the services will be
visible in the HANA studio. The ‘IGNORE’ in Host Status
column represents the STANDBY host
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 6
Adding a host
Reference: Add Hosts Using the Command-Line Interface
Command line to add worker host ozhdbnode3 to master host ozhanaitc
Display – hosts after the addition in HANA Studio
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 7
cd /hana/shared/HDB/HDB00/hdblcm
./hdlcm --addhosts=ozhdbnode3:role=worker
--certificates_hostmap=ozhdbnode3=ozhanaitc
--root_password=XXXXXXX
--remote_execution=saphostagent
--use_http=yes
Volume mount points after installation
After the installation, only the volumes for the SYSTEMDB will be created, e.g.
/hana/data/HDB/mnt00001/hdb00001
/hana/log/HDB/mnt00001/hdb00001
The digit at the end of mnt00001 refers to the host sequence.
mnt00001 is for the master host (in this example, ozhanaitc)
mnt00002 is for the next host that will have data
Only after creating a tenant database which implicitly contains an indexserver that
corresponding volumes will be created.
For example
‘create database 4H at location ozhanaitc system user password xxxxx’
This will be located still in /mnt00001 (since its on the same host with ozhanaitc)
‘create database ND3 at location ozhdbnode3 system user password yyy’
This will create /mnt00002
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 8
Redistribution of tables in Distributed System
A feature available with a HANA distributed system is ‘table distribution’:
• In a distributed system, tables and table partitions are assigned to an index
server on a particular host at the time of their creation, but this assignment can
be changed – the process known as “redistribution operations”
• Reference: 2081591 - FAQ: SAP HANA Table Distribution
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 9
Redistribution (2)
Use redistribution for the following needs:
• Redistribute data before removing a host from a system
• Redistribute data after adding a new host to the system, it can be done by
adding an index server to a tenant DB in another host.
• Optimize current table distribution
• Optimize table partitioning, commonly for SAP BW usage scenario
For example, the following tenants exist
• Tenant DB A4H in ozhanaitc
• Tenant DB ND3 in ozhdbnode3
• Alter database A4H add ‘indexserver’ at location ‘ozhdbnode3:30049’
• Alter database ND3 add ‘indexserver’ at location ‘ozhanaitc:30061’
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 10
OZHANAITC
Tenant DB A4H
OZHDBNODE3
Tenant DB ND3
Redistribution (3)
Table/view(s) related to table distribution
• REORG_PLAN – This view contains the last table redistribution plan
generated with this database connection. The contents of the session is
temporarily stored and will be deleted when the connection is closed.
• REORG_STEPS This view contains the executed or to be executed table
redistribution plan items
To easily display any possible ‘movement’,
Select * from reorg_steps
Where new_host is not null;
To display tables where run-time host_name is different from the original host
location of the tenant DB,
Select * from m_cs_tables
Where schema_name = ‘<schema_name>’
And host <> ‘<orginal_host>’
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 11
HA Failover – Testing (1)
Testing automatic failover to standby, when a worker host goes down
1. Normal/original configured roles
2. STOP worker ozhdbnode3
• Standby ozhdbnode2 will have ‘HOST_STATUS=PARTIAL’
• WORKER ozhdbnode3 will have ‘HOST_STATUS=NO’, and
‘FAILOVER_STATUS=FAILOVER to OZHDBNODE2’
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 12
HA Failover – Testing (2)
3. After the takeover is complete
• ozhdbnode2 is now a ‘WORKER’ host
• ozhdbnode3 is now the ‘STANDBY’ host
• the host roles are now switched (i.e. host_config_roles <> host_actual_roles)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 13
ozhdbnode3
ozhdbnode2
HA Failover – Testing (3)
4. Restarting ozhdbnode3 (originally configured as SLAVE)
• Both ozhdbnode2 and ozhdbnode2 will have
HOST_STATUS=INFO
• By design, HANA will not automatically fail back to the
original configured worker system – even assuming it’s fixed
and restarted, therefore after the first failover, its’ Actual
role will be different than the Configured role
• There is no ‘automatic’ takeover, the status of ozhdbnode3
sysem will remain as STANDBY
• In order to restore the actual roles=configured roles, a
manual process must be invoked to stop ozhdbnode2, or
restart the entire HANA cluster
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 14
HA Failover – Testing (4)
5. Now stop ozhdbnode2 so ozhdbnode3 can takeover its
original role (i.e. SLAVE Worker)
a) While stopping of ozhdbnode2 system is in progress, ozhdbnode2 status will be
‘STOPPING/WARNING’
b) ozhdbnode3 will have status ‘starting/warning’, indicating it is taking over
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 15
HA Failover – Testing (5)
6. When ozhdbnode3 has fully taken over, its
host_actual_role will revert to its original role (SLAVE)
Finally, the host roles are now the same as it was originally configured
Note that while ozhdbnode2 is IGNORED, the OVERVIEW status in HANA
Studio will be red, since the services of ozhdbnode2 are stopped.
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 16
Monitoring/Reporting (1)
SQL queries that can be run from SYSTEMDB to monitor multiple-host systems.
Display any inactive services, including tenant DB services
Select *
From “SYS_DATABASES”.”M.SERVICES”
Where active_status = ‘NO’
List host that is not active or where the configured role is not the same as its active role
(i.e. after a failover has occurred)
Select *
from m_landscape_host_configuration
where
(
(host_active = 'NO')
OR
(host_config_roles <> host_active_roles)
);
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 17
Monitoring/Reporting (2)
Other views worth reporting from
M_LANDSCAPE_HOST_CONFIGURATION
• Detail information for each host (master, worker, standby, dynamic
tiering), - failover group, configuration and actual roles roles of
nameserver, indexserver and host.
M_DATA_VOLUMES
- Volume/filename for each database
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 18
Enterprise Monitoring
• Many configuration, status, and alerts can occur in distributed
HANA environment which require continuous monitoring.
Solutions can be automated via the OZSOFT HANA Management
Pack (HANA MP) for Microsoft SCOM and/or IT-Conductor
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 19
What’s next
Topics for future blogs:
- HANA DR with System Replication
- Dynamic Tiering – Data provision installation, extended
storage maintenance, and management
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 20
• Any Questions?
• Contact Info:
Linh Nguyen linh.nguyen@itconductor.com
Terry Kempis terry.kempis@itconductor.com
Let
itconductor.com
@itconductor

More Related Content

What's hot

Introduction to Vagrant
Introduction to VagrantIntroduction to Vagrant
Introduction to Vagrant
Marcelo Pinheiro
 
Alphorm.com Support de la Formation VMware vSphere 6, Les machines virtuelles
Alphorm.com Support de la Formation VMware vSphere 6, Les machines virtuellesAlphorm.com Support de la Formation VMware vSphere 6, Les machines virtuelles
Alphorm.com Support de la Formation VMware vSphere 6, Les machines virtuelles
Alphorm
 

What's hot (20)

SFScon15 - Thomas Lamprecht: "Proxmox Virtual Environment 4.0"
SFScon15 - Thomas Lamprecht: "Proxmox Virtual Environment 4.0"SFScon15 - Thomas Lamprecht: "Proxmox Virtual Environment 4.0"
SFScon15 - Thomas Lamprecht: "Proxmox Virtual Environment 4.0"
 
Introduction to virtualization
Introduction to virtualizationIntroduction to virtualization
Introduction to virtualization
 
IBM MQ on cloud and containers
IBM MQ on cloud and containersIBM MQ on cloud and containers
IBM MQ on cloud and containers
 
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/NeutronOverview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
 
Proxmox Talk - Linux Fest Northwest 2018
Proxmox Talk - Linux Fest Northwest 2018Proxmox Talk - Linux Fest Northwest 2018
Proxmox Talk - Linux Fest Northwest 2018
 
NSX-T Architecture and Components.pptx
NSX-T Architecture and Components.pptxNSX-T Architecture and Components.pptx
NSX-T Architecture and Components.pptx
 
VSICM8_M02.pptx
VSICM8_M02.pptxVSICM8_M02.pptx
VSICM8_M02.pptx
 
Airheads Tech Talks: Advanced Clustering in AOS 8.x
Airheads Tech Talks: Advanced Clustering in AOS 8.xAirheads Tech Talks: Advanced Clustering in AOS 8.x
Airheads Tech Talks: Advanced Clustering in AOS 8.x
 
IBM MQ Whats new - including 9.3 and 9.3.1
IBM MQ Whats new - including 9.3 and 9.3.1IBM MQ Whats new - including 9.3 and 9.3.1
IBM MQ Whats new - including 9.3 and 9.3.1
 
Virtualization & cloud computing
Virtualization & cloud computingVirtualization & cloud computing
Virtualization & cloud computing
 
Virtualization
VirtualizationVirtualization
Virtualization
 
VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...
VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...
VMware Tutorial For Beginners | VMware Workstation | VMware Virtualization | ...
 
VMware vSphere Performance Troubleshooting
VMware vSphere Performance TroubleshootingVMware vSphere Performance Troubleshooting
VMware vSphere Performance Troubleshooting
 
Introduction to Vagrant
Introduction to VagrantIntroduction to Vagrant
Introduction to Vagrant
 
Virtualization.ppt
Virtualization.pptVirtualization.ppt
Virtualization.ppt
 
Alphorm.com Support de la Formation VMware vSphere 6, Les machines virtuelles
Alphorm.com Support de la Formation VMware vSphere 6, Les machines virtuellesAlphorm.com Support de la Formation VMware vSphere 6, Les machines virtuelles
Alphorm.com Support de la Formation VMware vSphere 6, Les machines virtuelles
 
An Introduction to VMware NSX
An Introduction to VMware NSXAn Introduction to VMware NSX
An Introduction to VMware NSX
 
Presentation citrix desktop virtualization
Presentation   citrix desktop virtualizationPresentation   citrix desktop virtualization
Presentation citrix desktop virtualization
 
VMware ESXi 6.0 Installation Process
VMware ESXi 6.0 Installation ProcessVMware ESXi 6.0 Installation Process
VMware ESXi 6.0 Installation Process
 
Different types of virtualisation
Different types of virtualisationDifferent types of virtualisation
Different types of virtualisation
 

Viewers also liked

Viewers also liked (20)

SAP HANA System Replication - Setup, Operations and HANA Monitoring
SAP HANA System Replication - Setup, Operations and HANA MonitoringSAP HANA System Replication - Setup, Operations and HANA Monitoring
SAP HANA System Replication - Setup, Operations and HANA Monitoring
 
BW Migration to HANA Part 2 - SUM DMO Tool for SAP Upgrade & Migration
BW Migration to HANA Part 2 - SUM DMO Tool for SAP Upgrade & MigrationBW Migration to HANA Part 2 - SUM DMO Tool for SAP Upgrade & Migration
BW Migration to HANA Part 2 - SUM DMO Tool for SAP Upgrade & Migration
 
BW Migration to HANA Part 3 - Post-processing on the Migrated System
BW Migration to HANA Part 3 - Post-processing on the Migrated SystemBW Migration to HANA Part 3 - Post-processing on the Migrated System
BW Migration to HANA Part 3 - Post-processing on the Migrated System
 
BW Migration to HANA Part1 - Preparation in BW System
BW Migration to HANA Part1 - Preparation in BW SystemBW Migration to HANA Part1 - Preparation in BW System
BW Migration to HANA Part1 - Preparation in BW System
 
SAP HANA 2 – Upgrade and Operations Part 1 - Exploring Features of the New Co...
SAP HANA 2 – Upgrade and Operations Part 1 - Exploring Features of the New Co...SAP HANA 2 – Upgrade and Operations Part 1 - Exploring Features of the New Co...
SAP HANA 2 – Upgrade and Operations Part 1 - Exploring Features of the New Co...
 
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1SAP HANA SPS12 Upgrade and Exploring New Features - Part 1
SAP HANA SPS12 Upgrade and Exploring New Features - Part 1
 
Managing and Monitoring HANA 2 active:active with System Replication
Managing and Monitoring HANA 2 active:active with System ReplicationManaging and Monitoring HANA 2 active:active with System Replication
Managing and Monitoring HANA 2 active:active with System Replication
 
Mastering SAP Monitoring - SAP SLT & RFC Connection Monitoring
Mastering SAP Monitoring - SAP SLT & RFC Connection MonitoringMastering SAP Monitoring - SAP SLT & RFC Connection Monitoring
Mastering SAP Monitoring - SAP SLT & RFC Connection Monitoring
 
SAP HANA Dynamic Tiering Test-drive
SAP HANA Dynamic Tiering Test-driveSAP HANA Dynamic Tiering Test-drive
SAP HANA Dynamic Tiering Test-drive
 
Sap hana server installation guide
Sap hana server installation guideSap hana server installation guide
Sap hana server installation guide
 
SAP HANA SPS12 Exploring New Features
SAP HANA SPS12 Exploring New FeaturesSAP HANA SPS12 Exploring New Features
SAP HANA SPS12 Exploring New Features
 
Mastering SAP Monitoring - Workload Monitoring
Mastering SAP Monitoring - Workload MonitoringMastering SAP Monitoring - Workload Monitoring
Mastering SAP Monitoring - Workload Monitoring
 
10 Ways to Better Application-Centric Service Management
10 Ways to Better Application-Centric Service Management10 Ways to Better Application-Centric Service Management
10 Ways to Better Application-Centric Service Management
 
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...
SAP Solution Manager - Netweaver on HANA Monitoring Setup Part 1 of 3 (Prepar...
 
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...
Solution Manager Technical Monitoring - SAP NW BW on HANA Setup Part 2 of 3 (...
 
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...
Solution Manager - SAP NW BW on HANA Setup Part 3 of 3 (Technical Monitoring ...
 
Mastering SAP Monitoring - Determining the Health of your SAP Environment
Mastering SAP Monitoring - Determining the Health of your SAP EnvironmentMastering SAP Monitoring - Determining the Health of your SAP Environment
Mastering SAP Monitoring - Determining the Health of your SAP Environment
 
Solution Manager Technical Monitoring - BOBJ (Part 2 of 3 - Auto-Configure)
Solution Manager Technical Monitoring - BOBJ (Part 2 of 3 - Auto-Configure)Solution Manager Technical Monitoring - BOBJ (Part 2 of 3 - Auto-Configure)
Solution Manager Technical Monitoring - BOBJ (Part 2 of 3 - Auto-Configure)
 
Solution Manager Technical Monitoring - SAP BOBJ BI 4.0 (Part 3 of 3 - Manage...
Solution Manager Technical Monitoring - SAP BOBJ BI 4.0 (Part 3 of 3 - Manage...Solution Manager Technical Monitoring - SAP BOBJ BI 4.0 (Part 3 of 3 - Manage...
Solution Manager Technical Monitoring - SAP BOBJ BI 4.0 (Part 3 of 3 - Manage...
 
Mastering SAP Monitoring - SAP HANA Monitoring, Management & Automation
Mastering SAP Monitoring - SAP HANA Monitoring, Management & AutomationMastering SAP Monitoring - SAP HANA Monitoring, Management & Automation
Mastering SAP Monitoring - SAP HANA Monitoring, Management & Automation
 

Similar to SAP HANA Distributed System Scaleout and HA

Ansible & Salt - Vincent Boon
Ansible & Salt - Vincent BoonAnsible & Salt - Vincent Boon
Ansible & Salt - Vincent Boon
MyNOG
 
Shareplex Presentation
Shareplex PresentationShareplex Presentation
Shareplex Presentation
David Breinholt
 
Configuringahadoop
ConfiguringahadoopConfiguringahadoop
Configuringahadoop
mensb
 
[Altibase] 9 replication part2 (methods and controls)
[Altibase] 9 replication part2 (methods and controls)[Altibase] 9 replication part2 (methods and controls)
[Altibase] 9 replication part2 (methods and controls)
altistory
 

Similar to SAP HANA Distributed System Scaleout and HA (20)

Ansible & Salt - Vincent Boon
Ansible & Salt - Vincent BoonAnsible & Salt - Vincent Boon
Ansible & Salt - Vincent Boon
 
Shareplex Presentation
Shareplex PresentationShareplex Presentation
Shareplex Presentation
 
Configuring and Monitoring HANA Extension Node
Configuring and Monitoring HANA Extension NodeConfiguring and Monitoring HANA Extension Node
Configuring and Monitoring HANA Extension Node
 
Oracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard SetupOracle 11g Installation With ASM and Data Guard Setup
Oracle 11g Installation With ASM and Data Guard Setup
 
Kafka High Availability in multi data center setup with floating Observers wi...
Kafka High Availability in multi data center setup with floating Observers wi...Kafka High Availability in multi data center setup with floating Observers wi...
Kafka High Availability in multi data center setup with floating Observers wi...
 
How To Setup Highly Available Web Servers with Keepalived & Floating IPs on U...
How To Setup Highly Available Web Servers with Keepalived & Floating IPs on U...How To Setup Highly Available Web Servers with Keepalived & Floating IPs on U...
How To Setup Highly Available Web Servers with Keepalived & Floating IPs on U...
 
A tour of Ansible
A tour of AnsibleA tour of Ansible
A tour of Ansible
 
Postgres Vienna DB Meetup 2014
Postgres Vienna DB Meetup 2014Postgres Vienna DB Meetup 2014
Postgres Vienna DB Meetup 2014
 
Configuringahadoop
ConfiguringahadoopConfiguringahadoop
Configuringahadoop
 
[Altibase] 9 replication part2 (methods and controls)
[Altibase] 9 replication part2 (methods and controls)[Altibase] 9 replication part2 (methods and controls)
[Altibase] 9 replication part2 (methods and controls)
 
Graphing Nagios services with pnp4nagios
Graphing Nagios services with pnp4nagiosGraphing Nagios services with pnp4nagios
Graphing Nagios services with pnp4nagios
 
Introduction to ansible
Introduction to ansibleIntroduction to ansible
Introduction to ansible
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
 
Local development environment evolution
Local development environment evolutionLocal development environment evolution
Local development environment evolution
 
S/4HANA Installation Quickstart Guide and Monitoring S/4HANA
S/4HANA Installation Quickstart Guide and Monitoring S/4HANAS/4HANA Installation Quickstart Guide and Monitoring S/4HANA
S/4HANA Installation Quickstart Guide and Monitoring S/4HANA
 
Eyeball XMPP Server Administrator Guide
Eyeball XMPP Server Administrator GuideEyeball XMPP Server Administrator Guide
Eyeball XMPP Server Administrator Guide
 
Samba
SambaSamba
Samba
 
Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2Configuring MongoDB HA Replica Set on AWS EC2
Configuring MongoDB HA Replica Set on AWS EC2
 
Introduction to Ansible
Introduction to AnsibleIntroduction to Ansible
Introduction to Ansible
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
 

Recently uploaded

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 

Recently uploaded (20)

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT  - Elevating Productivity in Today's Agile EnvironmentHarnessing ChatGPT  - Elevating Productivity in Today's Agile Environment
Harnessing ChatGPT - Elevating Productivity in Today's Agile Environment
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 

SAP HANA Distributed System Scaleout and HA

  • 1. SAP HANA Distributed System Scale out and HA This is a compilation of notes from installation/configuration of SAP HANA multiple-host system, including automatic failover testing, and monitoring. By OZSoft Consulting for ITConductor.com Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 1
  • 2. Introduction Overview of system architecture Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 2 • HANA scaleout requires data persistence layer to be on either shared storage (such as NFS, NAS), SAN with clustered filesystem, or non-shared storage using HAN storage connector API In our scenario OZHANANFS – prerequisite shared file system (NFS) to contain • Installation path (sapmnt) /hana/shared • Data volume /hana/data/<SID> • Log volume /hana/log/<SID>
  • 3. References Reference: • SAP HANA Administration Guide • SAP HANA Server Installation and Update Guide - SAP Help Portal Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 3
  • 4. Installation - overview In this document, there are two installation steps 1. Install the server database in the master host (ozhanaitc) and at the same time add host ozhdbnode2 2. Add another host ozhdbnode3 Some of the prerequisites - All hosts in a multi-host system must have the same sapsys group ID - Although not strictly required, for convenience all hosts should have the same root password, or can be overwritten during installation. Installation is handled by hdblcm with root privileges - Shared mount /hana accessible to all hosts Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 4
  • 5. Master host + additional host Installation (1) The installation of a SAP HANA multiple-host system uses the same hdblcm tool used in installing single-host system, with additional prompts • To add another host and its role • Certificate to use in the additional host, for internal communications (between hosts as well as between processes in a single-host) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 5
  • 6. Master host + additional host Installation (2) After the installation, the two hosts and all the services will be visible in the HANA studio. The ‘IGNORE’ in Host Status column represents the STANDBY host Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 6
  • 7. Adding a host Reference: Add Hosts Using the Command-Line Interface Command line to add worker host ozhdbnode3 to master host ozhanaitc Display – hosts after the addition in HANA Studio Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 7 cd /hana/shared/HDB/HDB00/hdblcm ./hdlcm --addhosts=ozhdbnode3:role=worker --certificates_hostmap=ozhdbnode3=ozhanaitc --root_password=XXXXXXX --remote_execution=saphostagent --use_http=yes
  • 8. Volume mount points after installation After the installation, only the volumes for the SYSTEMDB will be created, e.g. /hana/data/HDB/mnt00001/hdb00001 /hana/log/HDB/mnt00001/hdb00001 The digit at the end of mnt00001 refers to the host sequence. mnt00001 is for the master host (in this example, ozhanaitc) mnt00002 is for the next host that will have data Only after creating a tenant database which implicitly contains an indexserver that corresponding volumes will be created. For example ‘create database 4H at location ozhanaitc system user password xxxxx’ This will be located still in /mnt00001 (since its on the same host with ozhanaitc) ‘create database ND3 at location ozhdbnode3 system user password yyy’ This will create /mnt00002 Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 8
  • 9. Redistribution of tables in Distributed System A feature available with a HANA distributed system is ‘table distribution’: • In a distributed system, tables and table partitions are assigned to an index server on a particular host at the time of their creation, but this assignment can be changed – the process known as “redistribution operations” • Reference: 2081591 - FAQ: SAP HANA Table Distribution Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 9
  • 10. Redistribution (2) Use redistribution for the following needs: • Redistribute data before removing a host from a system • Redistribute data after adding a new host to the system, it can be done by adding an index server to a tenant DB in another host. • Optimize current table distribution • Optimize table partitioning, commonly for SAP BW usage scenario For example, the following tenants exist • Tenant DB A4H in ozhanaitc • Tenant DB ND3 in ozhdbnode3 • Alter database A4H add ‘indexserver’ at location ‘ozhdbnode3:30049’ • Alter database ND3 add ‘indexserver’ at location ‘ozhanaitc:30061’ Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 10 OZHANAITC Tenant DB A4H OZHDBNODE3 Tenant DB ND3
  • 11. Redistribution (3) Table/view(s) related to table distribution • REORG_PLAN – This view contains the last table redistribution plan generated with this database connection. The contents of the session is temporarily stored and will be deleted when the connection is closed. • REORG_STEPS This view contains the executed or to be executed table redistribution plan items To easily display any possible ‘movement’, Select * from reorg_steps Where new_host is not null; To display tables where run-time host_name is different from the original host location of the tenant DB, Select * from m_cs_tables Where schema_name = ‘<schema_name>’ And host <> ‘<orginal_host>’ Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 11
  • 12. HA Failover – Testing (1) Testing automatic failover to standby, when a worker host goes down 1. Normal/original configured roles 2. STOP worker ozhdbnode3 • Standby ozhdbnode2 will have ‘HOST_STATUS=PARTIAL’ • WORKER ozhdbnode3 will have ‘HOST_STATUS=NO’, and ‘FAILOVER_STATUS=FAILOVER to OZHDBNODE2’ Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 12
  • 13. HA Failover – Testing (2) 3. After the takeover is complete • ozhdbnode2 is now a ‘WORKER’ host • ozhdbnode3 is now the ‘STANDBY’ host • the host roles are now switched (i.e. host_config_roles <> host_actual_roles) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 13 ozhdbnode3 ozhdbnode2
  • 14. HA Failover – Testing (3) 4. Restarting ozhdbnode3 (originally configured as SLAVE) • Both ozhdbnode2 and ozhdbnode2 will have HOST_STATUS=INFO • By design, HANA will not automatically fail back to the original configured worker system – even assuming it’s fixed and restarted, therefore after the first failover, its’ Actual role will be different than the Configured role • There is no ‘automatic’ takeover, the status of ozhdbnode3 sysem will remain as STANDBY • In order to restore the actual roles=configured roles, a manual process must be invoked to stop ozhdbnode2, or restart the entire HANA cluster Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 14
  • 15. HA Failover – Testing (4) 5. Now stop ozhdbnode2 so ozhdbnode3 can takeover its original role (i.e. SLAVE Worker) a) While stopping of ozhdbnode2 system is in progress, ozhdbnode2 status will be ‘STOPPING/WARNING’ b) ozhdbnode3 will have status ‘starting/warning’, indicating it is taking over Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 15
  • 16. HA Failover – Testing (5) 6. When ozhdbnode3 has fully taken over, its host_actual_role will revert to its original role (SLAVE) Finally, the host roles are now the same as it was originally configured Note that while ozhdbnode2 is IGNORED, the OVERVIEW status in HANA Studio will be red, since the services of ozhdbnode2 are stopped. Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 16
  • 17. Monitoring/Reporting (1) SQL queries that can be run from SYSTEMDB to monitor multiple-host systems. Display any inactive services, including tenant DB services Select * From “SYS_DATABASES”.”M.SERVICES” Where active_status = ‘NO’ List host that is not active or where the configured role is not the same as its active role (i.e. after a failover has occurred) Select * from m_landscape_host_configuration where ( (host_active = 'NO') OR (host_config_roles <> host_active_roles) ); Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 17
  • 18. Monitoring/Reporting (2) Other views worth reporting from M_LANDSCAPE_HOST_CONFIGURATION • Detail information for each host (master, worker, standby, dynamic tiering), - failover group, configuration and actual roles roles of nameserver, indexserver and host. M_DATA_VOLUMES - Volume/filename for each database Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 18
  • 19. Enterprise Monitoring • Many configuration, status, and alerts can occur in distributed HANA environment which require continuous monitoring. Solutions can be automated via the OZSOFT HANA Management Pack (HANA MP) for Microsoft SCOM and/or IT-Conductor Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 19
  • 20. What’s next Topics for future blogs: - HANA DR with System Replication - Dynamic Tiering – Data provision installation, extended storage maintenance, and management Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 20
  • 21. • Any Questions? • Contact Info: Linh Nguyen linh.nguyen@itconductor.com Terry Kempis terry.kempis@itconductor.com Let itconductor.com @itconductor