Compute Engine bare metal instances let you run multi-terabyte SAP HANA workloads. Consequently, for such large workloads, specific settings and approaches are required to optimize their backup and recovery operations.
This document is meant for SAP Basis administrators who want to optimize SAP HANA systems running on bare metal instances. For information about SAP HANA backup and recovery that is not specific deployments on bare metal instances, see Backup and recovery.
For information about the Compute Engine bare metal instances that are certified by SAP for use with SAP HANA, see Bare metal machine types for SAP HANA.
Recommended backup strategy
The following table describes the backup strategy that Google Cloud recommends for SAP HANA systems running on C3 and X4 bare metal instances. To avoid resource contention, create backups during periods of lower processing activity.
Frequency | Activity |
---|---|
Weekly, at least once | Create a full system backup. You can do this by using the Backint feature of Google Cloud's Agent for SAP. |
Daily, at least once | Create a snapshot based backup of the SAP HANA data volume. You can do this by using the disk snapshot feature of Google Cloud's Agent for SAP. |
Every alternate day, at least once | Create a delta backup of the SAP HANA data volume. |
Every 15 minutes or less, depending on your database's configuration for log backup interval, or when the SAP HANA log segment becomes full | Create an SAP HANA log backup. You can do this by using the Backint feature of Google Cloud's Agent for SAP. |
At least once during a backup retention cycle | Do the following:
|
This backup strategy is based on the following considerations:
- A standard disk snapshot provides an incremental block device point-in-time data copy. This mechanism enables a significantly faster and more resource-efficient method to transfer large amounts of data from SAP HANA's primary block storage to a secondary, durable location such as Cloud Storage. This is required for a robust disaster recovery strategy.
- Because disk snapshot based backups don't perform a logical integrity check on the page or block level, any inconsistency or corruption in your SAP HANA data volume gets copied to its disk snapshot. This is where a full system backup becomes necessary. A Backint based, weekly, full-system backup provides an implicit consistency check and a verified way to recover your SAP HANA database in case there is a logical corruption in the snapshot of your SAP HANA data volume.
- To recover your database to a specific point in time, which lets you meet your RPO objectives, you can combine Backint based SAP HANA log volume backups with either disk snapshot backups or Backint based full database backups.
Limitations
There are some limitations that apply to disk snapshot based backup and recovery when using Google Cloud's Agent for SAP. For information about these limitations, see Limitations.
Customizations
To suit the RTO or RPO objectives of your organization, you can customize the recommended backup strategy given in this document by creating additional Backint or disk snapshot based backups.
For information about how to use Google Cloud's Agent for SAP to create these backups, see the following:
- Backup and recovery for SAP HANA by using Backint
- Backup and recovery for SAP HANA by using disk snapshots
Best practices
The following are the backup and recovery best practices that Google Cloud recommends for SAP HANA systems running on bare metal instances:
Backint configuration: To achieve maximum performance during Backint based backup and recovery operations, you must perform the following configurations:
For log backups, we recommend that you create a separate Backint configuration file and specify its path to the
log_backup_parameter_file
parameter in your SAP HANAglobal.ini
file. And then in the Backint configuration file, set the following parameter values:Parameter Value parallel_streams
32 xml_multipart_upload
true
rate_limit_mb
2500 For data backups, we recommend that you set the following parameter values in your SAP HANA
global.ini
file:Parameter Value parallel_data_backup_backint_channels
32
Consistency and integrity checks: To make sure that your backups are usable for recovering your database from any future disaster, you need to perform periodic consistency and integrity checks on your backups. The method you use to perform these checks depends on the method you use to create your backups.
For Backint based backups, consistency check is performed during backup creation.
To check the integrity Backint based backups, you can use the
hdbbackupcheck
tool. This tool automatically performs integrity checks while your data and log backups are being created. If the integrity check is successful, then the backup file is written to the backup destination, such as Cloud Storage.To check the consistency of disk snapshot based backups, you can use the
hdbpersdiag
tool. For information about best practices related to disk snapshot based backup and recovery, see Best practices.For information about how to validate snapshot consistency by using Google Cloud's Agent for SAP, see Validate snapshot consistency.
While this method of performing consistency checks involves considerable time and manual effort, it's required because snapshot based backups are not automatically checked for their consistency during backup creation, unlike Backint based backups.
Backup recoverability checks: To make sure that you can meet your RPO objectives, you need to make sure that your backups are available and usable. For this, you can use SAP's
hdbbackupdiak
tool.Backup catalog housekeeping: To avoid issues that you might experience because of a large number of entries and data in the SAP HANA backup catalog, you must maintain your backup catalog and backup storage. For more information, see the SAP document Housekeeping for Backup Catalog and Backup Storage.
Deleting the entry of a storage snapshot from the SAP HANA backup catalog does not delete the disk snapshot stored in Google Cloud. For information about how to delete a disk snapshot, see Delete a snapshot.
Database encryption: SAP HANA lets you encrypt the data volume, log volume, and database backups. Enabling encryption on the data volume and database backups can have a negative impact on the performance of both backup and recovery operations. Make sure to take this impact into consideration when you're defining your RTO requirements, or your backup strategy.
While Google Cloud also provides options to encrypt the disks and disk snapshots related to your SAP HANA system, their impact on the performance of backup and recovery operations is minimal.
Backup encryption: Backint and disk snapshot based backups are encrypted at rest by default. However, to make them more secure, you can explore additional options. For information about these options, including their impact on database performance, see the following:
- For Backint based backups, see Encryption options for backups.
- For disk snapshot based backups, see Encrypt disk snapshots.
Long term retention: To retain backups for longer periods, see the following:
For Backint based backups that are stored in Cloud Storage, you can define long-term retention by setting a retention policy on the Cloud Storage bucket. The retention policy defines how long the objects in the bucket are to be retained. For information about how to configure a bucket's retention policy, see Bucket lock.
Disk snapshot based backups are retained by default. You need to create your own retention policy and delete them manually once you don't require them. Deleting an older snapshot doesn't invalidate a more recent snapshot. For more information, see Snapshot deletion. For information about how to delete a snapshot, or how to delete multiple snapshots based on a filter, see Manage disk snapshots.