From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 25 01:24:00 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C7FE16A41A; Tue, 25 Sep 2007 01:24:00 +0000 (UTC) (envelope-from frank@exit.com) Received: from tinker.exit.com (tinker.exit.com [206.223.0.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1D21313C45B; Tue, 25 Sep 2007 01:23:59 +0000 (UTC) (envelope-from frank@exit.com) Received: from jill.exit.com (jill.exit.com [206.223.0.4]) by tinker.exit.com (8.14.1/8.14.1) with ESMTP id l8P0sKOH053476; Mon, 24 Sep 2007 17:54:20 -0700 (PDT) (envelope-from frank@exit.com) Received: from jill.exit.com (localhost [127.0.0.1]) by jill.exit.com (8.14.1/8.14.1) with ESMTP id l8P0sKo6016200; Mon, 24 Sep 2007 17:54:20 -0700 (PDT) (envelope-from frank@exit.com) Received: (from frank@localhost) by jill.exit.com (8.14.1/8.14.1/Submit) id l8P0sKD5016199; Mon, 24 Sep 2007 17:54:20 -0700 (PDT) (envelope-from frank@exit.com) X-Authentication-Warning: jill.exit.com: frank set sender to frank@exit.com using -f From: Frank Mayhar To: Don Lewis In-Reply-To: <200709242330.l8ONU0IT008004@gw.catspoiler.org> References: <200709242330.l8ONU0IT008004@gw.catspoiler.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Exit Consulting Date: Mon, 24 Sep 2007 17:54:20 -0700 Message-Id: <1190681660.60981.2.camel@jill.exit.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port X-Virus-Scanned: ClamAV 0.91.1/4383/Mon Sep 24 15:26:10 2007 on tinker.exit.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org, samflanker@gmail.com Subject: Re: fsck of large volume with small memory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: frank@exit.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2007 01:24:00 -0000 On Mon, 2007-09-24 at 16:30 -0700, Don Lewis wrote: > On 24 Sep, sam wrote: > > hi, all > > http://lists.freebsd.org/pipermail/freebsd-questions/2007-June/151686.html > > > > my problem > > # fsck /dev/aacd0s1f > > ** /dev/aacd0s1f (NO WRITE) > > ** Last Mounted on /usr > > ** Phase 1 - Check Blocks and Sizes > > fsck_ufs: cannot alloc 2378019004 bytes for inoinfo > > I'd be willing to bet that one of the cylinder group blocks in your file > system got corrupted. > > > any solutions ? > > The patch below should allow a manual fsck to run to completion. I'd > recommend running "fsck -N" and capturing its output. Then use the clri > command (either standalone or in fsdb) to zero out the uninitialized > inodes that are unmasked by setting cg_initediblk to its maximum > possible value based on the file system parameters. > > Expect major file system lossage ... You might also want to try ports/sysutils/ffsrecov2 before you run this fsck. It might allow you to recover data that would otherwise be lost. (Like, say, if there are directories hidden beneath the corrupt inode.) -- Frank Mayhar frank@exit.com http://www.exit.com/ Exit Consulting http://www.gpsclock.com/ http://www.exit.com/blog/frank/ http://www.zazzle.com/fmayhar*