From owner-freebsd-questions@FreeBSD.ORG Wed Mar 28 18:38:51 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 7CECC16A404 for ; Wed, 28 Mar 2007 18:38:51 +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 5B8D913C4C2 for ; Wed, 28 Mar 2007 18:38:51 +0000 (UTC) (envelope-from dan@more.net) Received: from [127.0.0.1] (localhost [127.0.0.1]) by jane.spg.more.net (Postfix) with ESMTP id E8A9F9C0D9 for ; Wed, 28 Mar 2007 13:38:53 -0500 (CDT) From: Dan D Niles To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Wed, 28 Mar 2007 13:38:53 -0500 Message-Id: <1175107133.21170.24.camel@jane.spg.more.net> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Subject: 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: Wed, 28 Mar 2007 18:38:51 -0000 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). I found an old bug report from 2004 that is still open, but nothing has been done. I also found an old article about someone (thinking about) rewriting fsck to use disk instead of memory, but no follow-up. Has anyone found a solution to this? Any suggestions? HELP! Thanks, Dan