Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

logrotate won't finish, high cpu usage

322 views
Skip to first unread message

man...@mhofer.eu.org

unread,
Jun 8, 2010, 2:50:02 AM6/8/10
to
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


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/bb78a4daff4d433c...@10.13.37.3

man...@mhofer.eu.org

unread,
Jun 9, 2010, 7:30:02 AM6/9/10
to
i was able to solve the problem by removing the state-file of logrotate
rm /var/lib/logrotate/status

regards,
manuel

Archive: http://lists.debian.org/0ef44e64f2387a7c...@10.13.37.3

0 new messages