Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reboot breaks sar 2

Status
Not open for further replies.

SamBones

Programmer
Aug 8, 2002
3,186
US
I've got a couple systems running Solaris 8. I have them collecting sar data every 5 minutes throughout the day. I've noticed that if I reboot the system, sar only reports what has been collected up until the reboot. It stops reporting anything after the time of the reboot. Looking at the data files (/var/adm/sa/sa##), they are growing every five minutes as if they are being updated correctly, but nothing new is reported.

The sar data is being collected and rolled every night by sys with the following crontab entries...
Code:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/lib/sa/sa1
56 23 * * * /usr/lib/sa/sa2 -A
These still do run after the reboot. The reboot I usually use is...
[tt]
shutdown -g0 -y -i6
[/tt]
This is a graceful shutdown and boot, and the sys cron jobs are running after the reboot.

Any ideas?

 
Sam, is S21perf in /etc/rc2.d being executed at boot time? As far as I know that's the script which restarts sar collection on reboot. HTH.
 
Try uncommenting the lines in /etc/rc2.d/S21perf to fix this - see man page for sadc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top