From owner-freebsd-questions@FreeBSD.ORG Mon Dec 5 23:25:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E73AF16A41F for ; Mon, 5 Dec 2005 23:25:55 +0000 (GMT) (envelope-from robert@webtent.com) Received: from columbus.webtent.org (static-70-110-70-42.tampfl.fios.verizon.net [70.110.70.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 337C643D5D for ; Mon, 5 Dec 2005 23:25:55 +0000 (GMT) (envelope-from robert@webtent.com) Received: from localhost (localhost [127.0.0.1]) by columbus.webtent.org (Postfix) with ESMTP id 2E6E6CFAB6; Mon, 5 Dec 2005 18:25:52 -0500 (EST) From: Robert Fitzpatrick To: Norberto Meijome In-Reply-To: <4393CD2C.2020803@meijome.net> References: <43937915.7020300@webtent.net> <4393906D.5060105@meijome.net> <439398D5.8000401@webtent.net> <43939AE2.90107@meijome.net> <4393CD2C.2020803@meijome.net> Content-Type: text/plain Organization: WebTent Networking, Inc. Date: Mon, 05 Dec 2005 18:25:47 -0500 Message-Id: <1133825147.3177.81.camel@columbus.webtent.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: Too many files crashing services X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 23:25:56 -0000 On Mon, 2005-12-05 at 16:16 +1100, Norberto Meijome wrote: > Norberto Meijome wrote: > > > > No, you are running out of maxfiles, as per "kern.maxfiles limit > > exceeded by uid ..." . > > errr... of course, i meant to say, you have more open files than allowed > by kern.maxfiles. Well, I just did some fsck /var and get a few INCORRECT BLOCK COUNT in Phase 1, lots of these in Phase 2: UNALLOCATED I=967619 OWNER=postfix MODE=100600 SIZE=353 MTIME=Dec 5 18:18 2005 FILE=/spool/postfix/defer/E/E60BEEC3C2 UNEXPECTED SOFT UPDATE INCONSISTENCY REMOVE? no And plenty of this in Phase 4: UNREF FILE I=22 OWNER=vscan MODE=100640 SIZE=80174 MTIME=Jun 20 11:30 2005 RECONNECT? no So on and so on...could these things cause my 'Too many open files' issues and reaching kern.maxfiles? And what are the risks of allowing all these issues to 'REMOVE' and 'RECONNECT' in single user mode? fsck /usr not as bad, but still: esmtp# fsck /usr ** /dev/da0s1d (NO WRITE) ** Last Mounted on /usr ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts LINK COUNT FILE I=2425895 OWNER=pgsql MODE=0 SIZE=0 MTIME=Dec 5 18:23 2005 COUNT 0 SHOULD BE -1 ADJUST? no ** Phase 5 - Check Cyl groups SUMMARY INFORMATION BAD SALVAGE? no ALLOCATED FILE 2425895 MARKED FREE ALLOCATED FRAG 9702124 MARKED FREE BLK(S) MISSING IN BIT MAPS SALVAGE? no 326108 files, 2473634 used, 7443685 free (128341 frags, 914418 blocks, 1.3% fragmentation) -- Robert