From owner-freebsd-arch Sun Feb 23 21:56:47 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9047237B401 for ; Sun, 23 Feb 2003 21:56:45 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id D140243F93 for ; Sun, 23 Feb 2003 21:56:44 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0040.cvx22-bradley.dialup.earthlink.net ([209.179.198.40] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18nBbV-0000J1-00; Sun, 23 Feb 2003 21:56:42 -0800 Message-ID: <3E59B3C9.650144CC@mindspring.com> Date: Sun, 23 Feb 2003 21:55:21 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Garance A Drosihn Cc: Wes Peters , arch@FreeBSD.ORG Subject: Re: NEWSYSLOG changes References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302231911.14264.wes@softweyr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4032de80802fffe8120812ed874b7bec2350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Garance A Drosihn wrote: > Yes, I have an idea of what I want to do for that, but it will be > done as a separate patch. I have several different changes in > mind, and I'm trying to figure out the best order to make them. I'm pretty happy with what Garance has said he intends to do in this area. > Note that the problem isn't the first roll (where the 40-meg file > turns into /var/log/somelog.0), it's that later checking may see > that /var/log/somelog is 0 bytes (particularly if /var/log is out > of disk space), and thus the 40-meg logfile is *never* rotated > after that first shot. Actually, the problem in the case of the InterJet was that in the case of an out-of-space, the space was not available, not that there would not be subsequent log rolls, as you imply here. Specifically, there are a lot of things that go on /var besides log files. One of these is the pid files for various programs, which fail to start if they cannot be created, and many of which do not necessarily run as root. Another is temporary files, for things like mail queue entries, which may occur on /var/tmp, if it is the designated /tmp directory. This is a common case, when /var is the only writeable FS in the system (for example). > Once I add the -R option, and once you add the improvements to > syslogd itself, then the situation that Terry describes is less > likely to happen. I do want to do something about it, though. As long as it's possible to set *some* option up to drain the FS down to a less than full state, I'm mostly agnostic on the method used to specifically do it. I've stated my preferences, from a product design and remote support perspective (rewrite history and save only the last XXX of the last log file); I think that's the most reasonable approach, but there's also something to be said about saving the events around the time the failure started that ended up leaving me with a full disk. So... I'm mostly agnostic. I never fixed this at Whistle because it was Archie's code, and the best way to piss off your coworkers is to rewrite their code out from under them. 8-) 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message