Professional Documents
Culture Documents
environments
Easy scheduling of routine backup
EMC Solutions
Abstract
This White Paper validates the functionality of EMC NetWorker as a tool for
protecting SAP HANA systems through NetWorker Module for SAP (NMSAP),
while continuing to protect other data center systems, on both physical and
virtualized environments, with comprehensive, integrated backup and restore
facilities.
February 2015
White Paper
Table of contents
Executive summary............................................................................................................................... 5
Business case .................................................................................................................................. 5
Solution overview ............................................................................................................................ 5
Key results/ recommendations ........................................................................................................ 5
Introduction.......................................................................................................................................... 6
Purpose ........................................................................................................................................... 6
Scope .............................................................................................................................................. 6
Audience ......................................................................................................................................... 6
Technology overview ............................................................................................................................ 7
Overview .......................................................................................................................................... 7
Hardware resources..................................................................................................................... 8
Software resources ...................................................................................................................... 8
EMC NetWorker ................................................................................................................................ 8
EMC NetWorker Module for SAP (NMSAP) ......................................................................................... 8
NMSAP features specific to SAP HANA.............................................................................................. 9
SAP HANA database ......................................................................................................................... 9
Single-host configuration (scale-up) .......................................................................................... 10
Multi-node cluster configuration (scale-out) .............................................................................. 10
SAP HANA persistence ................................................................................................................... 11
SAP HANA on vSphere .................................................................................................................... 12
Testing and validation ........................................................................................................................ 14
NMSAP for SAP HANA configuration ............................................................................................... 14
Migrating from a physical to a virtualized environment using NMSAP ............................................. 16
Test validation steps ................................................................................................................. 17
Validation results ...................................................................................................................... 18
Virtual HANA backup and recovery with HANA Studio and NMSAP .................................................. 18
Recovering virtual HANA to its most recent state........................................................................ 18
Validation results ...................................................................................................................... 19
Recovering virtual HANA to a specific point in time .................................................................... 20
Validation results ...................................................................................................................... 21
Automate backup through NetWorker console and SAP GUI ........................................................... 21
Validation results ...................................................................................................................... 24
Conclusion ......................................................................................................................................... 25
Summary ....................................................................................................................................... 25
Findings ......................................................................................................................................... 25
References.......................................................................................................................................... 26
EMC documentation ....................................................................................................................... 26
SAP documentation ....................................................................................................................... 26
VMware documentation ................................................................................................................. 26
White Paper
Executive summary
Business case
When adding SAP HANA to the data center portfolio, a key concern is the need for
new procedures and tools for its effective implementation. This concern is justified,
as experienced IT professionals know that dispersion of technology stacks, tools, and
processes can entail a greater risk of IT failure, more difficulty when implementing
change, and higher operational cost and complexity.
In many organizations, IT processes are organized so that a central tool is used to
protect and recover data within the data center, along with consistent processes to
manage backup and restore. These tools and processes are usually operated by a
team implementing a company-wide data protection strategy based on the key
service-level objectivesRecovery Time Objective (RTO) and Recovery Point Objective
(RPO).
With earlier versions of SAP HANA, organizations usually had to add yet more tools,
processes, and skillsets to back up and restore SAP HANA, since the built-in options
were quite limited.
With SAP HANA SPS05 came the HANA BACKINT interface, which enables integration
with third-party backup tools. This allowed EMC to develop that integration into EMC
NetWorker, enabling customers to keep their data center practices consistent by
using a single tool to protect SAP HANA and other data center applications, across
both physical and virtualized environments.
Solution overview
EMC NetWorker Module for SAP (NMSAP) is an add-on module for the NetWorker
server and client that provides backup and recovery services for SAP HANA. Database
administrators can continue to use existing, familiar workflows to protect virtual SAP
HANA with NMSAP. The solution described in this paper covers NMSAP configuration,
and automatic backup and test validation including virtual SAP HANA migration,
backups, and recovery.
Key results/
recommendations
Compatibility between the NMSAP backup solution and the virtual HANA
database
Introduction
Purpose
This White Paper demonstrates the functionality of EMC NetWorker for backup and
restore of SAP HANA applications on both physical and virtualized environments,
using SAP HANA Studio or SAP NetWeaver DBA Cockpit, and NetWorkers GUI. The
paper aims to show that EMC NetWorker Module for SAP (NMSAP) can enable
organizations to consolidate scheduling, management, and reporting of backup and
recovery across the data center, using a single tool that also backs up SAP HANA
databases.
Scope
This document provides test validation of migration, backup, and recovery of virtual
SAP HANA with NMSAP and serves the following purposes:
Describing the key business benefits of using NMSAP with virtual SAP HANA
Describing how to configure NMSAP for virtual SAP HANA migration and
backup
SAP does not currently support incremental or differential data backups. For more
information on SAP HANA backup and recovery, refer to the SAP HANA Administration
Guide and SAP Note 1642148.
To refresh or repurpose a SAP application running on HANA (with SID changed), SAP
does not currently support backint.
Audience
This document is intended for data center architects who define backup and recovery
standards for the data center (including SAP HANA systems), as well as for SAP
system administrators who wish to integrate SAP HANA with EMC NetWorker. This
document may also be useful to architects and administrators responsible for
implementing backup and recovery strategies for SAP HANA across physical and
virtualized environments.
White Paper
Technology overview
Overview
In this solution, an external storage array provides the persistence for data and log
volumes of both the physical and virtual HANA systems, as shown in Figure 1. EMC
NetWorker is used to back up and restore the HANA database, and to migrate it from
a physical environment to a virtualized environment.
Figure 1.
Solution architecture
Hardware resources
Table 1 describes the hardware components used in the deployment.
Table 1.
Equipment
Quantity
Configuration
Storage
EMC VNX8000
ESXi host
Physical host
Ethernet switches
10 Gb Ethernet (GbE)
SAN switches
8 Gb FC
Software resources
Table 2 describes the software components used in the deployment.
Table 2.
EMC NetWorker
Software
Version
Description
EMC NetWorker
8.2
8.2
EMC PowerPath/VE
5.8
Multipathing software
5.33
SUSE Linux
11 SP3
VMware ESXi
5.5.0
Hypervisor
5.5.0
vSphere management
server
SPS08
EMC NetWorker
Module for SAP
(NMSAP)
EMC NetWorker Module for SAP (NMSAP) is an add-on module for the NetWorker
server and client that provides backup and recovery services for SAP HANA and SAP
with Oracle data. NMSAP provides a backup-restore interface between the SAP
White Paper
backup and restore interfaces, the NetWorker server, and the NetWorker Management
Console (NMC).
NMSAP features
specific to SAP
HANA
A SAP HANA database holds most of the data in memory but also uses persistent
storage on disk. During normal database operations, the data is automatically saved
from memory to the disk at regular intervals. All data changes are also captured in the
redo log on disk, which is updated after each committed database transaction. The
data on disk must be backed up to ensure protection against disk failure. NMSAP is
integrated with the SAP HANA BACKINT interface program, hdbbackint, to provide the
backup, deletion, inquiry, and recovery services for SAP HANA database data and
redo logs. Based on the features that SAP HANA supports, NMSAP supports the
following SAP HANA data operations:
Online backups
NMSAP works with the following SAP HANA interfaces on the database server to
perform backup and restore operations:
SAP HANA
database
SAP HANA command line interface (CLI) with the hdbsql command
SAP DBA Cockpit in the Computing Center Management System (CCMS) GUI
As shown in Figure 2, the SAP HANA architecture can be deployed in two basic
configurations:
Single-host (scale-up)
Figure 2.
White Paper
10
SAP HANA
persistence
The SAP HANA in-memory database holds the bulk of its data in memory for maximum
performance but still uses persistent storage to provide for startup and recovery in
case of a failure. The SAP HANA persistence uses two volumes, Data and Log, as
shown in Figure 3.
Figure 3.
Data and log information are automatically saved to disk at regular savepoints as
shown in Figure 4 and described in the following sections.
Figure 4.
Persistence mechanism
Data Volume
Data in memory is asynchronously written to the persistence mechanism as a
savepoint every five minutes by default. This data volume capture method uses a
locking mechanism to prevent modification of pages while copying modified pages
and capturing open transactions before finally increasing the savepoint version and
releasing the lock.
11
Log Volume
The log file system captures all database transactions since the last savepoint. It is
saved to disk continuously and synchronously after each database transaction
commit at the end of the disk write operation, or if the internal log buffer (1 MB) is
full. This information allows the database to be rolled back to any point in time, as
well as to back out of, or redo, individual transactions. In case of failure, the log
volume allows the database to be restored from the last savepoint onwards.
SAP HANA on
vSphere
SAP HANA now runs in production on vSphere, the foundation of the VMware vCloud
Suite. You can combine the power of the SAP HANA in-memory platform with vSphere
to achieve faster time-to-value, better service levels and lower TCO for your
production environments, and take the next step to the software-defined data center.
As shown in Figure 5, the benefits include:
White Paper
12
Figure 5.
For detailed information on virtualizing SAP HANA with VMware vSphere, refer to SAP
Note 1788665 and to the VMware documentation section.
A variety of techniques and tools are available to customers when migrating SAP
HANA on vSphere. In Migrating from a physical to a virtualized environment using
NMSAP, we show how to migrate SAP HANA on vSphere using NMSAP.
13
NMSAP is an add-on module for the NetWorker server and client software. In this
solution, we use the followings steps to configure the NMSAP for SAP HANA after
installing the NetWorker client and NMSAP software on the SAP HANA node.
1.
Create a SAP HANA user key and set the credential parameters. The SAP HANA
user key takes the higher precedence because it is more secure than the
standard username/password combination, as a password can be leaked
through the process list.
Create a user key BACKUP with the hdbuserstore command, as shown in
Figure 6. This key is then used in step 3.
Figure 6.
2.
Figure 7.
3.
Specify the options and values required for the backup configuration on each
wizard page that appears. In this solution, we specify SAP HANA as
application type and the user key BACKUP, as created in step 1. The SID,
White Paper
14
Figure 8.
4.
5.
6.
7.
Table 3.
Parameter
Value
Comments
server
nw82.sap.sse.local
client
saphandb
pool
datadomain
Note: HANA full backups can be directed to any device supported by NetWorker
such as tape drives, virtual disk library, basic file, or Data Domain. In this solution,
Data Domain is recommended since SAP HANA full backups benefit greatly from
data deduplication.
15
8.
Enable the hdbbackint parameter file in SAP HANA Studio. As shown in Figure
9, the location of the parameter file /etc/init_hana_nmsap.utl is specified on
the Configuration tab of the HANA Studio Backup console. Select Use the
same parameter file data backup and log backup to use the same
configuration file for both data and log backup.
Figure 9.
For full SAP environment protection (including applications such as ERP, BI, and so
on), we strongly recommend using NetWorker's powerful features to schedule regular
VMware image and critical files backup. This can include the instance profile, the
transport domain configuration file, and other critical files under the /sapmnt,
/usr/sap/, and /hana/shared file systems. Additional NetWorker clients can be
created for virtual machines for either traditional backup or VMware Consolidated
Backup (VCB).
For detailed configuration information, refer to the documents EMC NetWorker
Module for SAP Administration Guide and EMC NetWorker Administration Guide
Release 8.2.
Migrating from a
physical to a
virtualized
environment using
NMSAP
This test scenario validates that NMSAP can be used for migrating SAP HANA from a
physical to a virtual platform with a different OS patch level. Beyond that particular
validation, this scenario can also be used to restore the backup to a different host for
repurposefor example, using the restored SAP system as a TEST system with the
same SID but using a different hostname.
In this solution, we restore to a virtual SAP HANA database from the backup of a
physical HANA saved on Data Domain using NMSAP. The OS patch of the virtual SAP
HANA database upgrades from SUSE Linux 11 SP2 to SP3 by migration.
Before you perform a physical-to-virtual SAP HANA migration, the following
prerequisites must be met:
A virtual SAP HANA database with the same SID, UID (User ID), and GID (Group
ID) as the physical HANA has been installed.
Note: Follow the SAP HANA Server Installation and Update Guide and Best Practices
White Paper
16
NMSAP software with the same parameter settings (including server, client,
and pool) as the physical HANA has been installed on the virtual HANA server.
Note: Follow NMSAP for SAP HANA configuration on page 14 to install and configure
NMSAP for virtual SAP HANA.
Query the record count of the physical HANA database table and OS version
as shown in Figure 10. This information is later used to validate the result
after the virtual HANA restore.
Figure 10.
2.
In HANA Studios physical HANA backup console, perform data backup for
physical HANA. Select Backint for Destination Type and type 4migration for
the backup name in the Backup Prefix text box, as shown in Figure 11. The
backup name is later used for the virtual HANA restore.
Figure 11.
3.
Query the record count of the physical HANA database table and OS version
In HANA Studios virtual HANA backup console, initiate a recovery SAP HANA
database to a specific data backup operation through HANA Studio. For
virtual HANA recovery, specify the same Destination Type and Backup Prefix
settings as the physical HANA backup, as shown in Figure 12.
17
Figure 12.
4.
Validation results
We verified the table records count and OS version from the recovered virtual HANA
database. Figure 13 shows the table records count matching the values recorded on
the physical HANA with the OS patch upgraded. The HANA database is migrated to a
virtual machine with a different OS version using NMSAP for HANA and the data is
validated.
Figure 13.
Virtual HANA
backup and
recovery with
HANA Studio and
NMSAP
This test scenario validates that NMSAP integrated with the SAP HANA BACKINT
backup solution is compatible with a virtual HANA database. The testing includes:
White Paper
18
Test procedure
1.
Query how many table records are in the virtual HANA database after 1,000
records are inserted, as shown in Figure 14. This number is later used to
validate the restore result.
Figure 14.
2.
Delete one HANA data file manually to simulate a data file crash.
3.
Restart the virtual HANA database. Due to the missing data file, the restart
fails.
4.
In the SAP HANA Studio Specify Recovery Type window, select Recover the
database to its most recent state for the recovery type.
5.
Specify the log backup location and select the latest available data backup,
as shown in Figure 15.
Figure 15.
6.
Validation results
We started the recovered virtual HANA database and verified the table records count.
Figure 16 shows that the table records match the values recorded before the table
records were deleted.
Figure 16.
19
Test procedure
1.
Query the current table records count and timestamp, as shown in Figure 17.
Figure 17.
2.
Drop one table to simulate a database logic error, as shown in Figure 18.
Figure 18.
3.
In the SAP HANA Studio Specify Recovery Type window, select Recover the
database to the following point in time as the recovery type. Specify the point
in time from step 1 in the Date and Time fields, as shown in Figure 19.
Figure 19.
4.
Specify the log backup location and select the latest available data backup.
5.
White Paper
20
Validation results
We started the recovered virtual HANA database and verified the table records count.
Figure 20 shows that the table records match the values recorded before the table
records were deleted.
Figure 20.
Automate backup
through NetWorker
console and SAP
GUI
SAP HANA database backup can be initiated either through HANA Studio or through
the NetWorker console. The NetWorker console enables centralized management of
NetWorker components (including NetWorker server, various clients, and backup
devices) and comprehensive data protection options within the enterprise. This test
scenario validates that automating the backup solution is compatible with a virtual
HANA database.
Test procedure
1.
Figure 21.
2.
In the NetWorker console, open the group properties of the virtual HANA
client.
3.
Set the Start time of the group, as shown in Figure 22. The NetWorker client in
the backup group begins automatic scheduled backups according to the start
time of the group.
Figure 22.
21
4.
Set a schedule for the group. NetWorker software ships with preconfigured
schedules to meet varied backup requirements. New schedules also can be
created to accommodate specific needs. We used Full Every Day for SAP
HANA data protection, as shown in Figure 23.
Figure 23.
The SAP Basis administrator can also schedule backup of SAP Business Suite on
HANA through transaction code DB13 in the SAP GUI, as follows:
1.
Select BACKINT for Destination Type in the Action Parameters tab, as shown
in Figure 24.
White Paper
22
Figure 24.
2.
Figure 25.
23
Validation results
Check the Save Sets of the NetWorker volumes, as shown in Figure 26. SAP HANA
data and log backup are automatically saved at the time scheduled.
Figure 26.
White Paper
24
Conclusion
Summary
EMC NMSAP for HANA is an add-on module for the NetWorker server and client that
provides backup and recovery services for SAP HANA. It enables virtual HANA
migration, backup and restore operations with SAP HANA Studio, and automated
backup.
Findings
The test results for virtual SAP HANA backup and restore with NMSAP for HANA
presented here confirm the following:
NMSAP enables easy migration to virtual SAP HANA using existing physical
SAP HANA database backup. Migrating to a virtualized environment provides
the benefits of rapid provisioning, zero downtime, and low TCO.
25
References
EMC
documentation
SAP
documentation
VMware
documentation
For additional information, see the following EMC documents (available on EMC.com
and on the EMC online support website):
EMC NetWorker Module for SAP Release 8.2 and Service Packs
SAP Note 1788665 - SAP HANA Support for VMware Virtualized Environments
SAP HANA Server Installation and Update Guide - SAP HANA Platform SPS 08
White Paper
26