From owner-freebsd-questions@FreeBSD.ORG Thu Mar 29 02:47:04 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A059316A400 for ; Thu, 29 Mar 2007 02:47:04 +0000 (UTC) (envelope-from dan@more.net) Received: from jane.spg.more.net (jane.spg.more.net [207.160.133.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7E99C13C459 for ; Thu, 29 Mar 2007 02:47:04 +0000 (UTC) (envelope-from dan@more.net) Received: from [192.168.1.200] (usul.tranquility.net [208.141.107.229]) by jane.spg.more.net (Postfix) with ESMTP id E2D4C9C0D9; Wed, 28 Mar 2007 21:47:09 -0500 (CDT) From: Dan D Niles To: Josh Paetzel In-Reply-To: <20070329012110.GB43851@tcbug.org> References: <1175107133.21170.24.camel@jane.spg.more.net> <20070329012110.GB43851@tcbug.org> Content-Type: text/plain Date: Wed, 28 Mar 2007 21:47:02 -0500 Message-Id: <1175136422.6636.14.camel@usul> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: fsck fails on 6T system 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: Thu, 29 Mar 2007 02:47:04 -0000 On Wed, 2007-03-28 at 20:21 -0500, Josh Paetzel wrote: > Dan D Niles wrote: > > I am trying to fsck a 6T filesystem on a server that crashed. I'm > > running FreeBSD 6.2-p3. > > > > # fsck -t ufs -y /dev/da0 > > fsck_ufs: cannot alloc 1993797728 bytes for inoinfo > > > > I also tried: > > > > # fsck -t ufs -f -p /dev/da0 > > /dev/da0: UNKNOWN FILE TYPE I=11895232 > > /dev/da0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. > > > > I built a custom kernel with MAXDSIZ and DFLDSIZ just under 3G, and got > > the same results. It was at about 430M in use when it crashed, so the > > total would be 2332 M which is less that the size allowed (reported by > > limits). > > [clip] > > RAM...lots and lots of RAM. Start with about 8 gigs and give it a > try. > The machine has 3G of RAM. But as I said, it should only be using 2.3G when it stops. It has 3G of space so adding more RAM wouldn't help. It does not appear that it will go past 2G even though I increased the process limits to near 3G. BTW, if MAXDSIZ plus MAXSSIZ is greater than the size of real memory the machine won't boot. I tried it. Also, the max memory FreeBSD can use is about 3.5G unless you use the experimental PAE kernel. Any other ideas on how to get fsck to work on a 6T filesystem? Thanks, Dan