From owner-freebsd-fs@FreeBSD.ORG Fri May 25 12:38:24 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B5C616A46F for ; Fri, 25 May 2007 12:38:24 +0000 (UTC) (envelope-from freebsd-fs@tychl.net) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [204.127.192.82]) by mx1.freebsd.org (Postfix) with ESMTP id 11A0B13C465 for ; Fri, 25 May 2007 12:38:24 +0000 (UTC) (envelope-from freebsd-fs@tychl.net) Received: from masq.tychl.net (tychl.no-ip.org[67.174.137.176]) by comcast.net (rwcrmhc12) with ESMTP id <20070525123823m1200bkf86e>; Fri, 25 May 2007 12:38:23 +0000 Received: from localhost (localhost [127.0.0.1]) by masq.tychl.net (Postfix) with ESMTP id 1C3E61CB4B; Fri, 25 May 2007 08:38:23 -0400 (EDT) X-Virus-Scanned: amavisd-new at tychl.net Received: from masq.tychl.net ([127.0.0.1]) by localhost (masq.tychl.net [127.0.0.1]) (amavisd-new, port 10024) with SMTP id bXPtDSt6iEtg; Fri, 25 May 2007 08:38:19 -0400 (EDT) Received: from [127.0.0.1] (67-39-225-23.ded.ameritech.net [67.39.225.23]) by masq.tychl.net (Postfix) with ESMTP id E9D691CB4A; Fri, 25 May 2007 08:38:18 -0400 (EDT) Message-ID: <4656D8B5.4090806@tychl.net> Date: Fri, 25 May 2007 08:38:13 -0400 From: Nick Gustas User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: "Arne \"WXrner\"" References: <102362.90990.qm@web30305.mail.mud.yahoo.com> In-Reply-To: <102362.90990.qm@web30305.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: Growing UFS beyond 2 TB X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2007 12:38:24 -0000 Arne WXrner wrote: > --- Nick Gustas wrote: > >> Anyhow, I made the three changes you mentioned, and growfs still >> compiles clean, >> >> > Does that mean, that there r no warnings? > > yep AMD64# pwd /usr/src/sbin/growfs.edit AMD64# make cc -O2 -fno-strict-aliasing -pipe -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c growfs.c cc -O2 -fno-strict-aliasing -pipe -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -o growfs growfs.o gzip -cn growfs.8 > growfs.8.gz No complaints about arg 3 being the wrong datatype or signed vs unsigned errors, at least on AMD64. Doesn't mean it'll do what we need though! :) >> and runs with proper display, but running fsck -y on the >> grown file system scrolls for a long time with tons of errors and >> eventually bombs out asking me to run it again. running it again doesn't >> help. >> >> > Did u try to run the original R6.2 growfs on a smaller fs? I have heard, that > growfs has a general malfunction, so that it produces things, that fsck finds > funny... If u repeat fsck often, those warnings will disapear... :-)) > > It seems you are right, I just tried to grow a ~500GB filesystem to about 990GB on a i386 6.2 server, fsck had a fit even though the file system was mountable. Second run of fsck is still going! I thought I had tried growfs successfully on a sub 2TB FS sometime around 5.4 or 5.5, maybe I was mistaken. It was on a 4TB server, so when growfs gave a weird display when I tried it to grow a 2TB FS to 3TB, I never tried it again and bought all the drives I needed to fill the chassis right away. >> I've updated >> >> http://masq.tychl.net/growfs.patch >> >> with the changes you suggested. >> >> Keep in mind I'm no C programmer, but I can follow direction and would >> love to see growfs 2+TB clean :) >> >> > Yup - its ok... I dont know so much about UFS, too... I was just wondering a > bit... :-) > > -Arne > > >