35
1 © 2014 SAP SE or an SAP affiliate company. All rights reserved. SAP HANA SPS 09 - What’s New? Backup/Recovery Andrea Kristen, SAP HANA Product Management November, 2014 (Delta from SPS 08 to SPS 09)

SAP HANA SPS09 - Backup and Recovery

Embed Size (px)

DESCRIPTION

See what's new in SAP HANA SPS09 - Backup and Recovery

Citation preview

Page 1: SAP HANA SPS09 - Backup and Recovery

1 © 2014 SAP SE or an SAP affiliate company. All rights reserved.

SAP HANA SPS 09 - What’s New? Backup/Recovery

Andrea Kristen, SAP HANA Product Management November, 2014

(Delta from SPS 08 to SPS 09)

Page 2: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 2 Public

Agenda

Backup

Recovery

Scale-out support

Database copy

Support for multitenant database containers

3rd party tool certification

Page 3: SAP HANA SPS09 - Backup and Recovery

Backup

Page 4: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 4 Public

What’s New in SAP HANA SPS09: Backup and Recovery New alert: Runtime of the log backups currently running

A new alert notifies administrators when a log backup takes a long time

This enables administrators to detect issues with logs backup early, for example if there is a problem

with a 3rd party backup agent.

Configuring the alert thresholds

Prerequisite: system privilege INIFILE ADMIN

1. In the Administration editor in SAP HANA Studio, open the Alerts tab and choose the (Configure...) button.

2. Open the Configure Check Thresholds tab and choose check 65.

3. Specify the threshold values.

– Default thresholds: 30 s / 300 s / 900 s

Switching off the alert

See SAP Note 1991615

Page 5: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 5 Public

What’s New in SAP HANA SPS09: Backup and Recovery New alert: Enablement of automatic log backup

A new alert notifies administrators when

automatic log backups have been disabled

Automatic log backups need to be enabled in

production systems in order to provide full point-

in-time recoverability.

Prerequisite for the alert: statistics server is running in

embedded mode

The alert is executed every 15 minutes

Switching off the alert

Prerequisites:

o INIFILE ADMIN system privilege

o sap.hana.admin.roles::Administrator role

1. In SAP HANA Cockpit, click on the Configure

Checks tile

2. Set Schedule Active to NO

Page 6: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 6 Public

What’s New in SAP HANA SPS09: Backup and Recovery New alert: Storage snapshot is prepared

A new alert notifies administrators when a storage snapshot was prepared but not confirmed

for a longer period of time

Prepared storage snapshots should only exist for a short time (until the storage snapshot was

executed using the storage tool).

Configuring the alert thresholds

Prerequisite: system privilege INIFILE ADMIN

1. In the Administration editor in SAP HANA Studio, open the Alerts tab and choose the (Configure...) button.

2. Open the Configure Check Thresholds tab and choose check 66.

3. Specify the threshold values.

– Default thresholds: 5 min / 15 min / 60 min

Switching off the alert

See SAP Note 1991615

Page 7: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 7 Public

What’s New in SAP HANA SPS09: Backup and Recovery New Save button for configuration changes in SAP HANA Studio

A new button for saving the backup configuration was introduced

In earlier versions, saving was only possible via the general File menu

Saving the backup configuration

Prerequisite: system privilege BACKUP ADMIN

1. Open the Backup editor and choose the Configuration tab

2. Change the configuration as required and choose the (Save) button

Page 8: SAP HANA SPS09 - Backup and Recovery

Recovery

Page 9: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 9 Public

What’s New in SAP HANA SPS09: Backup and Recovery Choose data backup for recovery via backup catalog

You can now choose the data backup for a

“recovery to a specific data backup” from the

backup catalog

In earlier versions you had to manually specify the

location of the data backup

Recovery to a specific data backup

Prerequisites: <sid>adm operating system user

credentials

1. In the Systems view in SAP HANA Studio, right-click

on the system to be recovered and choose

Recovery...

2. Select Recover the database to a specific data

backup or storage snapshot

3. Select the data backup from the backup catalog

4. Specify further options and start the recovery

Page 10: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 10 Public

What’s New in SAP HANA SPS09: Backup and Recovery Fewer log backups needed for recovery

When preparing a recovery, you now only need to provide the log backups up to the one that

contains a COMMIT time stamp after the specified recovery point

You can use hdbbackupdiag to display the backups and/or snapshots required for a recovery of the

database. This helps you to keep the quantity of the files that have to be made available to a minimum.

Finding out which log backups are required for a recovery

Prerequisites: You are logged on to the database server with the operating system user <sid>adm and have

