From owner-freebsd-questions@FreeBSD.ORG Wed Jun 13 22:58:22 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 9BE4116A41F for ; Wed, 13 Jun 2007 22:58:22 +0000 (UTC) (envelope-from xinopher@web.de) Received: from service01.clicktivities.net (service01.clicktivities.net [213.61.250.27]) by mx1.freebsd.org (Postfix) with ESMTP id 184B313C469 for ; Wed, 13 Jun 2007 22:58:21 +0000 (UTC) (envelope-from xinopher@web.de) Received: from [192.168.2.101] (ns01.clicktivities.net [213.61.250.29]) (authenticated bits=0) by service01.clicktivities.net (8.12.11/8.12.6) with ESMTP id l5DMXUFd089865; Thu, 14 Jun 2007 00:33:31 +0200 (CEST) (envelope-from xinopher@web.de) Message-ID: <467070B9.6050600@web.de> Date: Thu, 14 Jun 2007 00:33:29 +0200 From: Andreas Kuehl User-Agent: Thunderbird 1.5.0.8 (X11/20061129) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-4.7 required=5.5 tests=AWL,BAYES_00 autolearn=ham version=2.63-service02.2003.12.19 X-Spam-Checker-Version: SpamAssassin 2.63-service02.2003.12.19 (2004-01-11) on service01.clicktivities.net Subject: fsck of large volume with small memory 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, 13 Jun 2007 22:58:22 -0000 Hi all Is there any possibillity to fsck a 1.2 TB 40% filled volume with a machine that has not that much memory, in this case only 1.5 GB. The fsck gives me a friendly # fsck /dev/da1 ** /dev/da1 ** Last Mounted on /fileserver ** Phase 1 - Check Blocks and Sizes fsck_ufs: cannot alloc 4290901164 bytes for inoinfo and quits. While the volume was not that full, fsck had no problems. Any hint to tune sysctl.conf or loader.conf or the kernel or anything else to give fsck the needed memory? I'm not yet at the point to mount readonly, scrap everything from the disk and repartition the volume to smaller pieces. Regards Andreas Kuehl --- Still owning my first cdrom containing 1.1.5 -------------schnipp------------- # swapinfo Device 1K-blocks Used Avail Capacity /dev/da0s1b 1048576 0 1048576 0% /dev/da0s2b 1048576 0 1048576 0% /dev/da0s3b 1048576 0 1048576 0% /dev/da0s3d 1048576 0 1048576 0% /dev/da0s3f 1048576 0 1048576 0% Total 5242880 0 5242880 0% # uname -a FreeBSD friend.local 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Tue Jun 12 23:13:07 CEST 2007 akuehl@friend.local:/build/obj/build/src/sys/SERVER i386 System is rebuild with freshly cvsuped /usr/src Kernel is GENERIC with added options SMP and removed unused controllers. # dmesg | less Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RELEASE-p5 #0: Tue Jun 12 23:13:07 CEST 2007 akuehl@friend.local:/build/obj/build/src/sys/SERVER ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2400.10-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebfbff Features2=0x400 Logical CPUs per core: 2 real memory = 1610547200 (1535 MB) avail memory = 1568907264 (1496 MB) (...) da1 at ahc0 bus 0 target 12 lun 0 da1: Fixed Direct Access SCSI-4 device da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled da1: 1248592MB (2557116416 512 byte sectors: 255H 63S/T 159173C) (...)