SAR

Andrei Pascal andrei at romsym.ro
Thu Apr 19 12:26:37 UTC 2007


On Thu, 2007-04-19 at 05:15 -0700, Sean McGlynn wrote:
> Hello,
> 
> Every ten minutes cron runs a script that runs sadc, which writes statistics to the applicable file in /var/log/sa/.  Theses files are only saved for nine days.  Is there some way to modify the process so the files are stored indefinitely?  I know I could write a script to copy the files to an archive directory, but I'm thinking that something is causing the files to be deleted, and it would be cleaner to change that aspect of it.
> 
> Thank you.

Comeback: you can't store them indefinitely because the data
collections' names are day-of-month-related. So once you get in the next
month, the file /var/log/sa/sa01 gets overwritten.

If you want to store them indefinitely, just rsync the files to a
different directory in a monthly job. There's more than one way to do
it ;)


Andrei




More information about the redhat-list mailing list