Skip to main content
NetApp solutions for SAP

Restore and recover SAP HANA databases with SnapCenter

Contributors netapp-nbauer

Restore and recover SAP HANA systems using SnapCenter with automated or manual recovery options. This includes complete system restores, single tenant restores for HANA databases on ONTAP, Azure NetApp Files, and FSx for ONTAP.

SnapCenter supports the following restore and recovery operations.

  • SAP HANA MDC systems with a single tenant

    • End-to-end automated restore and recovery

    • End-to-end automated restore and manual recovery (selectable)

  • SAP HANA MDC systems with multiple tenants

    • End-to-end automated restore, recovery needs to be done manually

  • Restore of a single tenant

    • End-to-end automated restore, recovery needs to be done manually

Note Automated recovery is only supported when the HANA plug-in is deployed on the HANA database host and the HANA system got auto discovered by SnapCenter. With a central plug-in host configuration, recovery needs to be done manually after the restore operation with SnapCenter.
Note Restore from primary ANF volume is supported. A restore form ANF backup is not yet supported. An in-place restore or a restore to a new volume from an ANF backup must be done manually using the Azure portal or CLI.

Automated restore and recovery for SAP HANA MDC systems with a single tenant

A restore operation is initiated by selecting a Snapshot backup in the resource topology view and by clicking on Restore.

hana sc generic image 098

For HANA systems using NFS on ANF, FSx for ONTAP or ONTAP storage systems you can select complete restore with or without a volume revert operation for primary volume Snapshots.

  • Complete resource without volume revert uses Single File SnapRestore (SFSR) to restore all files of the database.

  • Complete resource with volume revert uses a volume based restore operation (VBSR) to revert the complete volume back to the state of the selected Snapshot.

Note Volume revert can't be used if you need to restore to a Snapshot which is older than the active SnapVault or SnapMirror replication Snapshot.
Note A volume revert operation will delete all Snapshot backups which are newer than the selected Snapshot for the revert operation.
Note A restore with SFSR is nearly as fast as a volume revert operation but blocks any Snapshot operation until the background process has finished the meta data operations.

hana sc generic image 099

For HANA systems on bare metal hosts using FC SAN, a volume revert (VBSR) is not supported, instead SFSR is always used for the restore operation. For HANA systems running on VMware with VMFS a clone, mount, copy operation will be used.

hana sc generic image 100

For a restore from a secondary backup you need to select the archive location.

hana sc generic image 101

With the recovery scope you can select a 'to most recent state', 'point in time' or a save point recovery without using log backups. If you select no recovery, SnapCenter only executes the restore operation and the recovery needs to be done manually as described "Manual recovery with HANA Studio".

Note SnapCenter uses the paths configured in SAP HANA for log backup and catalog backup locations. If you have tiered backups to an additional location, you can add these additional paths.

hana sc generic image 102

Optionally you can add pre and post restore scripts.

hana sc generic image 103

hana sc generic image 104

When clicking on Finish in the summary screen, the restore and recovery operation is started.

hana sc generic image 105

The restore and recovery workflow can be devided in three main sections.

  • Shutdown of the HANA system

  • Restore operation

    • Filesystem specific preparations, e.g. unmount operation

    • Snapshot restore operation

    • Filesystem specific post operations, e.g. mount operation

  • HANA recovery

    • System database recovery

    • Tenant database recovery

hana sc generic image 106

Manual recovery with HANA Studio

To restore and recover an SAP HANA MDC system with a single or with multiple tenants using SAP HANA Studio and SnapCenter, complete the following steps:

  1. Prepare the restore and recovery process with SAP HANA Studio:

    1. Select Recover System Database and confirm shutdown of the SAP HANA system.

    2. Select the recovery type and provide the backup catalog location.

    3. The list of data backups is shown. Select Backup to see the external backup ID.

  2. Perform the restore process with SnapCenter:

    1. In the topology view of the resource, select Local Copies to restore from primary storage or Vault Copies if you want to restore from an secondary backup storage.

    2. Select the SnapCenter backup that matches the external backup ID or comment field from SAP HANA Studio.

    3. Start the restore process.

  3. Run the recovery process for the system database with SAP HANA Studio:

    1. Click Refresh from the backup list and select the available backup for recovery (indicated with a green icon).

    2. Start the recovery process. After the recovery process is finished, the system database is started.

  4. Run the recovery process for the tenant database with SAP HANA Studio:

    1. Select Recover Tenant Database and select the tenant to be recovered.

    2. Select the recovery type and the log backup location.

    3. A list of data backups displays. Because the data volume has already been restored, the tenant backup is indicated as available (in green).

    4. Select this backup and start the recovery process. After the recovery process is finished, the tenant database is started automatically.

  5. For a HANA system with multiple tenants repeat step 4 for each tenant.

