Tuesday, 23 June 2020

Recovery fails with "clear log volume because of recovery with clearlog"

ERROR


During a recovery from backup using "clear log" option, it fails with error:

recovery could not be completed, volume <volume number>, reached log position 0,
The error <exception 70029052: clear log volume because of recovery with clearlog: eror from remove all dir /hana/log/HDB/<mount>/<path>/ Not a directory(20)

Reason


During CLEAR LOG of the recovery, the database tries to remove this directory and fails due to permissions issue or if their is a symbolic link.

Solution

1: Move to directory  /hana/log/<sid>/<mount>/
2: Execute ls -l
3: Check permissions for the path are valid
4: If there exists symbolic link (such as one that may have been created as part of following the steps of SAP Note 1679938 - DiskFullEvent on Log Volume ) please remove that
Repeat the restore



https://rupeshschavan.blogspot.com/2020/06/diskfullevent-on-log-volume.html