OCI: SAR report “/var/log/sa/” not generating after upgrading instance to Oracle Linux 8
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
Tagged:
0