Note A manual recovery with SAP HANA Cockpit is done with the same steps.

The following section describes the steps of the restore and recovery operations of an SAP HANA MDC system with a single tenant.

In HANA Studio select Backup and Recovery and Recover System Database.

hana sc generic image 107

Confirm shutdown operation; only required if the HANA system is still running.

hana sc generic image 108

Select recovery operation. In this example we want to recover to the most recent state.

hana sc generic image 109

Provide backup catalog location.

hana sc generic image 110

HANA Studio lists the most recent backups stored in the HANA backup catalog.

A list of available backups is shown based on the content of the backup catalog. Choose the required backup and note the external backup ID: in this example, the most recent backup.

hana sc generic image 111

From the SnapCenter GUI, select the resource topology view and select the backup that should be restored, in this example, the most recent primary backup. Click the Restore icon to start the restore.

hana sc generic image 112

The SnapCenter restore wizard starts. Select the restore type Complete Resource and Volume revert to use a volume-based restore.

hana sc generic image 113

Select 'No recovery' to exclude the recovery operations from the SnapCenter workflow.

hana sc generic image 114

Click on Finish to start the restore operation.

hana sc generic image 115

SnapCenter is now executing the restore operation.

  • Filesystem specifc preparations, e.g. unmount operation

  • Snapshot restore operation

  • Filesystem specifc post operations, e.g. mount operation

hana sc generic image 116

When the Snapshot got restored by SnapCenter a snapshot_databackup_0_1 file is available in the system and tenant database subdirectory of the HANA data volume. This file got created by the HANA database during the HANA database Snapshot creation. HANA deletes the file when the backup operation is finished, so that the files are only visible within the Snapshot backup. These files are required for any recovery operation. After the recovery the files get deleted by the HANA database.

hana-1:~ # cd /hana/data/SS1/mnt00001/
hana-1:/hana/data/SS1/mnt00001 # ls -al *
-rw-r--r-- 1 ss1adm sapsys 16 Aug 26 06:00 nameserver.lck
hdb00001:
total 4992236
drwxr-x--- 2 ss1adm sapsys 4096 Aug 26 06:00 .
drwxr-x--- 5 ss1adm sapsys 4096 Aug 26 06:00 ..
-rw-r----- 1 ss1adm sapsys 0 Nov 3 2020 __DO_NOT_TOUCH_FILES_IN_THIS_DIRECTORY__
-rw-r----- 1 ss1adm sapsys 5100273664 Aug 26 06:00 datavolume_0000.dat
-rw-r----- 1 ss1adm sapsys 36 Aug 25 10:30 landscape.id
-rw-r----- 1 ss1adm sapsys 163840 Aug 26 06:00 snapshot_databackup_0_1
hdb00002.00003:
total 201420
drwxr-xr-- 2 ss1adm sapsys 4096 Nov 3 2020 .
drwxr-x--- 5 ss1adm sapsys 4096 Aug 26 06:00 ..
-rw-r--r-- 1 ss1adm sapsys 0 Nov 3 2020 __DO_NOT_TOUCH_FILES_IN_THIS_DIRECTORY__
-rw-r--r-- 1 ss1adm sapsys 335544320 Aug 26 06:00 datavolume_0000.dat
hdb00003.00003:
total 4803140
drwxr-xr-- 2 ss1adm sapsys 4096 Aug 26 06:00 .
drwxr-x--- 5 ss1adm sapsys 4096 Aug 26 06:00 ..
-rw-r--r-- 1 ss1adm sapsys 0 Nov 3 2020 __DO_NOT_TOUCH_FILES_IN_THIS_DIRECTORY__
-rw-r--r-- 1 ss1adm sapsys 4898947072 Aug 26 06:00 datavolume_0000.dat
-rw-r----- 1 ss1adm sapsys 159744 Aug 26 06:00 snapshot_databackup_0_1
hana-1:/hana/data/SS1/mnt00001 #

