From owner-freebsd-fs@FreeBSD.ORG Wed Jul 9 14:24:01 2008 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 F19321065693; Wed, 9 Jul 2008 14:24:01 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 69A768FC30; Wed, 9 Jul 2008 14:24:01 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m69ENtj0075768; Wed, 9 Jul 2008 16:23:59 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m69ENtJM075767; Wed, 9 Jul 2008 16:23:55 +0200 (CEST) (envelope-from olli) Date: Wed, 9 Jul 2008 16:23:55 +0200 (CEST) Message-Id: <200807091423.m69ENtJM075767@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, kaluna@gmail.com, brooks@FreeBSD.ORG In-Reply-To: <20080707154805.GA57420@lor.one-eyed-alien.net> X-Newsgroups: list.freebsd-fs User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.2-STABLE-20070808 (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-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 09 Jul 2008 16:24:00 +0200 (CEST) Cc: Subject: Re: Filesystem is not clean - run fsck X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, kaluna@gmail.com, brooks@FreeBSD.ORG List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 14:24:02 -0000 Brooks Davis wrote: > On Sat, Jul 05, 2008 at 10:58:33AM +0200, Carlos Luna wrote: > > Hi I'd used freenas about 5 years without any problem. Now I can?t mount my > > raid volume and in his sourceforge forums seems they cant help me. Hope this > > list is the right list for my issue. > > > > When I try to fsck,I get: > > casa:/dev# fsck -t ufs -y /dev/pst0s1 > > ** /dev/pst0s1 > > ** Last Mounted on /mnt/raid > > ** Phase 1 - Check Blocks and Sizes > > -4439300862985009506 BAD I=86 > > 3443570138036206556 BAD I=86 > > -7476842757969057647 BAD I=86 > > -8078484667502176485 BAD I=86 > > 2249916482063805839 BAD I=86 > > -3291681609520367063 BAD I=86 > > 7780434385339928353 BAD I=86 > > -4372486048108189431 BAD I=86 > > 8774078035736727371 BAD I=86 > > -2035310265760485777 BAD I=86 > > 6848295312539782814 BAD I=86 > > EXCESSIVE BAD BLKS I=86 > > CONTINUE? yes > > > > ... > > .... > > > > UNKNOWN FILE TYPE I=7254140 > > CLEAR? yes > > > > UNKNOWN FILE TYPE I=7254141 > > CLEAR? yes > > > > UNKNOWN FILE TYPE I=7254142 > > CLEAR? yes > > > > UNKNOWN FILE TYPE I=7254143 > > CLEAR? yes > > > > fsck_ufs: cannot alloc 3037795832 bytes for inoinfo > > I have a lot of info there, 1 TB. I will appreciate any help. > > It looks like you have a somewhat large file system, apparently with a > lot of small files on it. The message indicates that you need to be > able to allocate over 3GB of address space to handle this. As such you > will need a 64-bit machine, ideally with 4GB or more RAM and probably > with a large swap partition. > > In theory it should be possible to write a constrained memory use version of > fsck, but to my knowledge no one has done so and I suspect it would be a > time consuming development effort. There's another possibility. I remember cases where the FS structures were damaged in a way that fsck picked up wrong size information, and then tried to allocate ridiculously large amounts of memory, even for a small file system. That could be the case here, too. 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 "And believe me, as a C++ programmer, I don't hesitate to question the decisions of language designers. After a decent amount of C++ exposure, Python's flaws seem ridiculously small." -- Ville Vainio