From owner-freebsd-geom@FreeBSD.ORG Mon Jan 30 20:29:34 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C43716A427 for ; Mon, 30 Jan 2006 20:29:34 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id C073743D45 for ; Mon, 30 Jan 2006 20:29:33 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id F039050A7F; Mon, 30 Jan 2006 21:29:31 +0100 (CET) Received: from localhost (dlt101.neoplus.adsl.tpnet.pl [83.24.49.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 182E850A16; Mon, 30 Jan 2006 21:29:25 +0100 (CET) Date: Mon, 30 Jan 2006 21:29:21 +0100 From: Pawel Jakub Dawidek To: Markus =?iso-8859-2?Q?=D6rebrand?= Message-ID: <20060130202920.GC928@garage.freebsd.pl> References: <33656995C5C5094A983DE84DA649A92449F8CC@lulex02.ad.operax.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jy6Sn24JjFx/iggw" Content-Disposition: inline In-Reply-To: <33656995C5C5094A983DE84DA649A92449F8CC@lulex02.ad.operax.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: Expandable filesystem with more disk X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 20:29:34 -0000 --jy6Sn24JjFx/iggw Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 30, 2006 at 03:55:55PM +0100, Markus =D6rebrand wrote: +> I need a possibility to expand a filesystem by adding more disk. I am +> sensing that a certain GEOM setup would do the job. +>=20 +> The ideal conditions would be: +> - The filesystem is created on a GEOM.=20 +> - Initially, the GEOM has only one consumer. +> - A consumer is a FreeBSD partition (created with bsdlabel(8)) +> - The size of the GEOM is expandable by adding more consumers. +> - The filesystem is expandable by using growfs(8). +>=20 +>=20 +> Are these conditions realistic? What is the procedure to a) do basic +> setup, b) expand the filesystem? +>=20 +> Would this be secure (i.e. is there a risk of data corruption or -loss)? +> I am fairly confident that the hardware should pose no security risk +> (hardware RAID5, UPS on disks and server). You can do it with gconcat(8). Create concatenated device with two components: # gconcat label NAME ad0s1d ad1 # newfs /dev/concat/NAME When you want to add another disk: # gconcat label NAME ad0s1d ad1 ad2 # growfs /dev/concat/NAME With 'label' and 'create' subcommand you need to give at least two providers currently, but now I see it will be useful to allow to specify only one. I'll change it soon. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --jy6Sn24JjFx/iggw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD3ncgForvXbEpPzQRAibNAJ9jJAhSftmVdtVEEyGztLbmlI5yFACglf4M cQbRCmT3Jy+ibv/BOgbD3ag= =B1tE -----END PGP SIGNATURE----- --jy6Sn24JjFx/iggw--