|
2 | 2 | title: Back up SAP HANA System Replication databases on Azure VMs
|
3 | 3 | description: In this article, discover how to back up SAP HANA databases with HANA System Replication enabled.
|
4 | 4 | ms.topic: how-to
|
5 |
| -ms.date: 07/11/2023 |
| 5 | +ms.date: 07/14/2023 |
6 | 6 | ms.service: backup
|
7 | 7 | ms.custom: ignite-2022
|
8 | 8 | author: AbhishekMallick-MS
|
9 | 9 | ms.author: v-abhmallick
|
10 | 10 | ---
|
11 | 11 |
|
12 |
| -# Back up SAP HANA System Replication databases on Azure VMs (preview) |
| 12 | +# Back up SAP HANA System Replication databases on Azure VMs |
13 | 13 |
|
14 | 14 | SAP HANA databases are critical workloads that require a low recovery-point objective (RPO) and long-term retention. This article describes how you can back up SAP HANA databases that are running on Azure virtual machines (VMs) to an Azure Backup Recovery Services vault by using [Azure Backup](backup-overview.md).
|
15 | 15 |
|
16 |
| -You can also switch the protection of SAP HANA database on Azure VM (standalone) on Azure Backup to HSR. [Learn more](#switch-database-protection-from-standalone-to-hsr-on-azure-backup). |
| 16 | +You can also switch the protection of SAP HANA database on Azure VM (standalone) on Azure Backup to HSR. [Learn more](#possible-scenarios-to-protect-hsr-nodes-on-azure-backup). |
17 | 17 |
|
18 | 18 | >[!Note]
|
19 | 19 | >- The support for **HSR + DR** scenario is currently not available because there is a restriction to have VM and Vault in the same region.
|
@@ -59,6 +59,8 @@ When a failover occurs, the users are replicated to the new primary, but *hdbuse
|
59 | 59 | hdbuserstore set SYSTEMKEY <load balancer host/ip>:30013@SYSTEMDB <custom-user> '<some-password>'
|
60 | 60 | ```
|
61 | 61 |
|
| 62 | + :::image type="content" source="./media/sap-hana-database-with-hana-system-replication-backup/pass-custom-backup-user-key-to-script-as-parameter-architecture.png" alt-text="Diagram explains the flow to pass the custom backup user key to the script as a parameter." lightbox="./media/sap-hana-database-with-hana-system-replication-backup/pass-custom-backup-user-key-to-script-as-parameter-architecture.png"::: |
| 63 | + |
62 | 64 | >[!Note]
|
63 | 65 | >You can create a custom backup key using the load balancer host/IP instead of local host to use Virtual IP (VIP).
|
64 | 66 |
|
@@ -230,29 +232,45 @@ Backups run in accordance with the policy schedule. Learn how to [run an on-dema
|
230 | 232 |
|
231 | 233 | You can run an on-demand backup using SAP HANA native clients to local file-system instead of Backint. Learn more how to [manage operations using SAP native clients](sap-hana-database-manage.md#manage-operations-using-sap-hana-native-clients).
|
232 | 234 |
|
233 |
| -## Switch database protection from standalone to HSR on Azure Backup |
| 235 | + |
| 236 | +## Possible scenarios to protect HSR nodes on Azure Backup |
234 | 237 |
|
235 | 238 | You can now switch the protection of SAP HANA database on Azure VM (standalone) on Azure Backup to HSR. If you’ve already configured HSR and protecting only the primary node using Azure Backup, you can modify the configuration to protect both primary and secondary nodes.
|
236 | 239 |
|
237 |
| -Follow these steps: |
| 240 | +### Two standalone/HSR nodes never protected using SAP HANA Database backup on Azure VM |
| 241 | + |
| 242 | +1. (Mandatory) [Run the latest preregistration script on both primary and secondary VM nodes](#run-the-preregistration-script). |
238 | 243 |
|
239 |
| -1. On standalone VM, Primary node, or Secondary node (once protected using Azure Backup), go to *vault* > **Backup Items** > **SAP HANA in Azure VM** > **View Details** > **Stop backup**, and then select **Retain backup data** > **Stop backup** to stop backup and retain data. |
| 244 | + >[!Note] |
| 245 | + >HSR-based attributes are added to the latest preregistration script - //link here ) |
| 246 | +
|
| 247 | +1. Configure HSR manually or using any clustering tools, such as **pacemaker**, |
240 | 248 |
|
241 |
| -2. (Mandatory) [Run the latest preregistration script](sap-hana-database-with-hana-system-replication-backup.md#run-the-preregistration-script) on both primary and condary VM nodes |
| 249 | + Skip to the next step if HSR configuration is already complete. |
242 | 250 |
|
243 |
| - The preregistration script contains the HSR attributes. |
| 251 | +1. Discover and configure backup for those VMs. |
244 | 252 |
|
245 |
| -3. [Configure HSR manually](sap-hana-database-with-hana-system-replication-backup.md#configure-backup). |
246 |
| -You can also configure the backup with clustering tools, such as **Pacemaker**. |
| 253 | + >[!Note] |
| 254 | + >For HSR deployments, Protected Instance cost is charged to HSR logical container (two nodes - primary and secondary) will form a single HSR logical container. |
| 255 | +
|
| 256 | +1. Before a planned failover, [ensure that both VMs/Nodes are registered to the vault (physical and logical registration)](sap-hana-database-manage.md#verify-the-registration-status-of-vms-or-nodes-to-the-vault). |
| 257 | + |
| 258 | +### Two standalone VMs/ One standalone VM already protected using SAP HANA Database backup on Azure VM |
| 259 | + |
| 260 | +1. To stop backup and retain data, go to the *vault* > **Backup Items** > **SAP HANA in Azure VM**, and then select **View Details** > **Stop backup** > **Retain backup data** > **Stop backup**. |
| 261 | +1. (Mandatory) [Run the latest preregistration script on both primary and secondary VM nodes](#run-the-preregistration-script). |
| 262 | + |
| 263 | + >[!Note] |
| 264 | + >HSR-based attributes are added to the latest preregistration script - //link here ) |
247 | 265 |
|
248 |
| - Skip this step if HSR configuration is complete. |
| 266 | +1. Configure HSR manually or using any clustering tools like pacemaker. |
249 | 267 |
|
250 |
| -4. Add the Primary and secondary nodes to Azure Backup, [rediscover the databases](sap-hana-database-with-hana-system-replication-backup.md#discover-the-databases), and [resume protection](sap-hana-database-manage.md#resume-protection-for-an-sap-hana-database-or-hana-instance). |
| 268 | +1. Discover the VMs and configure backup on HSR logical instance. |
251 | 269 |
|
252 | 270 | >[!Note]
|
253 |
| - >For HSR deployments, Protected Instance cost is charged to HSR container. Two nodes (primary and secondary) will form a single HSR logical container and storage cost is charged as applicable. |
| 271 | + >For HSR deployments, Protected Instance cost will be charged to HSR logical container (two nodes - primary and / secondary) will form a single HSR logical container. |
254 | 272 |
|
255 |
| -5. Before a planned failover, [ensure that both VMs/Nodes are registered to the vault (physical and logical registration)](sap-hana-database-manage.md#verify-the-registration-status-of-vms-or-nodes-to-the-vault). |
| 273 | +1. Before a planned failover, [ensure that both VMs/Nodes are registered to the vault (physical and logical registration)](sap-hana-database-manage.md#verify-the-registration-status-of-vms-or-nodes-to-the-vault). |
256 | 274 |
|
257 | 275 | ## Next steps
|
258 | 276 |
|
|
0 commit comments