"Noah Roberts" <(E-Mail Removed)> writes:
>Noah Roberts wrote:
>> Bill Unruh wrote:
>>
>> > They could also be hidden files. Ie files which you erased (rm
>> > /var/log/messages) but were still open at the time, so the inode is
>left
>> > open, and programs could still dump stuff into them and fill them
>up.
>> > That would be my suspicion.
>> >
>>
>> Yes, that is mine as well. I have seen it happen but at that time I
>> knew what caused it.
>>
>> How do you find these files or, more to the point, the programs that
>> have them open?
>I believe I have found the issue. It was indeed the log files. They
>are getting huge because DHCP is logging every damn thing that happens,
>which is a LOT. Also the setup for apache purposfully causes errors
>all the time so error_log is filling up rappidly. When I deleted these
>files I left the programs like apache and syslog running.
>I must look into how to stop DHCP from sending syslogs and how to
>delete a log without killing the process that is logging to it. It
>must be possible because logrotate does something similar.
It is syslog that does the logging. dhcp and apache just send stuff to
syslog which does the logging.
>/var/log/messages
killall -1 syslogd
The former empties messages, the latter tells syslogd to reread its config
file and to reopen its logging files.
|