Backup Hana DB
Backup Hana DB
Symptom
You notice, that the log volume is full and the database does not accept any new requests.
Additionally, the trace of the service with the full log volume contains DiskFullEvent messages:
LoggerImpl.cpp : Logger notified of new DiskFull: DiskFullEvent[id= XXX, path= /hana/log/<SID>/mntXXXXX/hdbXXXXX/, state= NEW]
Other Terms
HANA, in-Memory, logvolume, full, no requests, DISKFULL event
Due to an architectural limitation, it was not possible to successfully perform a log backup when no space in the log area was
available.
Affected Releases:
SAP HANA 1:
All Revisions
SAP HANA 2:
Revisions of SPS00 - SPS05
Prerequisites:
The log volume is full and the database does not respond or start anymore.
Solution
Apply one of the following SAP HANA Revisions:
SAP HANA 2:
Revisions >= 060.00 (SPS06)
or higher
or higher
Workaround:
1. Make sure that you are logged in as <SID>adm user on the host on which you experience the log volume full situation.
4. Change directory into folder mnt00001 of the log volume (Default: /hana/log/<SID>/), e.g.:
cd /hana/log/<SID>/mnt00001
5. You have to move one of the log volumes temporarily to another volume where enough space is available.
You should free at least 2 GB of space to ensure that the database has enough space to start. To find out the space consumption
of each volume execute:
du -sh *
6. Move a volume which consumes at least 2 GB of space (e.g. hdb00003) to a volume with sufficient free space, e.g. to the data
volume (Default: /hana/data/<SID>), e.g.:
mkdir /hana/data/<SID>/logs_temporary
mv hdb00003 /hana/data/<SID>/logs_temporary
ln -s /hana/data/<SID>/logs_temporary/hdb00003 /hana/log/<SID>/mnt00001/hdb00003
rm -f /hana/log/<SID>/mnt00001/hdb00003
mv /hana/data/<SID>/logs_temporary/hdb00003 /hana/log/<SID>/mnt00001
rmdir /hana/data/<SID>/logs_temporary
Remarks:
If you have not noticed a DiskFullEvent, but your service is unresponsive, you might encounter a limit of the number of log segments
per log partition. For further details please see SAP Note 2072410.
Manual Activities
Software Components
Software Component And subsequent
HDB
HDB
2409471 SAP HANA Log Volume Full on Secondary or Tertiary Site with System Replication
2984163 HANA Data volume's persistence is rapidly consumed by the GRACSODREPDATA table
2818618 RECOVER DATA fails because of missing log directory: No such file or directory
2514407 Recovery fails with "clear log volume because of recovery with clearlog"
2723171 [447] backup could not be completed, [3000116] Could not acquire savepoint lock