Support for SAP HANA System Replication
Veeam Plug-In for SAP HANA operating in the standalone mode supports backup and restore of SAP HANA databases that operate as parts of SAP HANA System Replication. For more information about SAP HANA System Replication, see SAP documentation.
Backup of SAP HANA System Replication
To back up databases that operate as parts of SAP HANA System Replication, do the following:
- Install and configure Veeam Plug-In on each machine participating in SAP HANA System Replication. For details, see Installing Veeam Plug-In for SAP HANA and Configuring Plug-In for SAP HANA.
- In the Veeam Plug-In configuration files stored on the machines, assign the same custom name to each machine.
To assign a custom name to the machine, do the following:
- On the machine with Veeam Plug-In, open the /opt/veeam/VeeamPluginforSAPHANA/veeam_config.xml file.
- Add the customServerName parameter entry to the <PluginParameters /> line in the file:
<PluginParameters customServerName="<name>" /> |
where <name> is a custom name for the group of the machines that participate in SAP HANA System Replication.
For example:
<PluginParameters customServerName="cluster001" /> |
After you add this parameter on each machine, Veeam Plug-In will use the specified custom name for the whole group of machines.
- Back up databases on the machines in SAP HANA System Replication considering the following requirements:
- All machines must use the same Veeam backup repository.
- All machines must authenticate against Veeam Backup & Replication using the same credentials.
For details, see Database Protection.
After these steps, in case you switch your active system from the current primary system to the secondary system, backup chains will continue seamlessly using existing backup files.
Note |
Although you do not need to perform a full database backup after you switch the system, we recommend to perform it. |
Restore after Failover of SAP HANA System Replication
The restore after failover differs depending on the way you configured Veeam Plug-Ins on machines that participate in SAP HANA System Replication:
- If you performed steps listed in Backup of SAP HANA System Replication, you can restore database in the usual way. For details, see Database Recovery.
- If you have not performed those steps, you must perform extra steps to prepare for the restore. The reason is that SAP HANA does not allow you to back up databases located on replicas. You can back up these databases only after a failover. To prepare the replication target system for backups after the failover, you can configure Veeam Plug-In as usual for a new scale-up or scale-out system. In this case, the Veeam backup job is created at first backup run and reflects the hostname of each system.
Important |
You must perform full database backup at least once after each failover or failback, so that SAP HANA starts to create automatic log backups. |
The restore after failover:
- On the machine with Veeam Plug-In, run the Veeam Plug-In configuration tool with the following parameter:
SapBackintConfigTool --set-backup-for-restore |
- Perform restore. For details, see Database Recovery.
- [Optional] If you want to restore from the new backup chain created from the system replication server, you must re-run the command again and select the system replication server as a source for restore.