From owner-freebsd-stable@FreeBSD.ORG Wed Jul 26 17:05:36 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FC6A16A5DF for ; Wed, 26 Jul 2006 17:05:36 +0000 (UTC) (envelope-from sven@dmv.com) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76B3C43D53 for ; Wed, 26 Jul 2006 17:05:35 +0000 (GMT) (envelope-from sven@dmv.com) Received: from mail-gw-cl-a.dmv.com (mail-gw-cl-a.dmv.com [216.240.97.38]) by smtp-gw-cl-d.dmv.com (8.12.10/8.12.10) with ESMTP id k6QH5Vk1010140; Wed, 26 Jul 2006 13:05:31 -0400 (EDT) (envelope-from sven@dmv.com) Received: from [64.45.134.154] (dogpound.dyndns.org [64.45.134.154]) (authenticated bits=0) by mail-gw-cl-a.dmv.com (8.12.9/8.12.9) with ESMTP id k6QH5QDs003263; Wed, 26 Jul 2006 13:05:30 -0400 (EDT) (envelope-from sven@dmv.com) Message-ID: <44C7A147.9010106@dmv.com> Date: Wed, 26 Jul 2006 13:07:19 -0400 From: Sven Willenberger User-Agent: Thunderbird 1.5.0.4 (X11/20060601) MIME-Version: 1.0 To: Feargal Reilly References: <20060721140005.5365e4b7@mablung.edhellond.fbi.ie> <200607241514.k6OFERos052696@lurza.secnetix.de> <20060724164832.11683f08@mablung.edhellond.fbi.ie> In-Reply-To: <20060724164832.11683f08@mablung.edhellond.fbi.ie> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.48 on 216.240.97.42 X-Scanned-By: MIMEDefang 2.48 on 216.240.97.38 Cc: freebsd-stable@freebsd.org Subject: Re: filesystem full error with inumber X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2006 17:05:36 -0000 Feargal Reilly presumably uttered the following on 07/24/06 11:48: > On Mon, 24 Jul 2006 17:14:27 +0200 (CEST) > Oliver Fromme wrote: > >> Nobody else has answered so far, so I try to give it a shot ... >> >> The "filesystem full" error can happen in three cases: >> 1. The file system is running out of data space. >> 2. The file system is running out of inodes. >> 3. The file system is running out of non-fragmented blocks. >> >> The third case can only happen on extremely fragmented >> file systems which happens very rarely, but maybe it's >> a possible cause of your problem. > > I rebooted that server, and df then reported that disk at 108%, > so it appears that df was reporting incorrect figures prior to > the reboot. Having cleaned up, it appears by my best > calculations to be showing correct figures now. > >> > kern.maxfiles: 20000 >> > kern.openfiles: 3582 >> >> Those have nothing to do with "filesystem full". >> > > Yeah, that's what I figured. > >> > Looking again at dumpfs, it appears to say that this is >> > formatted with a block size of 8K, and a fragment size of >> > 2K, but tuning(7) says: [...] >> > Reading this makes me think that when this server was >> > installed, the block size was dropped from the 16K default >> > to 8K for performance reasons, but the fragment size was >> > not modified accordingly. >> > >> > Would this be the root of my problem? >> >> I think a bsize/fsize ratio of 4/1 _should_ work, but it's >> not widely used, so there might be bugs hidden somewhere. >> > > Such as df not reporting the actual data usage, which is now my > best working theory. I don't know what df bases it's figures on, > perhaps it either slowly got out of sync, or more likely, got > things wrong once the disk filled up. > > I'll monitor it to see if this happens again, but hopefully > won't keep that configuration around for too much longer anyway. > > Thanks, > -fr. > One of my machines that I recently upgraded to 6.1 (6.1-RELEASE-p3) is also exhibiting df reporting wrong data usage numbers. Notice the negative "Used" numbers below: > df -h Filesystem Size Used Avail Capacity Mounted on /dev/da0s1a 496M 63M 393M 14% / devfs 1.0K 1.0K 0B 100% /dev /dev/da0s1e 989M -132M 1.0G -14% /tmp /dev/da0s1f 15G 478M 14G 3% /usr /dev/da0s1d 15G -1.0G 14G -8% /var /dev/md0 496M 228K 456M 0% /var/spool/MIMEDefang devfs 1.0K 1.0K 0B 100% /var/named/dev Sven