Symptom
In an SAP Business One, version for SAP HANA landscape, the HANA host server runs out of disk space. Either the log volume or the data volume is full. Depending on how far it has gone, users get errors or slow responses, or the HANA services stop and cannot be started again.
Cause
The usual causes are:
- Heavy workload that writes a lot of log data
- Missing or poor maintenance of the HANA backup catalog, so old backups and log backups are never removed
- In some landscapes, the SAP Business One Integration Framework (B1i) producing large volumes of data
Who is affected
- You use SAP Business One, version for SAP HANA.
- The
dataorlogvolume on the HANA host is full or almost full.
Solution
A. The HANA services are still running
- Back up and clean up. Run full backups of
SYSTEMDBand the SAP Business One tenant(s). Then delete older backups and log backups, including the files on the file system. If log backups keep growing, you may need several full backups in a row. - Switch the log mode temporarily (optional). Setting
log_modetooverwriteinSYSTEMDBstops log growth for the moment. Keep in mind that you can then only restore to a full backup, not to a point in time. - Check B1i. If B1i runs on this system, stop its services and see whether the growth stops. If B1i is the cause, review SAP Note 3480765 and SAP Note 2173439.
- Reclaim the data volume. If the log volume still has space but the data volume is full:
- Plan downtime and make sure no users are connected.
- Stop the Server Tools, B1i and all other services that connect to HANA.
- Run a full backup of the instance.
- Restart the HANA instance.
- Run
ALTER SYSTEM RECLAIM DATAVOLUME 120 DEFRAGMENT; - Run
ALTER SYSTEM RECLAIM LOG; - Start the Server Tools and the other services again.
Reclaiming space may have no effect while snapshots are open (SAP Note 3705525).
B. The HANA services are stopped and do not start
- As the HANA operating system user (for example
ndbadm), move one of the log segment folders to a disk with enough free space, as described in SAP Note 1679938. SAP Note 2083715 explains how to analyse a full log volume. - As soon as HANA is running again, go through section A.
- If the disk fills up again right away and HANA still does not start:
- Ask your system administrator whether the disk volumes can be extended. Then start HANA and go through section A.
- Alternatively, recover the instance from a recent, consistent full backup. In some cases, reinstalling HANA and recovering from a full backup is faster. Transactions after that backup are lost, so involve the business owner in the decision.
- Reinstalling HANA and importing schema exports is also possible, but needs consistency checks and does not guarantee consistency the way a full backup does.
Prevent it
- Run a full instance backup every day and delete backups older than about a week, as described in the Backup Policy section of the SAP Business One Administrator's Guide.
- Automate backups and backup catalog cleanup, for example with RSP (SAP Note 2157386), SAP HANA Cockpit, the HANA Clear Tool (SAP Note 2399996), a third-party tool or a script.
- Rely on instance backups, not schema exports, for consistent recovery (SAP Note 2121486).
- Monitor the growth of the data volume (SAP Note 3054023).
Confirm the result
df -hon the HANA host shows enough free space on the data and log volumes.- The HANA services are running and SAP Business One users can log on.
- The next scheduled backup and cleanup run successfully.