From owner-freebsd-questions@FreeBSD.ORG Mon Jun 23 18:42:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74DED1065680 for ; Mon, 23 Jun 2008 18:42:41 +0000 (UTC) (envelope-from nejc@skoberne.net) Received: from delusion.skoberne.net (lk.84.20.249.154.dc.cable.static.lj-kabel.net [84.20.249.154]) by mx1.freebsd.org (Postfix) with ESMTP id 244CD8FC44 for ; Mon, 23 Jun 2008 18:42:41 +0000 (UTC) (envelope-from nejc@skoberne.net) Received: from localhost (localhost [127.0.0.1]) by delusion.skoberne.net (Postfix) with ESMTP id 413F0B81B; Mon, 23 Jun 2008 20:34:51 +0200 (CEST) Received: from delusion.skoberne.net ([127.0.0.1]) by localhost (delusion.skoberne.net [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 36894-06; Mon, 23 Jun 2008 20:34:48 +0200 (CEST) Received: from [192.168.15.2] (simian.skoberne.local [192.168.15.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nejkopejko@skoberne.net) by delusion.skoberne.net (Postfix) with ESMTP id 754C8B81A; Mon, 23 Jun 2008 20:34:48 +0200 (CEST) Message-ID: <485FECC8.6010401@skoberne.net> Date: Mon, 23 Jun 2008 20:34:48 +0200 From: =?windows-1252?Q?Nejc_=8Akoberne?= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Erik Trulsson References: <485F8CE1.8010409@itlegion.ru> <20080623122741.GA69301@owl.midgard.homeip.net> In-Reply-To: <20080623122741.GA69301@owl.midgard.homeip.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Cc: User Questions Subject: Re: Strange Out of disk space 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, 23 Jun 2008 18:42:41 -0000 Hey, >> My guess is that something has mmap-ed a HUGE chunk of >> disk space. If I reboot the space is freed. > > Much more likely is that some program has deleted a large file, > while still holding it open. Usual suspect is some kind of log file, > or temporary file. I also had a similar problem, which I solved right now. :) So thanks for the inspiration to try harder to find out what was eating my disk space. df showed this: /dev/mirror/gm0s1f 112291390 83438178 19869902 81% /usr and "du -d1 -k /usr" showed: 46934133 /usr When this happened before, everything was freed after reboot. Just now, when writing this post, I went through my process list (I wanted to compare running services with your system) and found this: 2131 ?? DL 3:36,42 [md4] Then I remembered that once, quite some time ago, I created a file-backed filesystem using mdconfig. I did "mdconfig -l -u /dev/md4" and got this: md4 vnode 111G /usr/snapshot/snap Because /usr/snapshot/snap doesn't exist anymore (I remember deleting it one day, because I thought I didn't need it anymore), du shows wrong size. Then I just did "mdconfig -d -u /dev/md4" and everything is OK now: /dev/mirror/gm0s1f 112291390 46935874 56372206 45% /usr Hope that it maybe helps. :) Bye, Nejc