From owner-freebsd-fs@FreeBSD.ORG Fri Sep 24 21:21:56 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 345D8106566B for ; Fri, 24 Sep 2010 21:21:56 +0000 (UTC) (envelope-from rick@rix.kiwi-computer.com) Received: from rix.kiwi-computer.com (66-191-70-202.static.stcd.mn.charter.com [66.191.70.202]) by mx1.freebsd.org (Postfix) with SMTP id DED4B8FC0C for ; Fri, 24 Sep 2010 21:21:55 +0000 (UTC) Received: (qmail 860 invoked by uid 2000); 24 Sep 2010 21:21:54 -0000 Date: Fri, 24 Sep 2010 16:21:54 -0500 From: "Rick C. Petty" To: Josh Paetzel , Dean Hamstead Message-ID: <20100924212154.GA263@rix.kiwi-computer.com> References: <4C9C7C32.3070909@fragfest.com.au> <201009241206.53828.josh@tcbug.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201009241206.53828.josh@tcbug.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-fs@freebsd.org Subject: Re: growfs on a large disk X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2009@kiwi-computer.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2010 21:21:56 -0000 > On Friday, September 24, 2010 05:23:46 am Dean Hamstead wrote: > > > > To give some background, im running the filesystem on a raid array > > running on an areca raid card. I have an existing filesytem which was > > formatting /dev/da0 and mounting it. (I understand that this is the > > preferred alternative to the deprecated 'dangerously dedicated' mode). I thought using the whole device *was* the "dangerously dedicated" mode, since there is no partition table on the disk this way. http://www.freebsd.org/doc/en/books/faq/disks.html#DANGEROUSLY-DEDICATED > > fdisk shows us... This is meaningless if you're using dangerously-dedicated disks. > > now if i unmount /dev/da0 and run growfs /dev/da0 i get the following > > > > [root@batou /home/dean]# growfs /dev/da0 > > growfs: we are not growing (2929687296->685024256) Looks like an integer maybe wrapped around somewhere? I can't tell for sure. > > with lots of googling, i have found that there is much talk in various > > freebsd forums about the need to use disklabel. however it seems unable > > to fathom such a large disk... If you're already using the device in dangerously-dedicated mode, you may not be able to disklabel it. Besides, you should use GPT instead. #see gpart(8) > > [root@batou /home/dean]# disklabel /dev/da0 > > disklabel: disks with more than 2^32-1 sectors are not supported This is true, which is why I'm surprised anyone recommended disklabel. And "disklabel" was deprecated in favor of "bsdlabel". > > hopefully i am doing something wrong, or there is a patch set for growfs? I'm not sure growfs is your problem. Are you using UFS1 or UFS2? What did you specify as the fragment size when creating the file system? You can find this out by doing: ffsinfo -l 1 /dev/da0 | egrep '(fsize|magic)' On Fri, Sep 24, 2010 at 12:06:45PM -0500, Josh Paetzel wrote: > Not sure if you are running into a growfs limitation, you're certainly running > into the limits of UFS with those sizes. Have you considered ZFS? You must be talking about UFS1, because UFS2 can support devices in the zettabytes (billions of terabytes). #see http://en.wikipedia.org/wiki/UFS2 > The man page for growfs mentions that some free space is needed in the first > cylinder group to resize. Perhaps that is the problem you are running in to. The OP's best option is to dump/restore the filesystem, thereby correcting the "dangerously-dedicated" problem as well as use a partitioning scheme invented this millenium (GPT). -- Rick C. Petty