1827293 Members
2525 Online
109717 Solutions
New Discussion

Re: perf logs

 
Adam Noble
Super Advisor

perf logs

Hi all,

A quick question. I have ammended the parm file on one of my servers to increase the logfile for devices to 200MB. This is all good and I am now getting around 14 days worth of data for disk. The question I have is this when it gets to 200MB I assume it simply trims this file and remove the oldest data?

Cheers
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: perf logs

Shalom,

If I'm guessing which perf logs you are talking about, the answer is yes. If you set log size to 200 MB, when that limit is reached the file will either be trimmed or a new log file created and perhaps a backup kept.

A trim of a log file normally takes out the oldest data first. It depends on whether you are using sam to do the trim or your own shell script.

Another technique I used was this.

cp logfile
> logfile
That clears it after taking a copy.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Adam Noble
Super Advisor

Re: perf logs

Steven I'm not using Sam or anything perf is doing this itself. In otherwords when my file gets to 20MB I just need to understand if it trims that file or deletes and recreates. I guess I will find out in a few days ha ha.
OFC_EDM
Respected Contributor

Re: perf logs

Don't forget that the logfile may grow LARGER than the 200MB.

It will only trim the logs when it runs it's scheduled maintenance.

Think it defaults to Midnight every day.

So if you're expecting an increase in data make sure you have the space.

Cheers
The Devil is in the detail.