Add an SAP HANA database host and discover and protect its databases

Before you can protect an SAP HANA database, you must add the host and discover the database. This requires the following:

  1. Install the Backup and DR agent on the host

  2. Add the host to the management console

  3. Onboard the HANA databases from the App Manager

Install the Backup and DR agent on the host

The Backup and DR agent connects the host to the backup/recovery appliance. To install the agent, see Install the Backup and DR agent on a Linux host

Add the host to the management console

Add the host to the management console. When the host is added, edit the host to set the staging disk format using the following steps:

  1. Right-click the host and select Edit.

  2. On the Edit Host page, select the staging disk format:

    • Block: Block-based staging disks are required for volume-level backups. Volume-level backups are more generally useful than file-based backups. Backup and DR changed-block tracking (CBT) is only available on block-based staging disks, and virtual databases can only be mounted to block-based staging disks.

    • NFS: NFS staging disks permit only traditional file-based backup with Full+Incremental file system backup. Select NFS only if savepoint API (volume-level backup) is not an option in your network.

  3. Click Save at the bottom of Edit Host page.

Discover and protect the SAP HANA database application

Use the following instructions to discover and protect HANA databases:

  1. Select Add Application from the management console's App Manager > Applications page.

  2. Select SAP HANA in the Add Application wizard.

  3. Follow the wizard:

  4. Click Application Settings in the Configure section.

  5. Select the Backup Capture Method from the Application Settings window. The method is based on your needs and the information in Protect the SAP production environment against data loss, errors, and corruption.

In the Application Settings tab, you can change application-specific settings. Be sure to address the following:

  • HANA DB user store key: This is the SAP HANA hdbuserstore key for the system database created earlier. This field is mandatory.

  • Percentage of reserve space in volume group: This is needed for volume level backup to determine the required amount of temporary free space in LVM volume group for snapshots. The recommended value is 20%.

  • Backup capture method:

    • Use volume level backup: Use volume level LVM snapshots with CBT on Linux to a block-based staging disk. This option uses the SAP HANA savepoint API to enable you to create incremental-forever backups. This requires the HANA database data and log volume to be LVM-managed. If you are using NFS protocol staging disks, then you cannot use volume-level backups.

    • Use Full+Incremental backup: This is the traditional file-based backup and recovery. This "file dump" method does not support creation of virtual databases. You can select this for block and for NFS staging disks. This method only supports traditional Backint backup and physical recovery.

  • Retention of production DB logs in hours: This is used to purge the HANA log backup from the basepath_logbackup destination. Based on this setting the last data backup ID is selected—CURRENT_TIMESTAMP minus the number of hours set—and the log is purged older than the data backup ID. Default value is 2 hours. With default values, all logs prior to last data backup are purged.

  • Retention of production catalog in days: The retention of HANA catalog metadata in days.

  1. Click Save > Next, then click Finish.

  2. You can see the database in the App Manager Applications list with a green shield indicating that the backup plan has been applied.

Back up HANA 1+n and HANA scale-out databases

This page includes information about protecting HANA 1+n and HANA scale-out.

Protect HANA 1+n

To protect a HANA 1+n replication cluster as a single application, after application discovery the application has the cluster host as sid name_cluster. For example, if sr1 is the HANA instance, then the application name is sr1 and the hostname is sr1_cluster in the App Manager Applications list.

The HANA log backup destination must be shared between two nodes. When failover occurs, the database and log backup automatically fails over to the current primary, and log backups are performed from the current primary, capturing the last logs from the old primary as well as new logs from the new primary. Follow the preparation steps in Prepare your SAP HANA databases for protection.

HANA 1+n is always discovered as cluster application containing all node details in the metadata. It is a good idea to run a force discovery after any changes to cluster node configuration—such as after adding or deleting a node from the cluster. If a node is removed or added after discovery and protection, the configuration does not be updated automatically in Backup and DR metadata, and may cause backup issues.

Prerequisites for protecting SAP HANA 1+n instances and databases

Before protecting SAP HANA instances, ensure the following:

  • If hosts have virtual IPs configured, add only the virtual IP and hostname of the host during discovery.
  • The Backup and DR agent must be installed on all nodes.
  • Ports need to be opened on the hosts to allow communication on port 5106. This requires an ingress firewall rule where the backup/recovery appliance is the source, the host running the agent is the target and the target port is 5106. Also, there is no need to add port 5106 to the default ingress rule created for the appliance, as this specifies the appliance as the target.
  • HANA log backup location must be set on shared—NFS.

Protect HANA scale-out

SAP HANA scale-out

Prerequisites for protecting SAP HANA scale-out

Before protecting SAP HANA scale-out, be sure that the following is complete:

  • If hosts have virtual IPs configured, add only the virtual IP and the associated hostname of the host during discovery.
  • The Backup and DR agent must be installed on all nodes.
  • Ports need to be opened on the hosts to allow communication on port 5106. This requires an ingress firewall rule where the backup/recovery appliance is the source, the host running the agent is the target and the target port is 5106. Also, there is no need to add port 5106 to the default ingress rule created for the appliance, as this specifies the appliance as the target.
  • For backint file based—Full+Incremental—backup, the HANA log backup location must be set to shared—NFS. See Add the host to the management console.
  • For storage snapshot protection

    • Data and log volume are non-shared across all nodes
    • Data and log volumes are logical volume manager managed
    • Ensure mnt000* directories exist on the local mount points to identify the primary and secondary nodes

    Follow the setup procedures in Prepare your SAP HANA databases for protection.

The Backup and DR Service SAP HANA DBA guide

This page is one in a series of pages specific to protecting and recovering SAP HANA databases with Backup and DR Service. You can find additional information in the following pages: