From owner-freebsd-geom@FreeBSD.ORG Mon Apr 9 15:24:26 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2080C16A401; Mon, 9 Apr 2007 15:24:26 +0000 (UTC) (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 A3AC013C483; Mon, 9 Apr 2007 15:24:25 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 272C945B26; Mon, 9 Apr 2007 17:24:24 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id EEA6C45696; Mon, 9 Apr 2007 17:24:11 +0200 (CEST) Date: Mon, 9 Apr 2007 17:24:01 +0200 From: Pawel Jakub Dawidek To: Gergely CZUCZY Message-ID: <20070409152401.GG76673@garage.freebsd.pl> References: <20070408140215.GA54201@harmless.hu> <86k5wmu420.fsf@dwp.des.no> <20070408181916.GA59715@harmless.hu> <86bqhyu225.fsf@dwp.des.no> <461A4D93.3010200@freebsd.org> <20070409143818.GA86722@harmless.hu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+1TulI7fc0PCHNy3" Content-Disposition: inline In-Reply-To: <20070409143818.GA86722@harmless.hu> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (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=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: volume management 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, 09 Apr 2007 15:24:26 -0000 --+1TulI7fc0PCHNy3 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 09, 2007 at 04:38:18PM +0200, Gergely CZUCZY wrote: > On Mon, Apr 09, 2007 at 09:28:35AM -0500, Eric Anderson wrote: > > On 04/08/07 13:57, Dag-Erling Sm??rgrav wrote: > > >Gergely CZUCZY writes: > > >>yeap, i know about ZFS, as i assume, it will need around 1.5-2 years > > >>from now, when 7.0-RELEASE will be ready. > > >No, it's expected this fall. > > >>and i'm looking for a solution for a production environment within > > >>a year. > > >There is no other solution. > >=20 > > How about gconcat? You could create a mirror, then gconcat another mir= ror, etc, extending the GEOM.=20 > > Then run growfs on that extended volume. Wouldn't that work? > why gmirror? gconcat somehow could be used for this, > but > 1) i see no attach operation for gconcat to add > providers on the fly. > 2) this would require to always create subpartitions/bsdlabels > on the disk, and add a bit more on need. Slow down:) Implementing off-line 'attach' operation is trivial and on-line 'attach' operation is also easy, but because you need to unmount file system anyway, off-line attach is ok. Let's assume you have currently two disks: da0 and da1. # gconcat label foo da0 da1 # newfs /dev/concat/foo # mount /dev/concat/foo /foo and you want to extend your storage by adding two disks: da2 and da3: # umount /foo # gconcat stop foo # gconcat label foo da0 da1 da2 da3 # growfs /dev/concat/foo # mount /dev/concat/foo /foo That's all. You can operate on mirrors too: # gmirror label foo0 da0 da1 # gconcat label foo mirror/foo0 # newfs /dev/concat/foo # mount /dev/concat/foo /foo And extending: # gmirror label foo1 da2 da3 # umount /foo # gconcat stop foo # gconcat label foo mirror/foo0 mirror/foo1 # growfs /dev/concat/foo # mount /dev/concat/foo /foo --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --+1TulI7fc0PCHNy3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGGlqRForvXbEpPzQRAgn3AKCYGjzzSwHQ3YQoM4MfcFidOPuGRACeL59S LgWMgtl4DMxHTPGNMyQEpdg= =+6u+ -----END PGP SIGNATURE----- --+1TulI7fc0PCHNy3--