read authorization for the backup location. For more information, see the SAP HANA Administration Guide.

Example: Displaying backups needed to reach specified point in time /usr/sap/S41/SYS/exe/hdb>hdbbackupdiag -f -d /usr/sap/S41/HDB41/backup/log -u "2014-10-20 09:15:00"

found backup catalog 1413788288630 from file

/usr/sap/S41/HDB41/backup/log/log_backup_0_0_0_0.1413788288630

using backup catalog 1413788288630 from file

/usr/sap/S41/HDB41/backup/log/log_backup_0_0_0_0.1413788288630

INITIAL_DATA_BACKUP_databackup_0_1

INITIAL_DATA_BACKUP_databackup_1_1

INITIAL_DATA_BACKUP_databackup_3_1

INITIAL_DATA_BACKUP_databackup_4_1

log_backup_1_0_886272_890688.1413788288333

Page 11: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 11 Public

What’s New in SAP HANA SPS09: Backup and Recovery Recovery SQL statement displayed in the recovery wizard

You can now display the SQL statement for a

specific recovery in SAP HANA Studio

Preparing a recovery

Prerequisites: <sid>adm operating system user

credentials

1. In the Systems view in SAP HANA Studio, right-click

on the system to be recovered and choose

Recovery...

2. Specify your recovery options in the recovery wizard

3. On the Review Recover Settings page, choose Show

SQL Statement

Page 12: SAP HANA SPS09 - Backup and Recovery

Database copy

Page 13: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 13 Public

SAP HANA Backup and Recovery Database copy using 3rd party backup tools (I)

You can now carry out database copies using a 3rd party backup tool

In earlier versions, this was only possible using file system backups or storage snapshots.

Typical use case: copy of your production system for tests on a smaller QA system. Note that if the

target system has less resources, e.g. less CPU and RAM, performance cannot be expected to be the

same as in the source system.

Options

Using data backup + log backups of the source database

This allows you to restore the database to a point in time after the data backup

Using only a data backup of the source database

This restores the content exactly as of the point in time of the data backup or storage snapshot

Page 14: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 14 Public

3rd Party Backup

Server

SAP HANA Backup and Recovery Database copy using 3rd party backup tools (II)

Copying from a larger (m nodes) to a smaller system (n nodes) is supported for database copies using

data backups. You need to configure (m-n) additional index servers in the target database.

Source database

with n nodes

(e.g. PROD)

Target database

with 2 nodes

(e.g. QA)

Node n

Index Server Node 2

Index Server Node 1

Index Server 1

Node 2

Index Server Node 1

Index Server 1

Index Server 2

Data backup

+ log backups

(optional)

Page 15: SAP HANA SPS09 - Backup and Recovery

Scale-out support

Page 16: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 16 Public

What’s New in SAP HANA SPS09: Backup and Recovery No manual steps required after removing host/service

Removing a host/service has now been fully integrated into SAP HANA backup and recovery

In earlier versions, production had to be halted until a new data backup had been written that reflected

the changed system landscape and served as the basis for subsequent point-in-time recoveries.

When a service is removed, SAP HANA now:

Automatically redistributes the data of the removed index server to the remaining index servers

Ensures that all log entries of the removed index servers and the topology changes are backed up

No manual data backup is needed any more after a host/service was removed

Page 17: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 17 Public

What’s New in SAP HANA SPS09: Backup and Recovery Remove service using SAP HANA Studio

You can now remove a service using SAP

HANA Studio

A customer may choose to remove a service that is

not needed in a specific scenario.

Example: remove additional index server after a

database copy to a smaller system

Removing a service

Prerequisites:

o System privileges CATALOG READ, SERVICE ADMIN

and RESOURCE ADMIN

o EXECUTE on procedure

UPDATE_LANDSCAPE_CONFIGURATION

1. In the Administration editor in SAP HANA Studio,

open the Landscape tab

2. Right-click on the service to be removed and choose

Remove Service

Page 18: SAP HANA SPS09 - Backup and Recovery

Support for multitenant

database containers

Page 19: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 19 Public

What’s New in SAP HANA SPS09: Backup/Recovery Multitenant database containers: Overview

Multitenant database containers are a new way

to run multiple applications/scenarios on one

SAP HANA system

1 system database and multiple tenant databases

Shared installation of database system software

Strong isolation features, the system database and

each of the tenant databases have their own:

– Database users, database catalog, repository,

persistence, backups, traces and diagnosis files

Distinction between tasks performed at system level

and those performed at database level

Integration with data center operation procedures

*tenant database = database container

Application 1

SAP HANA system

Application 2

Tenant

database 1*

Tenant

database 2

System

database

