Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2001 11:38:04 +0200
From:      Christoph Sold <so@server.i-clue.de>
To:        Jon Molin <jon.molin@resfeber.se>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: /var/log/messages fills up
Message-ID:  <3B4ACCFC.BDACDCBE@i-clue.de>
References:  <3B4AC2FE.7D58AD03@resfeber.se>

next in thread | previous in thread | raw e-mail | index | archive | help


Jon Molin schrieb:
> 
> Hello list,
> 
> This morning when i came to my work my workstation was in a horrble
> state, there where netscape popups complaining on the lack of space.
> 
> What had happend was, a program had gone crazy and spawned off resulting
> in:
> Jul  9 21:24:57 jmo /kernel: file: table is full
> Jul  9 21:24:57 jmo syslogd: /var/run/utmp: Too many open files in
> system
> Jul  9 21:24:57 jmo last message repeated 3 times
> 
> and apperently writing this about 1000 times/sec so the file filled the
> fs (i know i should have had a /var slice) and therefor it started
> adding that to the log as well so i had a 2.9 G large messagefile.
> 
> Is there anyway to avoid this? One way could be to make a cronjob that
> monitors the log but there should be better way, or?

It seems /var resides on the root partition. Don't do this. Have another
partition collet all those log messages. Also, redirect the daily
maintenance report mail sent to root to your email account. This way,
you may detect partitions filling up before it's too late.

Usually, /var/log/messages gets rotated once a day, which prevents
partitions filling up quite successfully.

HTH
-Christoph Sold

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B4ACCFC.BDACDCBE>