You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Troubleshooting errors while backing up SAP HANA databases using Azure Backup | Microsoft Docs
3
+
description: This guide explains how to troubleshoot common errors while trying to backup SAP HANA databases using Azure Backup.
4
+
services: backup
5
+
author: pvrk
6
+
manager: vijayts
7
+
ms.service: backup
8
+
ms.topic: conceptual
9
+
ms.date: 06/28/2019
10
+
ms.author: pullabhk
11
+
---
12
+
13
+
# Troubleshoot back up of SAP HANA Server on Azure
14
+
15
+
This article provides troubleshooting information for protecting SAP HANA databases on Azure Virtual Machines. Before proceeding to troubleshooting, let's understand few key points about permissions and settings.
16
+
17
+
## Understanding pre-requisites
18
+
19
+
As part of [pre-requisites](backup-azure-sap-hana-database.md#prerequisites), the pre-registration script should be run on the virtual machine where HANA is installed to set up the right permissions.
20
+
21
+
### Setting up permissions
22
+
23
+
What does the pre-registration script do:
24
+
25
+
1. Creates of AZUREWLBACKUPHANAUSER in HANA System and adds required Roles and Permissions as listed below
26
+
- DATABASE ADMIN - To create new DBs during restore
27
+
- CATALOG READ – To read the backup catalog
28
+
- SAP_INTERNAL_HANA_SUPPORT – To access few private tables
29
+
2. Adding key to Hdbuserstore for HANA plugin to do all operations (inquiry of database, configuring backup, doing backup, doing restore)
30
+
- If you run the HDBSQL command within the HANA machine,
31
+
32
+
```hdbsql
33
+
‘hdbuserstore list’
34
+
```
35
+
36
+
it should display the key {SID}{DBNAME} with the user as ‘AZUREWLBACKUPHANAUSER’
37
+
38
+
> [!NOTE]
39
+
> Make sure you have a unique set of SSFS files under the path “/usr/sap/<SID>/home/.hdb/”. There should be only one folder under this path.
40
+
41
+
### Setting up BackInt parameters
42
+
43
+
Once a database is chosen for backup, the Azure Backup service will configure backInt parameters at DATABASE level.
44
+
45
+
- [catalog_backup_using_backint:true]
46
+
- [enable_accumulated_catalog_backup:false]
47
+
- [parallel_data_backup_backint_channels:1]
48
+
- [log_backup_timeout_s:900)]
49
+
- [backint_response_timeout:7200]
50
+
51
+
> [!NOTE]
52
+
> Make sure these parameters are NOT present at HOST level. Host level parameters will override these parameters and may cause different behavior than expected.
53
+
54
+
'Stop protection with retain data' and then 'resume backup' once more will reset the parameters to the right values.
55
+
56
+
## Understanding common user errors
57
+
58
+
### UserErrorInOpeningHanaOdbcConnection
59
+
60
+
| Error message | Possible causes | Recommended action |
61
+
|---|---|---|
62
+
| Failed to connect to HANA system.check your system is up and running.| Azure Backup service is not able to connect to HANA because HANA DB is down. Or HANA is running but not allowing Azure Backup service to connect | Check if the HANA DB/service is down. If HANA DB/service is up and running, check if all permissions are set up as mentioned [here](#setting-up-permissions). If the key is missing, rerun the pre-registration script to create a new key. |
63
+
64
+
### UserErrorInvalidBackintConfiguration
65
+
66
+
| Error message | Possible causes | Recommended action |
67
+
|---|---|---|
68
+
| Detected Invalid Backint Configuration. Stop protection and reconfigure the database.| The backInt parameters are incorrectly specified for Azure Backup. | Check the parameters are as mentioned [here](#setting-up-backint-parameters). If backInt based parameters are present in HOST, then remove them. If parameters are not present at HOST but have been manually modified at a database level, then revert them to the appropriate values as mentioned above. Or 'stop protection with retain data' from Azure portal and 'resume backup' once again.|
Copy file name to clipboardExpand all lines: articles/backup/backup-azure-sap-hana-database.md
+13-17Lines changed: 13 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,13 @@ ms.author: raynew
18
18
> [!NOTE]
19
19
> This feature is currently in public preview. It's not currently production ready, and doesn't have a guaranteed SLA.
20
20
21
-
22
21
## Scenario support
23
22
24
23
**Support** | **Details**
25
24
--- | ---
26
25
**Supported geos** | Australia South East, East Australia <br> Brazil South <br> Canada Central, Canada East <br> South East Asia, East Asia <br> East US, East US 2, West Central US, West US, West US 2, North Central US, Central US, South Central US<br> India Central, India South <br> Japan East, Japan West<br> Korea Central, Korea South <br> North Europe, West Europe <br> UK South, UK West
27
26
**Supported VM operating systems** | SLES 12 with SP2 or SP3.
28
-
**Supported HANA versions** | SSDC on HANA 1.x, MDC on HANA 2.x <= SPS03
29
-
27
+
**Supported HANA versions** | SDC on HANA 1.x, MDC on HANA 2.x <= SPS03
30
28
31
29
### Current limitations
32
30
@@ -35,12 +33,9 @@ ms.author: raynew
35
33
- You can only back up databases in Scale-Up mode.
36
34
- You can back up database logs every 15 minutes. Log backups only begin to flow after a successful full backup for the database has completed.
37
35
- You can take full and differential backups. Incremental backup isn't currently supported.
38
-
- You can't modify the backup policy after you apply it for SAP HANA backups. If you want to back up with different settings, create a new policy, or assign a different policy.
39
-
- To create a new policy, in the vault click **Policies** > **Backup Policies** > **+Add** > **SAP HANA in Azure VM**, and specify policy settings.
40
-
- To assign a different policy, in the properties of the VM running the database, click the current policy name. Then on the **Backup Policy** page you can select a different policy to use for the backup.
41
-
42
-
43
-
36
+
- You can't modify the backup policy after you apply it for SAP HANA backups. If you want to back up with different settings, create a new policy, or assign a different policy.
37
+
- To create a new policy, in the vault click **Policies** > **Backup Policies** > **+Add** > **SAP HANA in Azure VM**, and specify policy settings.
38
+
- To assign a different policy, in the properties of the VM running the database, click the current policy name. Then on the **Backup Policy** page you can select a different policy to use for the backup.
44
39
45
40
## Prerequisites
46
41
@@ -53,14 +48,16 @@ Make sure you do the following before you configure backups:
2.On the VM, install and enable ODBC driver packages from the official SLES package/media using zypper, as follows:
51
+
2.On the VM, install and enable ODBC driver packages from the official SLES package/media using zypper, as follows:
57
52
58
-
```
53
+
```unix
59
54
sudo zypper update
60
55
sudo zypper install unixODBC
61
56
```
62
-
4. Allow connectivity from the VM to the internet, so that it can reach Azure, as described in procedure below.
63
57
58
+
3. Allow connectivity from the VM to the internet, so that it can reach Azure, as described in procedure [below](#set-up-network-connectivity).
59
+
60
+
4. Run the pre-registration script in the virtual machine where HANA is installed as a root user. The script is provided [in the portal](#discover-the-databases) in the flow and is required to set up the [right permissions](backup-azure-sap-hana-database-troubleshoot.md#setting-up-permissions).
64
61
65
62
### Set up network connectivity
66
63
@@ -76,7 +73,7 @@ Onboard to the public preview as follows:
76
73
- In the portal, register your subscription ID to the Recovery Services service provider by [following this article](https://docs.microsoft.com/azure/azure-resource-manager/resource-manager-register-provider-errors#solution-3---azure-portal).
77
74
- For PowerShell, run this cmdlet. It should complete as "Registered".
@@ -86,7 +83,6 @@ Onboard to the public preview as follows:
86
83
87
84
## Discover the databases
88
85
89
-
90
86
1. In the vault, in **Getting Started**, click **Backup**. In **Where is your workload running?**, select **SAP HANA in Azure VM**.
91
87
2. Click **Start Discovery**. This initiates discovery of unprotected Linux VMs in the vault region.
92
88
@@ -100,7 +96,7 @@ Onboard to the public preview as follows:
100
96
6. Azure Backup discovers all SAP HANA databases on the VM. During discovery, Azure Backup registers the VM with the vault, and installs an extension on the VM. No agent is installed on the database.
101
97
102
98

103
-
99
+
104
100
## Configure backup
105
101
106
102
Now enable backup.
@@ -112,6 +108,7 @@ Now enable backup.
112
108
5. Track the backup configuration progress in the **Notifications** area of the portal.
113
109
114
110
### Create a backup policy
111
+
115
112
A backup policy defines when backups are taken, and how long they're retained.
116
113
117
114
- A policy is created at the vault level.
@@ -185,6 +182,5 @@ If you want to take a local backup (using HANA Studio) of a database that's bein
185
182
186
183
## Next steps
187
184
185
+
[Learn about](backup-azure-sap-hana-database-troubleshoot.md) how to troubleshoot common errors while using SAP HANA backup in Azure VMs.
188
186
[Learn about](backup-azure-arm-vms-prepare.md) backing up Azure VMs.
0 commit comments