Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
SAP HANA 2 SPS02 Upgrade and Dynamic
Tiering Implementation
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 1
SAP...
SAP HANA 2 SPS02 Upgrade and Dynamic
Tiering Implementation
This is a compilation of notes taken while doing the upgrade o...
Introduction (1)
In previous work, HANA 1.0 SPS12 was upgraded to HANA 2 SPS00 –
presented in the following document
‘Mana...
Introduction (2)
In this exercise, the following steps were performed
• Upgrade of both primary and secondary databases to...
Introduction (3)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 5
HANA 2 Cockpit
SID:H4C
OZHANA202
HANA 2 Primar...
Introduction (4)
In HANA 2 SPS02, SR with operation mode ‘logreplay_readaccess’ is possible with
Dynamic Tiering (DT) acti...
References
• SAP Published Guides
• SAP JAM – HANA 2 forum presentations
Author: Terry Kempis
Editor: Linh Nguyen
ITConduc...
HANA server upgrade (1)
Reference: SAP HANA Administration guide, section ‘Near Zero Downtime
Upgrade’
Media:
1. Extract:
...
3. Set user store for the takeover user, in both primary and
secondary servers
‘hdbuserstore SET SRTAKEOVER ozhana201:3001...
HANA server upgrade (3)
4. Upgrade the secondary system, as root
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com ...
HANA server upgrade (4)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 11
HANA server upgrade (5)
Secondary system - Post-upgrade status
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 12
HANA server upgrade (6)
5. Wait until the secondary system is in sync, through HANA
Studio or through view M_SYSTEM_REPLIC...
HANA server upgrade (7)
8. Upgrade the primary system, as root
./hdblcm -action=update -hdbupd_server_nostart
Author: Terr...
HANA server upgrade (8)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 15
HANA server upgrade (9)
Post-upgrade of Primary system
9. Register the previous primary as secondary system
10. Start prim...
HANA server upgrade (10)
10. Wait until previous primary is fully synchronized. From
ozhanadr1.
Author: Terry Kempis
Edito...
HANA server upgrade (11)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 18
If desired, perform takeover from the...
HANA server upgrade (13)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 19
SR status from Secondary after primar...
HANA server upgrade (14)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 20
Services
From Primary ozhana201
From ...
HANA 2 Cockpit
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 21
HANA Cockpit upgrade (1)
Media
Extraction
./hdblcm --action=extract_components
Author: Terry Kempis
Editor: Linh Nguyen
IT...
HANA Cockpit upgrade (2)
./hdblcm.sh
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 23
HANA Cockpit upgrade (3)
Registered resources in HANA Cockpit
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 24
HANA 2 Dynamic Tiering
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 25
Dynamic Tiering (1)
In the previous HANA2 SPS00 setup, read-enabled active:active secondary
system was active, but dynamic...
Dynamic Tiering (2)
Installation of Dynamic Tiering
Media used
Extract the media using hdblcm
‘hdblcm –action=extract_comp...
Dynamic Tiering (3)
Installation, as root
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 28
Dynamic Tiering (4)
After the installation, add extended storage role to the
primary server (same host deployment)
Author:...
Dynamic Tiering (5)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 30
Dynamic Tiering (6)
ESSERVER service now appears
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 31
Dynamic Tiering (7)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 32
Esserver will remain as
‘utility’ in the s...
Dynamic Tiering (8)
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 33
HANA COCKPIT view
Dynamic Tiering (9)
Assign the esserver to a tenant DB
Create extended storage using HANA Cockpit
Author: Terry Kempis
Edi...
Dynamic Tiering (10)
Created DBSPACE files – refer to Dynamic Tiering Admin
Guide, section ‘DBSpace sizing’
Author: Terry ...
Dynamic Tiering (11)
Create a backup of the tenant to start the system replication
for that tenant
Author: Terry Kempis
Ed...
System Replication with Dynamic Tiering
From HANA Cockpit
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 37
HANA 2 Monitoring with
IT-Conductor
Author: Terry Kempis
Editor: Linh Nguyen
ITConductor.com 38
IT-Conductor Monitoring (1)
IT-Conductor monitors both Primary and Secondary
landscapes, in HANA database level and Linux ...
IT-Conductor Monitoring (2)
Each database, SYSTEMDB and tenant DB, is monitored as
separate application services
Author: T...
IT-Conductor Monitoring (3)
After installation/implementation of Dynamic Tiering,
IT-Conductor automatically ‘discovers’ t...
IT-Conductor Monitoring (4)
The HANA Cockpit is monitored on the server level, just like
other LINUX servers
Author: Terry...
Summary
With system replication active, systems can be upgraded
following the ‘near-zero downtime upgrade’, as described i...
• Any Questions?
• Contact Info:
Linh Nguyen linh.nguyen@itconductor.com
Terry Kempis terry.kempis@itconductor.com
Let
itc...
Upcoming SlideShare
Loading in …5
×

