From owner-freebsd-current Fri Dec 8 15:28:31 2000 From owner-freebsd-current@FreeBSD.ORG Fri Dec 8 15:28:28 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mail.Netz-Werker.NET (SRV1.Netz-Werker.NET [195.122.150.66]) by hub.freebsd.org (Postfix) with ESMTP id D7B2B37B400 for ; Fri, 8 Dec 2000 15:28:27 -0800 (PST) Received: (from tomsoft@localhost) by mail.Netz-Werker.NET (8.8.8/8.8.8) id AAA18025; Sat, 9 Dec 2000 00:28:22 +0100 (CET) (envelope-from tomsoft) Message-ID: <20001209002821.58836@Netz-Werker.NET> Date: Sat, 9 Dec 2000 00:28:21 +0100 From: Thomas To: "Rogier R. Mulhuijzen" Cc: scrappy@hub.org, freebsd-current@freebsd.org, growfs@tomsoft.com Subject: Re: growfs(8) for FreeBSD References: <20001208113836.B32113@cichlids.cichlids.com> <4.3.2.7.0.20001208204155.00cbee40@mail.drwilco.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <4.3.2.7.0.20001208204155.00cbee40@mail.drwilco.net>; from Rogier R. Mulhuijzen on Fri, Dec 08, 2000 at 08:45:54PM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, In an attempt to resolve that discussion: > > > No, vinum can do this alone. > > > But you couldn't grow the _fs_ after that, so there was no use for > > > this vinum feature. Exactly that was the motivation for writing that utility > >Okay, that is what I said ... "add an n+1 drive to ... and increase the > >size of the file system" ... ... which means basically the same :-) > I still don't see why growfs wouldn't work on a non-vinum volume. It's just > a manipulation of the FS, not of the underlying device. But let's leave > this for the makers of growfs to answer shall we =) again correct, technically it is possible to use growfs on ANY object which has a ufs filesystem structure: vinum volume, a partition on a disk, ccd device, even a flat file provided, that there is some space on the end(!) of that medium which is not yet taken by the ufs structures. So you can use it either with hardware RAID controllers which allow for non destructive extending of the size of existing volumes at the end(!). As well you can use it for vinum volumes. Currently this is only possible for mirrored plexes of any kind, or unmirrored concatenated plexes. All other devices cant be changed without destroying the contents. And you can just give some space in the partition table (disklabel) to an existing partition (at its end) and let the filesystem grow within that bound. A shrinkfs is NOT written. The design allows for writing it, but we currently consider other features much more important, like * growing a mounted filesystem * handling file systems with active snapshots is in * grow in a way that we are always safe to loose the power during the growing (softdep concept) * handle byteorder correct on non intel platform (we don't have any alpha hardware but think ufs on alpha is not ufs on intel) * provide the current funktionality on FreeBSD-4 at least, maybe FreeBSD-3 Thomas -- Th.-H.v.Kamptz Die Netz-Werker GmbH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message