Restoring a SAP HANA database "from the OS level" means using the operating system's file, user, and process management to recover an instance or its data—not the SAP HANA Studio, Cockpit, or SQL recovery commands. The most important distinction is this: for a tenant or system database that still has a working HANA installation, you should restore with HANA's own tools (RECOVER DATABASE in hdbsql, HANA Studio, or hdbnsutil for name server and system replication scenarios), because only HANA understands its persistence layer, backup catalog, and log chain. OS-level work answers a different question: you use it when the HANA instance itself is broken, when you need to rebuild a system from a full data backup and logs outside a running database, or when you must move or re-seat files before a database-side recovery can run.
Much confusion comes from people searching for "OS-level restore" while actually facing an ordinary "restore my tenant from a backup" task. The two are related but not the same. Understanding where the OS ends and HANA begins is the whole point of this article.
What "OS level" actually covers in HANA terms
At the operating system layer, a HANA system consists of several distinct things:
The installation: /usr/sap/ (the instance directory with HDB), the sapadm/adm users and groups, the /hana/shared/ directory, and the software in the SAP HANA platform's install paths. The data and log volumes: typically /hana/data/ and /hana/log/, often on separate filesystems or LUNs, plus configuration such as global.ini, nameserver.ini, and the tenant configuration under /hana/shared. The backup destination: wherever BACKUP DATA wrote its files—a filesystem, an NFS share, or a third-party backup tool's catalog—outside of HANA's own control. The operating system context: the user, permissions, mount points, hostname, /etc/hosts, time zone, kernel parameters, and patches that HANA depends on.
A true OS-level recovery typically means: reinstall or repair the HANA software, recreate users and directory structures, restore the data and log volume contents from a filesystem or snapshot backup, and then start the instance and let HANA replay its redo log—or, if you are restoring only from a HANA data backup, let HANA perform the recovery step itself after the instance is healthy. The OS is doing the plumbing; HANA still performs database consistency work once it can start.
The decisive fork: is the HANA instance itself healthy?
Two scenarios produce completely different procedures, and mixing them up is the most common cause of failed restores.
Scenario A: HANA is installed and can start, and you need to restore a database from a backup. Do not copy files around at the OS level. Use the database's own recovery. With hdbsql, the canonical sequence for a full recovery looks conceptually like:
1: Stop the tenant database (not the whole system, if only the tenant is affected). 2: From hdbsql, run RECOVER DATABASE FROM DATA BACKUP '' (or FROM BACKUP with a backup ID if HANA's catalog knows the backup). You can also supply the log location with USING LOG PATH if logs are being restored from elsewhere. 3: To recover to a point in time, add UNTIL TIMESTAMP ''; to recover to the most recent consistent state, use the default "recover to last log" behavior, which replays available redo logs after the data backup. 4: Start the tenant and verify.
If the system database itself is damaged, recovery of the system DB uses the same command against the system database, but because the system DB hosts the backup catalog and tenant metadata, you must be careful about which backups and logs you point it to. hdbnsutil handles name server recovery and some system-replication takeover scenarios that pure SQL recovery doesn't cover.
Scenario B: HANA cannot start or is missing entirely. This is where OS-level work is the right tool. You might reinstall the HANA software, restore /usr/sap/, /hana/shared/, and the data/log volumes from a filesystem backup or a storage snapshot, then start the instance and let HANA's persistence layer come up. Only after the instance is running can you use RECOVER DATABASE if you also need to restore from a HANA data backup.
The distinction matters because OS-level filesystem restores do not understand HANA's internal consistency markers. A volume snapshot taken while HANA was running is not guaranteed to be crash-consistent unless the storage system coordinated with HANA—SAP's storage-connector integration exists precisely so that snapshots are taken at a consistent point. A snapshot of /hana/data and /hana/log that was captured without that coordination may look fine at the filesystem level and still fail to start or produce a database that needs log replay from a point that doesn't exist.
Restoring from a HANA data backup when the instance is down
Suppose the HANA installation is intact but the system database or a tenant is beyond a SQL-level restore—or you simply have a full data backup and logs on a filesystem and no running HANA to use RECOVER DATABASE against. The practical OS-level route is:
1: Stop the instance cleanly if possible (HDB stop as adm). If it won't stop, terminate the processes carefully and note the risk of an unclean shutdown. 2: Identify the backup set: HANA data backups can be complete (full) or differential/incremental. A full recovery needs a complete data backup plus all redo logs after its start time (or the relevant log segments) to bring the database to a consistent state. Confirm whether you have what you need before touching anything—missing logs mean you can recover only to the backup's point, and HANA will refuse or warn accordingly. 3: Repair or reinstall the software if the binaries are suspect, and ensure the directory layout and ownership are correct. 4: Start the instance into a state where recovery can run. HANA needs the data and log volumes to exist, but the data files can be in a recovered or inconsistent state that HANA will fix during startup recovery, provided the log volume contains the necessary redo. 5: Run recovery with hdbsql/HANA Studio as in Scenario A, pointing the recovery at the data backup path and—critically—at the log backups or log files that need to be restored. If the data volume is empty or deliberately cleared, HANA can initialize a database from a data backup as part of the recovery, but the exact command and options depend on whether you're recovering the system DB or a tenant and on your HANA version.
The part that trips teams up: a HANA data backup is a file, but it is not a "copy the file into /hana/data and start" object. HANA must process it. OS-level restore gets the backup and logs in place; HANA's recovery engine does the rest.
When a filesystem or storage snapshot is the OS-level restore
A storage-level snapshot of the data and log volumes, restored back to the original host (or to a new host), is the classic "OS-level HANA restore." Its reliability hinges on snapshot consistency:
With SAP HANA storage connector integration, the snapshot is coordinated with HANA's write barriers so the data and logs represent a consistent point, and startup recovery brings the database to that point. This is the supported, reliable pattern for snapshot-based recovery. Without coordination, a snapshot of a running instance may capture data and log files at slightly different times. HANA may still recover, but the guarantee is weaker, and the snapshot may include uncommitted or partially written data. Do not treat "the files were there" as proof of consistency.
Restoring to a different host requires matching the installation (same SID, users, paths, and usually the same or compatible HANA version), fixing hostname-related configuration, and then verifying that HANA starts and its recovery completes. Tenant configuration and the system database's metadata travel with the volumes or are recreated from backups, depending on what the snapshot covered.
A compact comparison of restore routes
| Route | Use when | Key risk |
|---|---|---|
| RECOVER DATABASE with HANA data backup and logs | Instance healthy; you need a database restored or point-in-time recovery | Wrong or missing log backups; permissions on backup path |
| Filesystem/snapshot restore of data and log volumes | Instance broken or you want a fast volume-level rollback | Snapshot inconsistency if not coordinated with HANA; host/version mismatches |
| Copying files directly into /hana/data and starting | Almost never as a first choice | HANA's persistence files are not designed for ad-hoc copying; corruption or failed startup |
| Reinstall plus filesystem restore plus HANA recovery | Full rebuild of a lost host | Identity, patch level, and configuration drift; missing logs |
What "restore from the OS level" cannot do
It cannot rebuild the backup catalog. The catalog lives in the system database and is queried through HANA. After a full system DB restore or rebuild, catalog entries may need to be re-registered or recovered from backup files manually, and this is version- and scenario-dependent. It cannot validate HANA consistency. Filesystem tools check file presence and permissions, not whether the database's persistence structures are coherent. It cannot substitute for log backups. If you restore a data backup at the OS level and have no redo logs after it, HANA can recover only to that backup point (with its own startup semantics), and a point-in-time recovery is impossible. It does not handle tenant-to-system-DB dependencies automatically. Restoring a tenant's data without a matching system DB that knows about the tenant produces a database HANA won't present as expected.
Practical OS-level checklist before you start
Confirm the exact HANA version and patch level you are restoring to; reinstall matching software if rebuilding a host. Know the SID, instance number, adm user, and all directory/mount points involved, including /hana/shared, /hana/data, /hana/log, and /usr/sap. Inventory the backups: which are complete data backups, which are differential or incremental, which log segments exist, and where they live—filesystem, NFS, or backup catalog. Verify that the OS user and permissions on /hana/shared and the volumes match HANA's expectations; wrong ownership causes startup failures that look like database errors but are pure OS issues. Check hostname, /etc/hosts, time zone, and any network settings HANA depends on if the host changed. Decide whether you are doing a filesystem/snapshot rollback or a HANA-side recovery, and do not mix them without a documented reason. Keep the old volume or backup untouched until the restore is verified; OS-level work is hard to reverse once you overwrite data.
Why people get stuck
The phrase "HANA DB restoration from the OS level" is often a symptom of a runbook written for a stop-the-instance, copy-the-files world that doesn't match HANA's architecture. Teams that have restored other databases by copying data directories assume the same works for HANA. It can work for the initial delivery of a backup or a snapshot, but the final consistency step is always HANA's own startup and recovery processing. Reading the HANA recovery logs and the nameserver trace after restore, not just the OS-level exit codes, is how you know the restore actually succeeded.
Treat the OS as the transport layer—it moves and places bytes, users, and mounts—and HANA as the database engine that decides whether those bytes form a consistent, recoverable database. That division of labor is the reliable answer to the question, and the rest of the procedure is detail on which layer to use when.
A note on scope
This article describes general HANA recovery concepts based on stable, well-established architecture and standard procedures. Exact command syntax, supported recovery options, snapshot integration, and catalog behavior can differ by HANA version and deployment (on-premises versus cloud services, which may restrict OS-level access entirely). For production restores, confirm the procedure against the official SAP HANA recovery documentation for your specific version and licensed support agreement, and test the procedure in a non-production system before relying on it.