on 10-05-2015 11:47 PM
Dear Experts,
Our HANA Database log getting full for every 2 days. We have to manually delete the old backup logs, once for every 2 days. We can't increase the space in HANA share filesystem because we lack in resources.
Is there a option in HANA, where we can restrict the logs (like setting any parameters?) so that we don't have to manually delete them for every 2 days?
Any ideas, please?
Thanks & best regards,
Sreenu
Hi Pavan,
One way to prevent is to set it to overwrite...
Go to HANA Studio - Administration - Configuration - global.ini - Persistence - log_mode
Change it from normal to Overwrite..
Note: This will overwrite the logs once it reaches it's max size. This setting is advisable to do epically during migrations /upgrades to prevent from filling the log drive.
Thanks
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
Thank you for the Hint.
Is there any other option other than "Overwrite" because it is not applicable for normal system operation periods. In case of system crash, we won't be having the logs to recovery the system.
Are there any other options like restricting Expensive Statements instead of manually deleting the old logs after every 2 days?
Thanks & best regards,
Sreenu
Hi Sreenivasa,
I am still unclear if you are deleting old logs then point in time recovery is generally not feasible.
Log filling is a continous process and it logs all changes in transaction data at Log segment.
In short, you need to increase space in File system and setup an proper archiving process in some other disk so that you can get rid of these issue.
Otherwise you have to go for overwrite mode on.
if you have activated the trace on Expensive SQL statement , please switch it off . Expensive SQL statement is only required for getting the trace of the file for shorted time period..
I hope that I have cleared your quiery.
Regards,
Dipak
Hi Dipak,
Thank you for the information.
In DB offline mode, if I delete the old backup files that are no longer required then point in time recovery should be possible, right? I mean old backup logs and not current transactional logs.
We're lack in resources when it comes in increasing the File system space and setting archiving process in another disk.
Activating the trace for Expensive SQL statements would result in log filling? Activating trace would also be helpful in troubleshooting the current issue, right?
Thank you,
Sreenu
Hi Sreeniasa,
If you are making DB offline , then Full complete backup is only required for restoration.
Point in time recovery comes when you are taking a complete online backup and regularly backing your transactional logs.
if I have 100 table , I have activated the trace for 100 table . This would certainly make log filling situation . Trace is used for analyzing the behavior for a shorter duration .
I would say switch off the trace when it is actually not required.
Regards,
Dipak Kumar.
Hi Sreenivasa,
There must be some tools but I am not aware of.
If I would be at your position , I would write a cron job which can delete old file from that directory scheduling at your day and time respectively.
I would also try to get an answer from Backup team of my dedicated HANA folks.
Regards,
Dipak Kumar
Hi Dipak,
Thank you for the Idea.
Just a small correction, we deleted all the logs from share filesystem like:
"/hana/shared/HPD/HDB00/backup/log> rm log_backup_*
only in DB offline mode and not in online mode.
Then we performed once again the Backup and then deleted the old backup file. Actually this procedure is not recommended but we have no other option to free up the filesystem space by deleting the backup logs.
So, I assume, it is dangerous to use cron jobs if it deletes the logs required to perform latest backup.
Any other ideas, please?
Best regards,
Sreenu
Hi Sreeni,
Please check below note.This is not automated but helpful though
2096851 - Management of Old Backups in HANA
Thanks,
Mofizur
Hi Sreenivasa,
if you are deleting old log files , that means you don't require those files.
I would say go for "OVERWRITE" mode in configuration file and get rid of these issue.
There must be some transactional going on this HANA system which is filling up the log filesystem.
We had followed point 6 of the note(2096851) and had not received any log filling in our case.
Regards,
Dipak
I tried searching the same and dint found any . I belive there is no such kind of option availabe. The only way is to maintain a script file that will clean up the old backup logs.
However, lets see what other experts will say.
Regards,
Pavan Gunda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check with your linux team for writing the script. If the script dletels the old log backup files..it is not possible of PIT recoveries.
What is backup strategy ?
if you have Complete data backup happening daily. Mostly we dont need the old log backups . However, it depends up on your business and backup strategy.
Regards,
Pavan Gunda
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.