[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

logrotate won't finish, high cpu usage



Hi!

recently i've been experiencing problems with logrotate, each time it runs
it 
gets kinda stuck and eats up the systems cpu for days without finishing (i 
don't have that many/big logfiles to rotate)

the output of "logrotate -d -v /etc/logrotate.conf" just stops at "reading 
config info for /var/log/btmp"

the logrotate configuration for /var/log/btmp looks like this:
> /var/log/btmp {
>    missingok
>    monthly
>    create 0660 root utmp
>    rotate 1
> }

when i run strace on the logrotate pid i get the following message
appearing 
over and over again..
> stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2211, ...}) = 0

logrotate is running in a linux-vserver-guest
version: logrotate-3.7.1-5
kernel: 2.6.26-2-vserver-686 #1 SMP Wed Feb 10 10:39:33 UTC 2010 i686 
GNU/Linux

i can't really tell what time it has stopped working and what changed at
that 
moment, but it has been working for a while before.

thanks in advice

regards,
manuel hofer


Reply to: