From owner-freebsd-questions@FreeBSD.ORG Mon May 4 13:10:46 2009 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 9E05D1065677; Mon, 4 May 2009 13:10:46 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 46E1F8FC1F; Mon, 4 May 2009 13:10:46 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:Sender; b=PE9JDDEuZar2mk6ngoJRX/I30Cwdoriez4YcR2oDWP5GaR/0ghl+NhxymH5ZUmOHN1cFNnFZiv9aReX+R8IBDVBpoO8igx/M27+x1DsHTrs9SaDZ1Ki+KpMGE1Z7aww+XuddSpXcPZXP9PHFfLn4r+p5VhlrOhGBi4O8heundKE=; Received: from amnesiac.at.no.dns (ppp85-141-64-167.pppoe.mtu-net.ru [85.141.64.167]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1M0xmc-00087u-F3; Mon, 04 May 2009 17:00:34 +0400 Date: Mon, 4 May 2009 17:00:32 +0400 From: Eygene Ryabinkin To: Antonio Tommasi Message-ID: References: <49FA2E3F.9050108@entel.upc.edu> <3a142e750905010655i5e56282eu240e13f2a03dfb02@mail.gmail.com> <49FB55A3.605@entel.upc.edu> <3a142e750905011716g39ea55f0kd081bfdd55709b37@mail.gmail.com> <49FBF9B5.40800@entel.upc.edu> <3a142e750905020617y40f62463ma91b46a015b2b2ab@mail.gmail.com> <49FD61DD.7070903@entel.upc.edu> <3a142e750905030535v4cfe0103r1d8a17e828f6da9b@mail.gmail.com> <57348.147.83.40.234.1241416909.squirrel@webmail.entel.upc.edu> <49FEC893.8030305@unile.it> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <49FEC893.8030305@unile.it> Sender: rea-fbsd@codelabs.ru Cc: freebsd-questions@freebsd.org Subject: Re: Filesystem and bigger files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 13:10:47 -0000 Antonio, good day. Mon, May 04, 2009 at 12:50:59PM +0200, Antonio Tommasi wrote: > i've freebsd 7.0 in production and i've this hard-drive > > Filesystem Size Used Avail Capacity Mounted on > /dev/aacd0s1a 64G 15G 44G 26% / > > In a directory (spamassassin) i've one file (auto-whitelist) with > dimension 4.0 TB and one file (bayes_learn) with dimension 1.0TB > > How is it possible? How this file are managed? First, this isn't a proper question for the freebsd-net mailing list, so I am redirecting it to freebsd-questions. To answer your question: most likely, your filesystem is damaged and should be fsck'ed. Reboot in a single-user mode and run 'fsck -p /dev/aacd0s1a' on your filesystem. If it will correct the things -- it's good. If not, run 'fsck /dev/aacd0s1a'. It is always good to have backups ;)) And the possible filesystem corruption is one of the reasons why people prefer multiple partitions on the system, rather then having one big and fat '/' partition. Another possibility is that these files are sparse: they have "holes" that aren't yet filled in. Tb sizes are insane, but may be you directed SA to do it. Here is the illustration of sparse file creation and its impact on the filesystem size: ----- Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad4s2f 24808094 14819988 8003460 65% /0 $ dd if=/dev/zero of=test.bin bs=1K count=1 seek=10M 1+0 records in 1+0 records out 1024 bytes transferred in 0.000049 secs (20951060 bytes/sec) $ ls -l test.bin -rw-r--r-- 1 usr usr 10737419264 4 อมส 16:54 test.bin $ df . Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad4s2f 24808094 14820046 8003402 65% /0 ----- -- Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook {_.-``-' {_/ #