logrotate filling disk?

Hello,

Yesterday I noticed that my 12.1 server was out of disk space. Nothing visible, but df said the server was full when du said it was not.

A friend of mine said he had the same problem, that logrotate did not restart the application after rotating logs and that so the removed files where still open “on the background”, so still using room.

In fact, rebooting the server fixed the problem (df=du).

If the diagnostic is good, it may be Inn that caused it because I have an unknown error with it (not to be discussed here).

Do you know if there is a permanent solution to such problem?

thanks
jdd

On 09/12/2012 09:26 AM, jdd wrote:
>
> Do you know if there is a permanent solution to such problem?

set your system to clean /tmp on boot, and reboot more often :wink:

not certain, but if i recall correctly there may be some hints in here:

http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/477545-cant-log.html

hmmmm, or maybe it was here:
http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/477787-console-login-only-again-rootfs-full.html

holler if neither of those help–by the way, if you have a runaway error
filling logs you are gonna have to hack your logrotate to deal with it
(like: compress sooner and move the old logs out faster, for example)
and, maybe you can ‘teach’ Inn to send errors to the bit bucket (if you
are gonna ignore them anyway), see man inn)


dd http://goo.gl/PUjnL

On 09/12/12 10:10, dd@home.dk pecked at the keyboard and wrote:
> On 09/12/2012 09:26 AM, jdd wrote:
>>
>> Do you know if there is a permanent solution to such problem?
>
> set your system to clean /tmp on boot, and reboot more often :wink:
>
> not certain, but if i recall correctly there may be some hints in here:
>
> http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/477545-cant-log.html
>
>
> hmmmm, or maybe it was here:
> http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/477787-console-login-only-again-rootfs-full.html
>
>
> holler if neither of those help–by the way, if you have a runaway
> error filling logs you are gonna have to hack your logrotate to deal
> with it (like: compress sooner and move the old logs out faster, for
> example) and, maybe you can ‘teach’ Inn to send errors to the bit
> bucket (if you are gonna ignore them anyway), see man inn)
>

Or better still, find out what is filling the logs and correct the problem.

On 09/13/12 09:58, Ken Schneider pecked at the keyboard and wrote:
> On 09/12/12 10:10, dd@home.dk pecked at the keyboard and wrote:
>> On 09/12/2012 09:26 AM, jdd wrote:
>>>
>>> Do you know if there is a permanent solution to such problem?
>>
>> set your system to clean /tmp on boot, and reboot more often :wink:
>>
>> not certain, but if i recall correctly there may be some hints in here:
>>
>> http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/477545-cant-log.html
>>
>>
>> hmmmm, or maybe it was here:
>> http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/477787-console-login-only-again-rootfs-full.html
>>
>>
>> holler if neither of those help–by the way, if you have a runaway
>> error filling logs you are gonna have to hack your logrotate to deal
>> with it (like: compress sooner and move the old logs out faster, for
>> example) and, maybe you can ‘teach’ Inn to send errors to the bit
>> bucket (if you are gonna ignore them anyway), see man inn)
>>
>
> Or better still, find out what is filling the logs and correct the
> problem.

In this case find out why logrotate is not working properly and get it
fixed. logrotate should not be keeping previous files open. Perhaps a
bug report is in order.

On 2012-09-13 16:25, Ken Schneider wrote:
> On 09/13/12 09:58, Ken Schneider pecked at the keyboard and wrote:

>> Or better still, find out what is filling the logs and correct the problem.
>
> In this case find out why logrotate is not working properly and get it fixed. logrotate should
> not be keeping previous files open. Perhaps a bug report is in order.

Notice that often logrotate restarts the writing process to avoid that precisely. See, for
example, “/etc/logrotate.d/syslog”, where there is a line that does “/etc/init.d/syslog reload
> /dev/null”.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)