You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: SAR report “/var/log/sa/” not generating after upgrading instance to Oracle Linux 8

edited Jul 11, 2024 7:01AM in Linux

APPLIES TO:

Oracle Cloud Infrastructure

Linux x86-64

SYMPTOMS

Why is SAR report “/var/log/sa/” not generating after upgrading to OL8?

CAUSE

Required sysstat services are not running.

$sudo systemctl list-unit-files |grep sysstat 
sysstat-collect.service                        static          
sysstat-summary.service                        static          
sysstat.service                                enabled  
sysstat-collect.timer disabled
sysstat-summary.timer disabled

In Oracle Linux 8 systat service is managed by systemd whereas on Oracle Linux 7 it is crond.

SOLUTION

Start the following service and enable it to start at boot time.

$sudo systemctl start sysstat-collect.timer  
$sudo systemctl start sysstat-summary.timer 
$sudo systemctl enable sysstat-collect.timer
$sudo systemctl enable sysstat-summary.timer

Following is the example of working sysstat unit files

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!