Creating Data Snapshots with SAP HANA Studio
In order to create application consistent storage snapshots for SAP HANA databases it is important to note that this operation requires the database instance, operating system, and storage system to all be synchronized during execution. SAP HANA using the naming convention "Data Snapshot" for application consistent storage snapshots.
Application consistent snapshots can be manually performed using SAP HANA Studio, a secure shell terminal (SSH) signed in with a user who has read/write and execute permissions to the SAP HANA data volume and the Pure Storage FlashArray web user interface. The process can also be automated using programmatic logic interfacing with HANA database SQL, secure shell bash commands, and Pure Storage Flash Arrays REST API or the associated software development kit (SDK).
The process for creating application consistent snapshots differs for systems deployed with multiple database containers (a system with a single tenant is still deployed as MDC), single containers, single host (scale up) and distributed host (scale out) systems.
Data snapshots are only supported by SAP from the SAP HANA 2.0 SPS04 release and onwards for systems with multiple tenants.
SAP HANA Scale Up / Single Node deployment
Step 1. Verify the system type
Using SAP HANA Studio connected to the system deployed with the SAP HANA Instance, navigate towards the configuration page.
SAP HANA Studio, Configuration Page. |
![]() |
Expand global.ini and then further expand the multidb section. Look for the key mode and observe its value. If this value is “singledb” then the system is a single container and if the value is “multidb” the system is then set to be a multiple container system.
In SAP HANA Studio the global.ini file is expanded. |
![]() |
In SAP HANA Studio the multidb section under global.ini shows the system properties. |
![]() |
Step 2. Connect to the correct database instance for the creation and management of storage snapshots
If the system is a single database container then ensure that under mode the Single container is selected, for a multiple container system ensures that Multiple containers is selected, and when available ensure that System database is the selected target to connect to. It is important to note that selecting Single container and the mode to connect to will still connect to the single tenant container.
Using SAP HANA Studio connect to a single container system. | Using SAP HANA Studio connect to the System dataset on a system with multiple containers |
![]() |
![]() |
Connected to a single container system. | Connected to a multiple container system. |
![]() |
![]() |
Step 3. Prepare the system for a storage snapshot
This can be done from the backup console or using the side menu by right-clicking on the Backup system folder and selecting Manage Storage Snapshot….
In SAP HANA Studio right click on the “Backup” system folder and select “Manage Storage Snapshot…”. |
![]() |
In SAP HANA Studio and the backup console, select the camera next to “Status of Currently Active Data Backup”. |
![]() |
Select Prepare and add a comment if needed, then press the OK button. |
![]() |
Once the database snapshot is ready then the below will show in the backup console. |
![]() |
Step 4. Retrieve the SAP HANA prepared storage backup ID using the SQL console in SAP HANA Studio
Use the SQL console for the database instance the prepared snapshot has been created for and run the query:
“SELECT BACKUP_ID, COMMENT FROM M_BACKUP_CATALOG WHERE ENTRY_TYPE_NAME = 'data snapshot' AND STATE_NAME = 'prepared'”
This will return the backup ID for the prepared snapshot, which is used in the FlashArray block device snapshot creation as a suffix to link the SAP HANA storage snapshot ID to the Volume snapshot.
In SAP HANA Studio right click on the instance and select “Open SQL Console”. |
![]() |
In SAP HANA Studio execute the query to return the Backup_ID of the prepared database snapshot. |
SELECT BACKUP_ID, COMMENT FROM M_BACKUP_CATALOG WHERE ENTRY_TYPE_NAME = 'data snapshot' AND STATE_NAME = 'prepared'
The Backup ID is returned with any comments added to the entry, take note of the Backup_ID. |
![]() |
Step 5. (Optional)Freeze the filesystem for the SAP HANA data persistence mount point
Open a terminal (SSH or local to the system) and ensure the prompt is logged in as a user who has read, write and execute permissions on the SAP HANA data persistence mount point. The data persistence mount point can be identified by inspecting the global.ini persistence section for “basepath_datavolumes”. Take the value offered by the global.ini file and remove the database name from the path to only get the base path mount point (this assumes that the SAP HANA systems has been setup with a mount point and single volume each for log and data). We will then use the “fsfreeze” Linux utility to halt any IO to the volume and ensure consistency.
In SAP HANA Studio the persistence section under global.ini shows the system properties. find the "basepath_datavolumes" value. This is the filesystem location of the instances' data volume. |
![]() |
Freeze the filesystem of the data persistence mount point using the fsfreeze utility. |
![]() |
Step 6. Take a snapshot of the block device on FlashArray
This step is shown using the web-based graphical user interface to operate the FlashArray storage device. It is assumed the user can identify the block volume which matches the SAP HANA persistence data volume. In the user interface navigate to Storage, select the Volumes tab. Select the volume which corresponds to the SAP HANA persistence data volume under Volume Snapshots.
Pure Storage Flash Array Web Graphical User interface – Main page. |
![]() |
Select Storage and navigate to the “Volumes” section to view all volumes and snapshots. |
![]() |
Select the volume which matches the SAP HANA Data persistence volume and select the “+” next to Volume Snapshots. |
![]() |
Create the snapshot with the suffix “SAPHANA-<Backup_ID from SAP HANA prepared snapshot>. |
![]() |
The snapshot is created and listed under the Volume snapshots. |
![]() |
Step 7. (Optional) Unfreeze the filesystem for the SAP HANA data persistence mount point
Open a terminal (SSH or local to the system) and ensure the prompt is logged in as a user who has read, write, and execute permissions on the SAP HANA data persistence mount point. The data persistence mount point can be identified by inspecting the global.ini persistence section for “basepath_datavolumes”. Take the value offered by the global.ini file and remove the database name from the path to only get the base path mount point (this assumes that the SAP HANA systems have been set up with a mount point and single volume each for log and data). We will then use the “fsfreeze” Linux utility to resume IO to the volume and allow the database to continue operation.
Unfreeze the filesystem of the data persistence mount point using the fsfreeze utility. |
![]() |
Step 8. Confirm or Abandon the data snapshot
Confirm or abandon the snapshot in SAP HANA studio, allowing the backup to be marked as valid or invalid. If something has not operated as expected then the snapshot should be abandoned. To confirm the snapshot an External Backup ID must be supplied, the Backup_ID originally offered by the prepared snapshot and used as a suffix for the Block volume storage snapshotr is used for the value.
Confirm the Snapshot and supply the External Backup ID (Use the volume snapshot serial number), and press OK. |
![]() |
The backup now shows in the backup catalogue as complete. |
![]() |
SAP HANA Scale Out/Multi-Node deployment
Step 1. Verify the System Type
Using SAP HANA Studio connected to any one of the systems deployed with the SAP HANA Instance, navigate towards the configuration page.
SAP HANA Studio, Configuration Page. |
![]() |
Expand the global.ini filename and then further expand the multidb section. Look for the key mode and observe its value. If this value is “singledb” then the system is a single container and if the value is “multidb” the system is then set to be a multiple container system.
In SAP HANA Studio the global.ini file is expanded. |
![]() |
In SAP HANA Studio the multidb section under global.ini shows the system properties. |
![]() |
Step 1a. If Database is "multidb" Find the Host on which the SYSTEMDB is Running
To identify the host which the SYSTEMDB is running on the nameserver and other non-persistent services needs to be identified. As per the SAP Knowledgebase article (201244) the most notable differences between the list of services running on the SYSTEM DB and tenant database are the nameserver and other non-persistent services are available on the SYSTEMDB. The SYSTEMDB will only ever exist on a single host in a scale out/distributed system environment and cannot be distributed across multiple hosts.
To investigate the services on each system in a scale out/distributed environment the landscape view and services tab is inspected to provide the required information.
The host on which the “nameserver” service and “master” detail are shown, is the system on which the SYSTEMDB is running.
In SAP HANA Studio, under Landscape for the deployment, the SYSTEMDB is running on SHN3 |
![]() |
Step 1b. Identify which Host each Storage Device is Mounted to at that Point in Time
The volumes and services used can be identified by selecting the volumes view and viewing the information for the “indexserver” service where “Data Volume Size” has a value. Each data persistence mount point for the scale out/distributed environment will typically be in the form “{BASE_PATH}/Data/<Database Name>/mntXXXXX” but this can vary between each deployment.
In SAP HANA Studio the relevant volumes can be identified under the “Volumes” view. In this case the mount points and hosts they are attached to are: SHN1: /hana/data/SH1/mnt00002 SHN2: /hana/data/SH1/mnt00003 SHN3: /hana/data/SH1/mnt00001 |
![]() |
Step 2. Connect to the Correct Database Instance for the Creation and Management of Storage Snapshots
If the system is a single database container then, ensure that under mode the Single container selection is selected. For a multiple container system, confirm that Multiple containers is selected, and when available ensure that System database is the selected target to connect to. It is important to note that selecting Single container and the mode to connect to will still connect to the single tenant container.
Using SAP HANA Studio connect to a single container system. | Using SAP HANA Studio, connect to the System dataset on a system with multiple containers. |
![]() |
![]() |
Connected to a single container system. | Connected to a multiple container system. |
![]() |
![]() |
Step 3. Prepare the System for a Storage Snapshot
This can be done from the backup console or using the side menu by right-clicking on the Backup system folder and selecting Manage Storage Snapshot….
In SAP HANA Studio right click on the “Backup” system folder and select “Manage Storage Snapshot…”. |
![]() |
In SAP HANA Studio and the backup console, select the camera next to “Status of Currently Active Data Backup”. |
![]() |
Select Prepare and add a comment if needed, then press the OK button. |
![]() |
Once the database snapshot is ready then the below will show in the backup console. |
![]() |
Step 4. Retrieve the SAP HANA Prepared Storage Backup ID Using the SQL Console in SAP HANA Studio
Use the SQL console for the database instance the prepared snapshot has been created for and run the query:
SELECT BACKUP_ID, COMMENT FROM M_BACKUP_CATALOG WHERE ENTRY_TYPE_NAME = 'data snapshot' AND STATE_NAME = 'prepared'
This will return the backup ID for the prepared snapshot, which is used in the FlashArray block device snapshot creation as a suffix to link the SAP HANA storage snapshot ID to the Volume snapshot.
In SAP HANA Studio right click on the instance and select “Open SQL Console”. |
![]() |
In SAP HANA Studio execute the query to return the Backup_ID of the prepared database snapshot. |
SELECT BACKUP_ID, COMMENT FROM M_BACKUP_CATALOG WHERE ENTRY_TYPE_NAME = 'data snapshot' AND STATE_NAME = 'prepared'
The Backup ID is returned with any comments added to the entry, take note of the Backup_ID. |
![]() |
Step 5. (Optional) Freeze the filesystem for the SAP HANA Data Persistence Mount Points on Each Host
Use the data volume mount points from Step 1b in this step.
Open a terminal (SSH or local to the system) and ensure the prompt is logged in as a user who has read, write, and execute permissions on the SAP HANA data persistence mount point. The data persistence mount points and each host they are attached to were identified in step 1b. The “fsfreeze” Linux utility will be used to halt any IO to the volume and ensure consistency.
Freeze the filesystem of each data persistence mount point using the fsfreeze utility. |
|
Step 6. Take a Snapshot of each Block Storage Device on FlashArray
This step is shown using the web-based graphical user interface to operate the FlashArray storage device. It is assumed the user can identify the block volume which matches each SAP HANA persistence data volume. In the user interface navigate to the “Storage” section, select “Volumes”. Select the volume which corresponds to each SAP HANA persistence data volume. Under “Volume Snapshots”.
Pure Storage Flash Array Web Graphical User interface – Main page. |
![]() |
Select Storage and navigate to the “Volumes” section to view all volumes and snapshots. |
![]() |
Select the volume which matches the SAP HANA Data persistence volume and select the “+” next to Volume Snapshots. |
![]() |
Create the snapshot with the suffix “SAPHANA-<Backup_ID from SAP HANA prepared snapshot>-Host-<Host>-Path-<mounted Path At time of Snapshot>. |
![]() |
The snapshot is created and listed under the Volume snapshots. |
![]() |
Step 7. (Optional) Unfreeze the filesystem for each SAP HANA Data Persistence Mount Point
Open a terminal (SSH or local to the system) and ensure the prompt is logged in as a user who has read, write, and execute permissions on each SAP HANA data persistence mount point. We will then use the “fsfreeze” Linux utility to resume IO to the volume and allow the database to continue operation.
Unfreeze the filesystem of each data persistence mount point using the fsfreeze utility. |
|
Step 8. Confirm or Abandon the Data Snapshot
Confirm or abandon the snapshot in SAP HANA studio , allowing the backup to be marked as valid or invalid. If something has not operated as expected then the snapshot should be abandoned. To confirm the snapshot an External Backup ID must be supplied, the Backup_ID originally offered by the prepared snapshot and used as a suffix for the Block volume storage snapshot is used for the value.
Confirm the Snapshot and supply the External Backup ID, and press OK. |
![]() |
The backup now shows in the backup catalog as complete. |
![]() |