rotate cyrmaster.log file

Alessio Cecchi alessio at skye.it
Tue Jan 20 12:50:13 CET 2009


Alain Spineux ha scritto:
> On Mon, Jan 19, 2009 at 6:18 PM, Alessio Cecchi <alessio at skye.it> wrote:
>   
>> Hi,
>>
>> on my kolab server the cyrmaster.log is very very large:
>>
>>
>> mail:~# ls -lh /home/kolab/var/imapd/log/cyrmaster.log
>> -rw-rw-r-- 1 kolab-r kolab-r 6.2G Jan 19
>> 18:14 /home/kolab/var/imapd/log/cyrmaster.log
>>
>> Why kolab/cyrus not rotate this file? Is a problem of my Kolab installation?
>>
>> How can i disable debug on this file?
>>
>> mail:~# tail -f /home/kolab/var/imapd/log/cyrmaster.log
>> Jan 19 18:05:27 mail <debug> master[13723]: about to exec /kolab/bin/pop3d
>> Jan 19 18:05:33 mail <debug> master[13724]: about to exec /kolab/bin/pop3d
>> Jan 19 18:05:46 mail <debug> master[9307]: process 12856 exited, status 0
>> Jan 19 18:06:02 mail <debug> master[13725]: about to exec /kolab/bin/imapd
>> Jan 19 18:08:23 mail <debug> master[9307]: process 13724 exited, status 0
>> Jan 19 18:10:04 mail <debug> master[13760]: about to exec /kolab/bin/lmtpd
>> Jan 19 18:12:10 mail <debug> master[9307]: process 13760 exited, status 0
>> Jan 19 18:12:13 mail <debug> master[13781]: about to exec /kolab/bin/lmtpd
>> Jan 19 18:14:30 mail <debug> master[9307]: process 13781 exited, status 0
>> Jan 19 18:14:42 mail <debug> master[13807]: about to exec /kolab/bin/lmtpd
>>
>>     
>
> It should be rooled once a day. Are you sure it doesn't grow to 6Go in
> only one day ?
> What about  ?
>
> # head /home/kolab/var/imapd/log/cyrmaster.log
>
> look at /kolab/etc/rc.d/rc.imapd if everything looks fine.
> Also look for older log files dates:
>
> # ls -l  /home/kolab/var/imapd/log/cyrmaster.*
>
> Regards
>
>   
Hi Alain,

you have reason, the file is rotate every day:

mail:~# ls -lh /home/kolab/var/imapd/log/cyrmaster.log*
-rw-rw-r-- 1 kolab-r kolab-r  83K Jan 20 12:47 
/home/kolab/var/imapd/log/cyrmaster.log
-rw-rw-r-- 1 kolab-r kolab-r 6.2G Jan 20 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.0
-rw-rw-r-- 1 kolab-r kolab-r  76K Jan 20 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.1.bz2
-rw-rw-r-- 1 kolab-r kolab-r  94K Jan 16 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.2.bz2
-rw-rw-r-- 1 kolab-r kolab-r  95K Jan  9 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.3.bz2
-rw-rw-r-- 1 kolab-r kolab-r  81K Dec 29 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.4.bz2
-rw-rw-r-- 1 kolab-r kolab-r  80K Dec 19 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.5.bz2
-rw-rw-r-- 1 kolab-r kolab-r  78K Dec 13 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.6.bz2
-rw-rw-r-- 1 kolab-r kolab-r  81K Dec  8 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.7.bz2
-rw-rw-r-- 1 kolab-r kolab-r  91K Dec  3 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.8.bz2
-rw-rw-r-- 1 kolab-r kolab-r  79K Nov 28 00:00 
/home/kolab/var/imapd/log/cyrmaster.log.9.bz2


6Gb was an only one day of logs.

Thanks




More information about the users mailing list