[node-devel] Logrotate seem broken

Jonas Israelsson jonas.israelsson at elementary.se
Thu Apr 25 15:27:54 UTC 2013


Hi,

Ovirt-node: 2.6.1-20120228.fc18

I have noticed the my /var/log volume run out of space very fast.

The reason is the /var/log/libvirtd.log file that grows rapidly.

This file is included in the /etc/cron.d/vdsm-libvirt-logrotate

$ cat /etc/cron.d/vdsm-libvirt-logrotate
10,25,40,55 * * * * root /usr/sbin/logrotate /etc/logrotate.d/libvirtd

Running logrotate-command above manually and the log is indeed rotated, 
so nothing seem wrong there.

Just to test I therefore added :

10,25,40,55 * * * * root /usr/sbin/logrotate /etc/logrotate.d/libvirtd
10,25,40,55 * * * * root echo "HEJ" > /tmp/apa.file

And I do get the "/tmp/apa.file" , so crontab seem to be working as well.

Permission looks ok....

[root at fat-tony log]# ll /etc/cron.d/
total 20
-rw-r--r--. 1 root root 128 Nov 27 10:01 0hourly
-rw-r--r--. 1 root root 169 Feb 28 15:24 ovirt-logrotate
-rw-r--r--. 1 root root 108 Feb  5 15:30 raid-check
-rw-r--r--. 1 root root 235 Dec  3 17:05 sysstat
-rw-r--r--. 1 root root 124 Apr 25 14:53 vdsm-libvirt-logrotate

[root at fat-tony log]# ll /etc/logrotate.d/
total 54
-rw-r--r--. 1 root root  92 Feb  5 10:35 dracut_log
-rw-r--r--. 1 root root 167 Jan 30 14:10 glusterd
-rw-r--r--. 1 root root 138 Jan 30 14:10 glusterfs-fuse
-rw-r--r--. 1 root root 173 Jul 20  2012 iscsiuiolog
-rw-r--r--. 1 root root 359 Apr  2 06:56 libvirtd
-rw-r--r--. 1 root root 162 Jan 28 20:35 libvirtd.lxc
-rw-r--r--. 1 root root 163 Jan 28 20:35 libvirtd.qemu
-rw-r--r--. 1 root root 162 Jan 28 20:35 libvirtd.uml
-rw-r--r--. 1 root root  86 Feb 28 15:24 ovirt-node
-rw-r--r--. 1 root root 175 Nov 13 17:39 sanlock
-rw-r--r--. 1 root root 210 Jan 25 16:12 syslog
-rw-r--r--. 1 root root 331 Feb 28 10:10 vdsm
-rw-r--r--. 1 root root 251 Feb 28 10:10 vdsm-reg
-rw-r--r--. 1 root root 100 Feb  6 10:06 yum

So I must be missing the obvious...

/J



More information about the node-devel mailing list