[rhelv6-list] sar

Iain Morrison Iain.Morrison at mrc-epid.cam.ac.uk
Wed Mar 5 09:41:02 UTC 2014


Hi Cale,
  thanks. That explains why things started going weird after Feb.

yours

iain 


--
 
Iain Morrison
IT Manager
MRC Epidemiology Unit
Institute of Metabolic Science
Box 285
Addenbrooke's Hospital
Hills Road
Cambridge
CB2 0QQ
Tel 01223 769200 

-----Original Message-----
From: rhelv6-list-bounces at redhat.com
[mailto:rhelv6-list-bounces at redhat.com] On Behalf Of Cale Fairchild
Sent: 05 March 2014 02:29
To: rhelv6-list at redhat.com
Subject: Re: [rhelv6-list] sar

On 04/03/2014 18:59, Bob Arendt wrote:
>
>
> On 03/04/2014 01:12 PM, Iain Morrison wrote:
>> -rw-r--r--. 1 root root 1786068 Mar  1 23:50 /var/log/sa/sa01
>> -rw-r--r--. 1 root root 1786068 Mar  2 23:50 /var/log/sa/sa02
>> -rw-r--r--. 1 root root 1786068 Mar  3 23:50 /var/log/sa/sa03
>> -rw-r--r--. 1 root root 1649668 Mar  4 20:10 /var/log/sa/sa04
>> -rw-r--r--. 1 root root  893268 Feb  5 23:50 /var/log/sa/sa05
>> -rw-r--r--. 1 root root  893268 Feb  6 23:50 /var/log/sa/sa06
>> -rw-r--r--. 1 root root  893268 Feb  7 23:50 /var/log/sa/sa07
>>
> <.. snip..>
>
> Yes - sadc (the one writing the files) always appends to the end of 
> the file.
> In the event of a system reboot, all the data remains together and
> in chronological order.  Sort of handy, since you can see the
> levels of activity before a crash.
>
> But - let the month wrap around and you get something that sar
> can't really deal with - you can't select the new data using
> the -s , -e options, it only shows the initial day of data.
> You really need to have something age off the old logs before
> the date wraps around again.
>
> Not a bug ... it's a feature :)
>
> Cheers,
> -Bob Arendt
>

 From what I can see, it appears that in the last release of sysstat 
(sysstat-9.0.4-22.el6) they changed the values in /etc/sysconfig/sysstat

which direct how much history is kept in /var/log/sa. The main issues 
appears to be that they changed HISTORY=7 to HISTORY=28 which should 
theoretically work on most months but seems to have wrapped around even 
in January which should not have been the case as at least the sa1-sa3 
should have disappeared.

Cale Fairchild

_______________________________________________
rhelv6-list mailing list
rhelv6-list at redhat.com
https://www.redhat.com/mailman/listinfo/rhelv6-list




More information about the rhelv6-list mailing list