SAP HANA 2 SPS02 Upgrade and Dynamic Tiering Implementation

This is a compilation of notes taken while doing the upgrade of HANA 2 SPS00 server and COCKPIT to SPS02, followed by installation/implementation of Dynamic Tiering.
with Enhanced SAP HANA Monitoring by IT-Conductor

SAP HANA 2 SPS02 Upgrade and Dynamic Tiering Implementation

  1. 1. SAP HANA 2 SPS02 Upgrade and Dynamic Tiering Implementation Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 1 SAP HANA 2 SPS02
  2. 2. SAP HANA 2 SPS02 Upgrade and Dynamic Tiering Implementation This is a compilation of notes taken while doing the upgrade of HANA 2 SPS00 server and COCKPIT to SPS02, followed by installation/implementation of Dynamic Tiering. with Enhanced SAP HANA Monitoring by IT-Conductor By OZSoft Consulting for ITConductor.com Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 2
  3. 3. Introduction (1) In previous work, HANA 1.0 SPS12 was upgraded to HANA 2 SPS00 – presented in the following document ‘Manager and Monitoring SAP HANA2 Active:Active System Replication’ In that exercise, we explored new features of HANA 2 SPS00, such as system replication – the ‘active:active read-enabled, allowing read-only queries on secondary system’s tables using the new operation mode ‘logreplay_readaccess’ Dynamic tiering was not included in that upgrade due to restriction of not being able to use logreplay_readaccess if dynamic tiering is installed/implemented. Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 3
  4. 4. Introduction (2) In this exercise, the following steps were performed • Upgrade of both primary and secondary databases to SPS02, using ‘Near Zero Downtime Upgrade’ option • Upgrade of HANA cockpit • Installation and data provisioning of Dynamic Tiering (SPS02) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 4
  5. 5. Introduction (3) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 5 HANA 2 Cockpit SID:H4C OZHANA202 HANA 2 Primary System SID: HDB OZHANA201 HANA 2 Secondary SYSTEM SID: HDB OZHANA2DR1 System Replication No Dynamic Tiering Current HANA 2 SPS00 landscape
  6. 6. Introduction (4) In HANA 2 SPS02, SR with operation mode ‘logreplay_readaccess’ is possible with Dynamic Tiering (DT) active – but read on DT tables not possible. Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 6 HANA 2 Cockpit SID:H4C OZHANA202 HANA 2 Primary System SID: HDB OZHANA201 (with Dynamic Tiering) HANA 2 Secondary SYSTEM SID: HDB OZHANA2DR1 (with Dynamic Tiering) System Replication Target HANA 2 SPS02 landscape
  7. 7. References • SAP Published Guides • SAP JAM – HANA 2 forum presentations Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 7
  8. 8. HANA server upgrade (1) Reference: SAP HANA Administration guide, section ‘Near Zero Downtime Upgrade’ Media: 1. Extract: 2. Define the takeover user MY_REPO_IMPORT_USER in the primary system – then it will be replicated to the secondary system Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 8
  9. 9. 3. Set user store for the takeover user, in both primary and secondary servers ‘hdbuserstore SET SRTAKEOVER ozhana201:30015 MY_REPO_IMPORT_USER MyRepoUserPW1’ Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 9 HANA server upgrade (2)
  10. 10. HANA server upgrade (3) 4. Upgrade the secondary system, as root Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 10
  11. 11. HANA server upgrade (4) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 11
  12. 12. HANA server upgrade (5) Secondary system - Post-upgrade status Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 12
  13. 13. HANA server upgrade (6) 5. Wait until the secondary system is in sync, through HANA Studio or through view M_SYSTEM_REPLICATION 6. Stop the primary system 7. From the secondary system, perform a takeover Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 13
  14. 14. HANA server upgrade (7) 8. Upgrade the primary system, as root ./hdblcm -action=update -hdbupd_server_nostart Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 14
  15. 15. HANA server upgrade (8) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 15
  16. 16. HANA server upgrade (9) Post-upgrade of Primary system 9. Register the previous primary as secondary system 10. Start primary system, display status ‘sapcontrol -nr 00 -function StartSystem HDB’ Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 16
  17. 17. HANA server upgrade (10) 10. Wait until previous primary is fully synchronized. From ozhanadr1. Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 17
  18. 18. HANA server upgrade (11) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 18 If desired, perform takeover from the previous primary to become primary again. SR status from Primary after takeover/synchronization
  19. 19. HANA server upgrade (13) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 19 SR status from Secondary after primary has taken over
  20. 20. HANA server upgrade (14) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 20 Services From Primary ozhana201 From Secondary ozhana2dr1
  21. 21. HANA 2 Cockpit Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 21
  22. 22. HANA Cockpit upgrade (1) Media Extraction ./hdblcm --action=extract_components Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 22
  23. 23. HANA Cockpit upgrade (2) ./hdblcm.sh Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 23
  24. 24. HANA Cockpit upgrade (3) Registered resources in HANA Cockpit Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 24
  25. 25. HANA 2 Dynamic Tiering Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 25
  26. 26. Dynamic Tiering (1) In the previous HANA2 SPS00 setup, read-enabled active:active secondary system was active, but dynamic tiering was not configured due to restriction. With SPS02, dynamic tiering is now allowed with the read-enabled active:active secondary system. Extract from the Administration Guide •SP 00 and 01: If dynamic tiering is part of the landscape, the site does not allow active/active support, even for SAP HANA services. •SP 02: (Changed) If active/active (read enabled) is used with dynamic tiering services, there is no read access to dynamic tiering data on the secondary site. When dynamic tiering is part of landscape, active RO access is allowed using operation mode logreplay_readaccess on other HANA services (IS) but without dynamic tiering access. (A query that accesses data on secondary dynamic tiering returns an error.) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 26
  27. 27. Dynamic Tiering (2) Installation of Dynamic Tiering Media used Extract the media using hdblcm ‘hdblcm –action=extract_components Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 27
  28. 28. Dynamic Tiering (3) Installation, as root Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 28
  29. 29. Dynamic Tiering (4) After the installation, add extended storage role to the primary server (same host deployment) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 29
  30. 30. Dynamic Tiering (5) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 30
  31. 31. Dynamic Tiering (6) ESSERVER service now appears Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 31
  32. 32. Dynamic Tiering (7) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 32 Esserver will remain as ‘utility’ in the system DB until it is ‘provisioned’ to a tenant
  33. 33. Dynamic Tiering (8) Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 33 HANA COCKPIT view
  34. 34. Dynamic Tiering (9) Assign the esserver to a tenant DB Create extended storage using HANA Cockpit Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 34
  35. 35. Dynamic Tiering (10) Created DBSPACE files – refer to Dynamic Tiering Admin Guide, section ‘DBSpace sizing’ Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 35
  36. 36. Dynamic Tiering (11) Create a backup of the tenant to start the system replication for that tenant Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 36
  37. 37. System Replication with Dynamic Tiering From HANA Cockpit Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 37
  38. 38. HANA 2 Monitoring with IT-Conductor Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 38
  39. 39. IT-Conductor Monitoring (1) IT-Conductor monitors both Primary and Secondary landscapes, in HANA database level and Linux server Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 39
  40. 40. IT-Conductor Monitoring (2) Each database, SYSTEMDB and tenant DB, is monitored as separate application services Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 40 Alert is raised, and email sent on availability on each DB, depending configurable thresholds
  41. 41. IT-Conductor Monitoring (3) After installation/implementation of Dynamic Tiering, IT-Conductor automatically ‘discovers’ the new essserver service - there is no manual configuration required Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 41
  42. 42. IT-Conductor Monitoring (4) The HANA Cockpit is monitored on the server level, just like other LINUX servers Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 42 Alert on the HANA cockpit availability is raised, based on configurable thresholds
  43. 43. Summary With system replication active, systems can be upgraded following the ‘near-zero downtime upgrade’, as described in the administration guide. IT-Conductor monitoring tool: - Automatically ‘discovers’ the new service ‘esserver’ after the dynamic tiering installation/implementation - Both primary and secondary databases (SYSTEMDB and tenant DBs) are monitored, including host servers - HANA Cockpit is monitored from the host server Author: Terry Kempis Editor: Linh Nguyen ITConductor.com 43
  44. 44. • Any Questions? • Contact Info: Linh Nguyen linh.nguyen@itconductor.com Terry Kempis terry.kempis@itconductor.com Let itconductor.com @itconductor

×