http://bugzilla.novell.com/show_bug.cgi?id=913421
Jacob W changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jacobwinski@gmail.com
--- Comment #3 from Jacob W ---
The problems is worse that previously mentioned. I also have the problem where
no log was rotated. Made my /var/log/messages 1.2gb because no log was rotated
for the past 5 months. And that's just one log among many that grew to severe
proportions.
It is *not* because my computer has never been on at exactly midnight - it is
on at midnight practically every day. I think this is due to the services not
being enabled.
I updated from 13.1 -> 13.2 via official recommended method. So the problem
seems to be that someone forgot to have the new logrotate services enabled by
default.
Last log rotation: 2014-10-1-13:0:0
# systemctl status logrotate.timer
logrotate.timer - Daily rotation of log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.timer; disabled)
Active: inactive (dead)
Docs: man:logrotate(8)
man:logrotate.conf(5)
# systemctl status logrotate.service
logrotate.service - Rotate log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static)
Active: inactive (dead)
Docs: man:logrotate(8)
man:logrotate.conf(5)
# systemctl list-timers
<no logrotate listed>
My /usr/lib/systemd/system/logrotate.time:
[Unit]
Description=Daily rotation of log files
Documentation=man:logrotate(8) man:logrotate.conf(5)
[Timer]
OnCalendar=daily
AccuracySec=12h
# not supported by our systemd (210) yet
#Persistent=true
[Install]
WantedBy=timers.target
Reproducible: always (until manually fixed)
Workaround (w/ proof):
# ll -h /var/log/messages
-rw-r----- 1 root root 1.2G
# systemctl enable logrotate.timer
# systemctl start logrotate.timer
# systemctl status logrotate.timer
logrotate.timer - Daily rotation of log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.timer; enabled)
Active: active (waiting) since Fri 2015-04-03 15:46:07 EDT; 6s ago
# systemctl status logrotate.service
logrotate.service - Rotate log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static)
Active: inactive (dead)
# systemctl start logrotate.service
(wait a few minutes for massive log rotation)
# ll -h /var/log/messages
-rw-r----- 1 root root 622
# ls /var/log/messages*
/var/log/messages /var/log/messages-20141018.xz /var/log/messages-20150403.xz
# ll -h /var/log/messages-20150403.xz
-rw-r----- 1 root root 55M
This bug should be tagged more severe. It can fill up / over time and cause
major malfunction.
--
You are receiving this mail because:
You are on the CC list for the bug.