From owner-freebsd-fs@FreeBSD.ORG Fri Oct 1 07:03:54 2010 Return-Path: Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D7A71065670 for ; Fri, 1 Oct 2010 07:03:54 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id D154A8FC13 for ; Fri, 1 Oct 2010 07:03:53 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o9173blT060480; Fri, 1 Oct 2010 09:03:52 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o9173bgq060479; Fri, 1 Oct 2010 09:03:37 +0200 (CEST) (envelope-from olli) Date: Fri, 1 Oct 2010 09:03:37 +0200 (CEST) Message-Id: <201010010703.o9173bgq060479@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, torbjoern@gmail.com In-Reply-To: X-Newsgroups: list.freebsd-fs User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Fri, 01 Oct 2010 09:03:52 +0200 (CEST) Cc: Subject: Re: Strange ZFS problem, filesystem claims to be full when clearly not full X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, torbjoern@gmail.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2010 07:03:54 -0000 Torbjorn Kristoffersen wrote: > Here's some news, I finally found a file in a user's .spamassassin directory. > > $ ls -l .spamassassin/ > total 39877936 > -rw------- 1 gg gg 76546048 Sep 30 01:13 auto-whitelist > -rw------- 1 gg gg 48 Sep 30 01:51 bayes.lock > -rw------- 1 gg gg 20840448 Sep 30 01:13 bayes_seen > ---------- 1 gg gg 552902721536 Sep 30 01:52 temp > -rw------- 1 gg gg 1573 Sep 30 07:51 user_prefs > > > Now that is an incredibly huge (and invalid) file! Something like > 514GB, far more than the size of this ZFS filesystem. > I removed it, and there was no visible effect in df. Some funny > business must be happening with spamassassin though, > otherwise this strange file would not be so huge. Probably a so-called sparse file, i.e. a file with "holes" that don't actually occupy disk space. "ls -ls" will print the number of blocks actually allocated to the file on disk. I once wrote a script that calculates the "sparseness" of files. It's designed for UFS/UFS2. The output will be inaccurate for ZFS, but it should still give a rough number. http://www.secnetix.de/olli/scripts/sparsecheck Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I invented Ctrl-Alt-Delete, but Bill Gates made it famous." -- David Bradley, original IBM PC design team