Page 20: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 20 Public

What’s New in SAP HANA SPS09: Backup and Recovery Multitenant database containers: Backup/recovery concept

Multitenant database containers follow the usual SAP HANA backup/recovery principles

Data backups are initiated manually or scheduled via scripts/tools such as DBA Cockpit

Log backups are carried out automatically if the log mode is set to NORMAL (recommended for production)

Backup information is stored in the backup catalog

Different backup destinations are supported: backups to the file system, backups to 3rd party backup tools

Database copies using backup/recovery are supported for individual databases

Recovery options: point-in-time recovery, recovery to a specific data backup

Tool support: SAP HANA Studio, DBA Cockpit, command line (SQL statements)

Specific properties of multitenant database container backup/recovery

The system database plays a central role. It can initiate both backups of the system database itself and of

individual tenant databases. Recoveries are always initiated by the system database

Tenant databases can carry out their own backups unless this has been prohibited in the system configuration

System database and tenant databases have their own backup catalogs.

Snapshots are currently not supported

Page 21: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 21 Public

What’s New in SAP HANA SPS09: Backup and Recovery Multitenant database containers: Backing up the system database

You regularly need to create data backups of

the system database

The system database contains information about

the system as a whole and all tenant databases

and is used for central system administration.

Creating a data backup of the system database

Prerequisites: User in the system database with

BACKUP ADMIN or BACKUP OPERATOR and

CATALOG READ system privileges

1. In the Systems view in SAP HANA studio, right-click

on the system database and choose Backup and

Recovery Backup Up System Database...

2. Specify your backup settings and start the backup

Page 22: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 22 Public

What’s New in SAP HANA SPS09: Backup and Recovery Multitenant database containers: Backing up a tenant database

You regularly need to create data backups of

the tenant databases

The tenant databases contain the business data.

They have their own index servers.

Note: Depending on the system configuration, it

may also be possible to initiate a data backup

directly from a tenant database

Creating a data backup of a tenant database

Prerequisites: User in the system database with

DATABASE ADMIN system privilege

1. In the Systems view in SAP HANA studio, right-click

on the system database and choose Backup and

Recovery Backup Up Tenant Database...

2. Select the tenant database to be backed up

3. Specify your backup settings and start the backup

Page 23: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 23 Public

What’s New in SAP HANA SPS09: Backup and Recovery Multitenant database containers: Viewing backup information

Backup information is contained in the backup

catalog

Viewing information for all databases

Prerequisites: User in the system database with

DATABASE ADMIN privilege; tenant database running

1. In the Systems view in SAP HANA studio, expand the

system database and double-click on Backup

2. Open the Backup Catalog tab and select the

database for which you want to view the information

Viewing information for a tenant database

Prerequisites: User in the tenant database with

BACKUP ADMIN and CATALOG READ privileges

1. In the Systems view in SAP HANA studio, expand the

tenant database and double-click on Backup

2. Open the Backup Catalog tab

Page 24: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 24 Public

What’s New in SAP HANA SPS09: Backup and Recovery Multitenant database containers: Backup lifecycle management

You can delete backups that are not needed

any longer

Deleting old backups

Prerequisites:

o To delete system database backups: User in the system

database with BACKUP ADMIN system privilege

o To delete tenant database backups: User in the system

database with DATABASE ADMIN system privilege

1. In the Systems view in SAP HANA studio, expand the

system database and double-click on Backup

2. Open the Backup Catalog tab and select the

database for which you want to delete backups

3. From the context menu, choose which backups you

want to delete. Specify whether the backups should

be deleted from the backup catalog only, or also from

from the file system/3rd party backup tool

Page 25: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 25 Public

What’s New in SAP HANA SPS09: Backup and Recovery Multitenant database containers: Recovering the system database

A recovery of the system database may be be

needed, for example, if there are physical errors

in the system database’s volumes

Recovering the system database

Prerequisites: <sid>adm user credentials

1. In the Systems view in SAP HANA studio, right-click

on the system database and choose Backup and

Recovery Recover System Database...

2. Enter the <sid>adm credentials. The whole system

will be shut down, including all tenant databases.

3. Specify your recovery type and further recovery

settings and start the recovery. The system database

will be recovered and restarted.

4. Restart the tenant databases. The tenant databases’

content is not affected by the system database

recovery.

Page 26: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 26 Public

What’s New in SAP HANA SPS09: Backup and Recovery Multitenant database containers: Recovering a tenant database

A recovery of a tenant database may be

required, for example, if a logical error occurred

in the tenant database

Recovery of tenant databases can only be initiated

from the system database. The system database

and other tenant databases are not affected.

