Logrotate does not work for cron jobs if "olddir" is in another device.
(Doc ID 2328765.1)
Last updated on SEPTEMBER 21, 2021
Applies to:Oracle Cloud Infrastructure - Version N/A and later
Linux OS - Version Oracle Linux 6.1 and later
The server logs are rotated in the directory that normally is set on the "olddir" option of the configuration files. But logrotate is failing with errors like on /var/log/messages or on the "logrotate" command output :
"error: psacct:15 olddir /var/log/archive and log file /var/account/pacct are on different devices
error: found error in file psacct, skipping"
This situation can happen when the system contain /var and /var/log on different mount points (devices).
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document