From owner-freebsd-questions@FreeBSD.ORG Mon Mar 3 20:01:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92959106566C for ; Mon, 3 Mar 2008 20:01:32 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0237C8FC23 for ; Mon, 3 Mar 2008 20:01:27 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8) with ESMTP id m23K0Oj1067446; Mon, 3 Mar 2008 21:00:24 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.13.8/8.13.8/Submit) with ESMTP id m23K0Lwq067442; Mon, 3 Mar 2008 21:00:24 +0100 (CET) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 3 Mar 2008 21:00:20 +0100 (CET) From: Wojciech Puchar To: Jeffery Swan In-Reply-To: <20080303151000.4183D1F50B1@ws1-2.us4.outblaze.com> Message-ID: <20080303205522.L52185@wojtek.tensor.gdynia.pl> References: <20080303151000.4183D1F50B1@ws1-2.us4.outblaze.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Expanding file 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: Mon, 03 Mar 2008 20:01:32 -0000 growfs can expand UFS filesystem. worked for me with normal partitions, if you use geli with sector size != 512 bytes, it won't, but i've patched it for that. still - it's buggy. but really don't assume it won't screw up your filesystem... if you like to try do: a)unmount this fs b) fsck it to make sure clear up new space with zeroes (yes, it will make it easier to survive after growfs) use dd if=/dev/zero of=/dev/yourpartition bs=1m seek=oldsizeinmegabytes (to obtain size, use dumpfs read blocks data, divide by 2048 to get into megs, round result up) run growfs fsck this again with -y option, preferably on screen as you'll get megabytes of error messages about screwed up inodes (growfs doesn't properly initialize new ones, used ones are ok) data will survive, i had a success just my root directory got destroyed, and all subdirs and files went into lost+found).