Recovering a tenant database

Prerequisites: User in the system database with

DATABASE ADMIN system privilege

1. In the Systems view in SAP HANA studio, right-click

on the system database and choose Backup and

Recovery Recover Tenant Database...

2. Select the tenant database to be recovered

3. Specify your recovery type and further recovery

settings and start the recovery.

Page 27: SAP HANA SPS09 - Backup and Recovery

3rd party tool certification

Page 28: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 28 Public

What’s New in SAP HANA SPS09: Backup and Recovery Backint Certification

Certification is an installation prerequisite for backup tools using the “Backint for SAP HANA” interface.

SAP Note 1730932 (Using backup tools with Backint)

Announcement of the certification process

Certified tools (as of 2014-10-13)

Online listing of certified tools: Application Development Partner Directory

Enter the search term HANA-BRINT and click on a partner name ”SAP Certified Solutions” for further details

Vendor Backup Tool Support Process (SAP Notes)

Commvault Simpana 10.0, Hitachi Data Protection Suite 10 (via Simpana Backint interface) 1957450

EMC Networker 8.2, Interface for Data Domain Boost 1.0 1999166, 1970559

HP Data Protector 7.0 and 8.1 1970558

IBM Tivoli Storage Manager for Enterprise 6.4 1913500

SEP Sesam 4.4 2024234

Symantec NetBackup 7.5 1913568

Page 29: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 29 Public

What’s New in SAP HANA SPS09: Backup and Recovery Backint: Improvements for backup tools that write to tape

SAP HANA’s internal recovery handling has been adapted in order to avoid deadlock situations

when retrieving log backups from a 3rd party backup tool that uses tapes

In some cases 3rd party backup tools have encountered deadlocks when two SAP HANA database

services requested log backups from the same tape (no concurrent access possible to the tape).

Page 30: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 30 Public

What’s New in SAP HANA SPS09: Backup and Recovery Backint: Improvements for log backups

SAP HANA now uses a single backup call to the 3rd party agent for all log segments of a

service that are ready for backup

In some scenarios the start of a 3rd party backup agent for a log backup may take longer than the

actual log backup itself. During times of high load, this may lead to many pending log backups and in

the worst case to “log full” situations (log segments are only released for overwrite after a successful

log backup).

The new behavior is enabled by default. To disable it, set the following database configuration parameter to the value “1”: global.ini backup max_log_backup_group_size

The log segments that are part of such a multiple log backup are only released for overwrite in the SAP HANA

log volume after the last of them has been backed up.

In the backup catalog, separate entries are maintained for such a multiple log backup. However, when you later

want to remove log backups (backup lifecycle management), you can only remove all log backups of such a

multiple log backup together, which requires that none of them is needed any more.

Page 31: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 31 Public

What’s New in SAP HANA SPS09: Backup and Recovery Backint: Improvements for the backup of the backup catalog

SAP HANA now only writes one backup of the backup catalog for concurrent log backups of

different services. This means that the backup of the backup catalog covers all log backups

that were written since the last backup of the backup catalog.

In earlier versions, a backup of the backup catalog was written after each individual log backup of each

service. Since there is only one backup catalog (service-independent), this could lead to a lot of

pending backup requests for the backup catalog and thus block the release of log segments, e.g. in

scale-out scenarios under heavy load.

The new behavior is enabled by default. To disable it, set the following database configuration parameter to “false”: global.ini backup enable_accumulated_catalog_backup

Page 32: SAP HANA SPS09 - Backup and Recovery

More Information

Page 33: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 33 Public

What’s New in SAP HANA SPS09: Backup and Recovery Documentation

SAP HANA studio provides context-sensitive

help for backup/recovery

To open the context-sensitive help, press F1, or

choose Help -> Dynamic Help

Documentation update

The backup/recover chapter in the SAP HANA

Admininistration Guide has been updated.

Page 34: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved. 34 Public

What’s New in SAP HANA SPS09: Backup and Recovery More information

SAP HANA documentation

Available on the SAP Help Portal

SAP HANA Administration Guide, SAP HANA Technical

Operations Manual

SAP HANA website

Backup/recovery overview presentation

Important SAP Notes

1642148: FAQ: SAP HANA database backup and recovery

1730932: Using backup tools with Backint

1869119: Check backup integrity

For further notes on backup/recovery, see HAN-DB-BAC

Backint for SAP HANA certification

Certification announcement and description

Page 35: SAP HANA SPS09 - Backup and Recovery

© 2014 SAP SE or an SAP affiliate company. All rights reserved.

Thank you

Contact information

Andrea Kristen

SAP HANA Product Management

[email protected]