Go to SAP HANA Studio and click Refresh to update the list of available backups. The backup that was restored with SnapCenter is now shown with a green icon in the list of backups. Select the backup and click Next.

hana sc generic image 117

Provide the location of the log backups. Click Next.

Note SAP HANA Studio uses the paths configured in SAP HANA for log backup and catalog backup locations. If you have tiered backups to an additional location, you can add these additional paths.

hana sc generic image 118

Select other settings as required. Make sure Use Delta Backups is not selected. Click Next.

hana sc generic image 119

Review the recovery settings and click Finish.

By clicking on show SQL statement, HANA Studio shows the SQL command which is executed for the recovery operation.

hana sc generic image 120

The recovery process starts. Wait until the recovery of the system database is completed.

hana sc generic image 121

In SAP HANA Studio, select the entry for the system database and start Backup Recovery - Recover Tenant Database.

hana sc generic image 122

Select the tenant to recover and click Next.

hana sc generic image 123

Specify the recovery type and click Next.

hana sc generic image 124

Confirm the backup catalog location and click Next.

hana sc generic image 125

Confirm that the shutdown of the tenant database.

hana sc generic image 126

Because the restore of the data volume has been done before the recovery of the system database, the tenant backup is immediately available. Select the backup highlighted in green and click Next.

hana sc generic image 127

Provide the location of the log backups. Click Next.

Note SAP HANA Studio uses the paths configured in SAP HANA for log backup and catalog backup locations. If you have tiered backups to an additional location, you can add these additional paths.

hana sc generic image 128

Select other settings as required. Make sure Use Delta Backups is not selected. Click Next.

hana sc generic image 129

Review the recovery settings and click Finish.

By clicking on show SQL statement, HANA Studio shows the SQL command which is executed for the recovery operation.

hana sc generic image 130

Wait until the recovery has finished and the tenant database is started.

hana sc generic image 131

When the tenant recovery is finished the SAP HANA system is up and running.

Note For an SAP HANA MDC system with multiple tenants, you must repeat the tenant recovery for each tenant.

Manual recovery with SQL commands

You can also use SQL statements for the recovery of the HANA system.

First you need to recover the system database.

HDBSettings.sh recoverSys.py --command="RECOVER DATABASE UNTIL TIMESTAMP '2026-08-26 10:55:49' USING CATALOG PATH ('mnt/log-backup/SYSTEMDB') USING LOG PATH ('mnt/log-backup/SYSTEMDB') USING SNAPSHOT"

As a second step you need to connect to the system database and start the recovery of the tenant database(s). In this example the tenant database is SS1.

hdbsql SYSTEMDB=> RECOVER DATABASE FOR SS1 UNTIL TIMESTAMP '2026-08-26 10:55:49' USING CATALOG PATH ('mnt/log-backup/DB_SS1') USING LOG PATH ('mnt/log-backup/DB_SS1') USING SNAPSHOT

Single tenant restore and recovery

A single tenant restore and recovery operation with SnapCenter is very similar to the workflow described in the previous topic "Manual recovery with HANA Studio".

To restore and recover an SAP HANA MDC single-tenant system using SAP HANA Studio and SnapCenter, complete the following steps:

  1. Prepare the restore and recovery process with SAP HANA Studio:

    1. Select Recover Tenant Database and confirm shutdown of the tenant database.

    2. Select the recovery type and provide the backup catalog location.

    3. The list of data backups is shown. Select Backup to see the external backup ID.

  2. Perform the restore process with SnapCenter:

    1. In the topology view of the resource, select Local Copies to restore from primary storage or Vault Copies if you want to restore from an secondary backup storage.

    2. Select the SnapCenter backup that matches the external backup ID or comment field from SAP HANA Studio.

    3. Start the restore process of the tenant.

  3. Run the recovery process for the tenant database with SAP HANA Studio:

    1. Click Refresh from the backup list and select the available backup for recovery (indicated with a green icon).

    2. Start the recovery process. After the recovery process is finished, the tenant database is started.

Restore of non-data volumes

A restore operation for a non-data volume is started by selecting a Snapshot backup in the topology view of the non-data volume resource and by clicking on Restore.

hana sc generic image 132

For non-data volumes with NFS a complete resource (VBSR) or a file level (SFSR) restore operation can be selected. For the file level restore either all or individual files can be defined for the restore operation.

hana sc generic image 133