Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8379

Re: cleaning up log files in $(DIR_INSTANCE)/backup/log

$
0
0

I feel that there should be a parameter like log_deletion_xyz=enable/disable

if enable it should ask for number of days . As customer knows about their backup policies they can easily set the above values based on there requirement.

 

But, without having anything..the /backup/log is just getting filled up and system is going into hung sate. (seen in many customer landscapes).

 

later after troubleshooting ..we will come to know that log directory is full and hence hung state.

 

later on we delete it. And moreover keeping logs for long days will doesnt make any sense because there will be complete data backups for hourly/daily/weelly/monthly backup will happen.

 

and

 

1. i went through the document that you ppl have mentioned , but that scripts will not clear any logs that instance/backup/logs --feels very complicated.

 

2. @Richard bremer:

 

i feel that below is easy way of achiving my requirement.  Do you find any harm in this ?

 

find /usr/sap/../../backup/log/* -mtime +5 -exec rm {} \; -> lsrs, if you have idea, can you also please comment on it


i will make above script to run for every 5 days. Becoz we have daily complete data backup. and OS backup


Regards,

Pavan Gunda


Viewing all articles
Browse latest Browse all 8379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>