From owner-freebsd-geom@FreeBSD.ORG Fri Dec 16 16:33:29 2005 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 8505916A41F for ; Fri, 16 Dec 2005 16:33:29 +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 8CB2743D53 for ; Fri, 16 Dec 2005 16:33:26 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 644FF52B3F; Fri, 16 Dec 2005 17:33:24 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id AC3C650F93; Fri, 16 Dec 2005 17:33:07 +0100 (CET) Date: Fri, 16 Dec 2005 17:32:17 +0100 From: Pawel Jakub Dawidek To: Lapo Nustrini Message-ID: <20051216163217.GC14985@garage.freebsd.pl> References: <8B452D98-4FD5-4755-AB7F-31D278DF33F7@seanet.com> <20051216021759.GA14087@garage.freebsd.pl> <52A581CA-EC39-4C83-8C77-CB373F68D3FB@seanet.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vOmOzSkFvhd7u8Ms" Content-Disposition: inline In-Reply-To: <52A581CA-EC39-4C83-8C77-CB373F68D3FB@seanet.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=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: gconcat 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: Fri, 16 Dec 2005 16:33:29 -0000 --vOmOzSkFvhd7u8Ms Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 16, 2005 at 08:10:51AM -0800, Lapo Nustrini wrote: +>=20 +> On Dec 15, 2005, at 6:17 PM, Pawel Jakub Dawidek wrote: +>=20 +> >On Thu, Dec 15, 2005 at 04:06:08PM -0800, Lapo Nustrini wrote: +> >+> +> >+> Can anyone tell me whether it is possible to expand a gconcat volume= (by adding a drive to the end of it) without having to wipe the data from = the existing set and=20 +> >recreate +> >+> from scratch? +> >+> I don't mind having to manually edit bsdlabels and such. Just wonde= ring if its possible at all. +> >+> I've been looking for some docs on this but can't seem to find a def= initive answer. +> > +> >It should just work be relabeling providers. +> >If you did something like: +> > +> > # gconcat label foo da0 da1 +> > +> >You can expand it with: +> > +> > # gconcat label foo da0 da1 da2 da3 +> > +> >etc. Just be sure the order of old providers is the same. +> > +> >PS. You'd need to stop device 'foo' first. +> > +>=20 +> This is what I tried: +>=20 +> # mount /dev/concat/gc0 /mnt +> # cp -pr ttt /mnt +> # ls -la /mnt +> total 8 +> drwxr-xr-x 4 root wheel 512 Dec 16 07:49 . +> drwxr-xr-x 25 root wheel 1024 Dec 15 15:02 .. +> drwxrwxr-x 2 root operator 512 Dec 16 07:48 .snap +> drwxr-xr-x 2 lapo wheel 512 Nov 9 22:48 ttt +> # umount /mnt +> # gconcat stop gc0 +> # gconcat label gc0 ad1 ad3 ad4 ad6 ad7 +> # mount /dev/concat/gc0 /mnt +> # ls -la +> ls: ttt: Bad file descriptor +> total 6 +> drwxr-xr-x 4 root wheel 512 Dec 16 07:49 . +> drwxr-xr-x 25 root wheel 1024 Dec 15 15:02 .. +> drwxrwxr-x 2 root operator 512 Dec 16 07:48 .snap +>=20 +> Am I missing a step? +> Thanks! Are you sure you gave correct order? It works here just fine... What was the previous 'gconcat label' command you gave? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --vOmOzSkFvhd7u8Ms Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDouwRForvXbEpPzQRAqlEAKDXFG5rCBDdJbLrx2WFCT+rfIjOmQCgtJTA eaoLso0t7hmcCrBP6CL3lHg= =6ab2 -----END PGP SIGNATURE----- --vOmOzSkFvhd7u8Ms--