I finally have some time to sit down and figure out why my /var/log/messages log is not rotating (running Mandrak 8.0). All logging functions are working properly, but the messages log has not been rotated in about 6 months. The file is getting rather large and I would love to figure this out.
As far as I can tell my logrotate.conf file is set up correctly. When I attempted to run logrotate manually (# logrotate /etc/logrotate.conf), I recieved the following message:
Could not mv messages.5.gz to messages.6.gz
So my questions is why is it even trying to keep the oldest file when it should only keep 5 of them? Here is my logrotate.conf file:
# see "man logrotate" for details
# rotate log files weekly
# keep 4 weeks worth of backlogs
# create new (empty) log files after rotating old ones
# uncomment this if you want your log files compressed
# RPM packages drop log rotation information into this directory
# no packages own lastlog or wtmp -- we'll rotate them here
create 0664 root utmp
# system-specific logs may be configured here
Any help would be appreciated. TIA.