Results 1 to 5 of 5

Thread: logrotate filling disk?

  1. #1
    jdd NNTP User

    Default 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

  2. #2
    dd@home.dk NNTP User

    Default Re: logrotate filling disk?

    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 ;-)

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

    http://forums.opensuse.org/english/g...-cant-log.html

    hmmmm, or maybe it was here:
    http://forums.opensuse.org/english/g...otfs-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


  3. #3

    Default Re: logrotate filling disk?

    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 ;-)
    >
    > not certain, but if i recall correctly there may be some hints in here:
    >
    > http://forums.opensuse.org/english/g...-cant-log.html
    >
    >
    > hmmmm, or maybe it was here:
    > http://forums.opensuse.org/english/g...otfs-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.

  4. #4

    Default Re: logrotate filling disk?

    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 ;-)
    >>
    >> not certain, but if i recall correctly there may be some hints in here:
    >>
    >> http://forums.opensuse.org/english/g...-cant-log.html
    >>
    >>
    >> hmmmm, or maybe it was here:
    >> http://forums.opensuse.org/english/g...otfs-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.


  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: logrotate filling disk?

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •