Skip to content

Commit 358cdd9

Browse files
Merge pull request #81037 from pvrk/June2019
Created TShoot guide for HANA backups
2 parents 3c09690 + 7527f94 commit 358cdd9

File tree

3 files changed

+83
-17
lines changed

3 files changed

+83
-17
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
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.|

articles/backup/backup-azure-sap-hana-database.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ ms.author: raynew
1818
> [!NOTE]
1919
> This feature is currently in public preview. It's not currently production ready, and doesn't have a guaranteed SLA.
2020
21-
2221
## Scenario support
2322

2423
**Support** | **Details**
2524
--- | ---
2625
**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
2726
**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
3028

3129
### Current limitations
3230

@@ -35,12 +33,9 @@ ms.author: raynew
3533
- You can only back up databases in Scale-Up mode.
3634
- 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.
3735
- 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.
4439

4540
## Prerequisites
4641

@@ -53,14 +48,16 @@ Make sure you do the following before you configure backups:
5348

5449
![Package installation option](./media/backup-azure-sap-hana-database/hana-package.png)
5550

56-
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:
5752

58-
```
53+
```unix
5954
sudo zypper update
6055
sudo zypper install unixODBC
6156
```
62-
4. Allow connectivity from the VM to the internet, so that it can reach Azure, as described in procedure below.
6357
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).
6461
6562
### Set up network connectivity
6663
@@ -76,7 +73,7 @@ Onboard to the public preview as follows:
7673
- 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).
7774
- For PowerShell, run this cmdlet. It should complete as "Registered".
7875
79-
```
76+
```powershell
8077
PS C:> Register-AzProviderFeature -FeatureName "HanaBackup" –ProviderNamespace Microsoft.RecoveryServices
8178
```
8279
@@ -86,7 +83,6 @@ Onboard to the public preview as follows:
8683
8784
## Discover the databases
8885
89-
9086
1. In the vault, in **Getting Started**, click **Backup**. In **Where is your workload running?**, select **SAP HANA in Azure VM**.
9187
2. Click **Start Discovery**. This initiates discovery of unprotected Linux VMs in the vault region.
9288
@@ -100,7 +96,7 @@ Onboard to the public preview as follows:
10096
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.
10197
10298
![Discover SAP HANA databases](./media/backup-azure-sap-hana-database/hana-discover.png)
103-
99+
104100
## Configure backup
105101
106102
Now enable backup.
@@ -112,6 +108,7 @@ Now enable backup.
112108
5. Track the backup configuration progress in the **Notifications** area of the portal.
113109
114110
### Create a backup policy
111+
115112
A backup policy defines when backups are taken, and how long they're retained.
116113
117114
- 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
185182
186183
## Next steps
187184
185+
[Learn about](backup-azure-sap-hana-database-troubleshoot.md) how to troubleshoot common errors while using SAP HANA backup in Azure VMs.
188186
[Learn about](backup-azure-arm-vms-prepare.md) backing up Azure VMs.
189-
190-

articles/backup/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@
252252
href: troubleshoot-azure-files.md
253253
- name: SQL Server
254254
href: backup-sql-server-azure-troubleshoot.md
255+
- name: SAP HANA backup in Azure VMs
256+
href: backup-azure-sap-hana-database-troubleshoot.md
255257
- name: System State
256258
href: backup-azure-system-state-troubleshoot.md
257259
- name: Monitor Azure Backup workloads

0 commit comments

Comments
 (0)