From owner-freebsd-geom@FreeBSD.ORG Wed Jan 6 22:53:23 2010 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3629A106566C for ; Wed, 6 Jan 2010 22:53:23 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 7806B8FC1A for ; Wed, 6 Jan 2010 22:53:22 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id B5A3345CD8; Wed, 6 Jan 2010 23:53:20 +0100 (CET) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 6B94145684; Wed, 6 Jan 2010 23:53:15 +0100 (CET) Date: Wed, 6 Jan 2010 23:53:25 +0100 From: Pawel Jakub Dawidek To: Fernan Aguero Message-ID: <20100106225325.GE1719@garage.freebsd.pl> References: <20100105182920.GC12091@iib.unsam.edu.ar> <20100106175718.GB1719@garage.freebsd.pl> <20100106192125.GF17808@iib.unsam.edu.ar> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5xSkJheCpeK0RUEJ" Content-Disposition: inline In-Reply-To: <20100106192125.GF17808@iib.unsam.edu.ar> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 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.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-geom@FreeBSD.org Subject: Re: gstripe: delete one, and enlarge another partition? 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: Wed, 06 Jan 2010 22:53:23 -0000 --5xSkJheCpeK0RUEJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 06, 2010 at 04:21:25PM -0300, Fernan Aguero wrote: > | > /dev/stripe/gs0d 9.7G 604M 8.3G 7% /usr/obj > | > /dev/stripe/gs0e 29G 9.0G 18G 34% /freebsd > | > /dev/stripe/gs0f 29G 1.1G 26G 4% /mirror > | > /dev/stripe/gs0g 85G 5.9G 73G 8% /scratch > | >=20 > | > gama# gstripe list > | > Geom name: gs0 [...] > | > Consumers: > | > 1. Name: ad4s3 [...] > | > 2. Name: ad6s3 [...] > Yes I see what you mean. But I'm confused regarding what > this box has. Both of these return similar info: >=20 > bsdlabel /dev/ad4s3 > bsdlabel /dev/stripe/gs0=20 > though the latter doesn't add the warnings (see below > the output quoted in my first message) about partitions > extendind past the end of the disk >=20 > So, are the partitions done at the slice or at the stripe > level? I'm afraid I don't have this documented in my notes, > and I don't remember what I've done some years back! >=20 > So summarizing, I do have > i) slices on disks >=20 > I guess I also have=20 > ii) partitions on slices >=20 > And the output of 'gstripe list' shows I also have > iii) stripe on slices When you write something to partition, it will also be visible on stripe, on slice and on disk, but the order from the output above is unambiguous: disk -> slices -> stripe -> partitions. If you think about it more, you'll realize that it doesn't make sense to partition slices, but use partitions on stripe. > Anyway, after using bsdlabel, and editing the partition > table for this stripe/slice, if I delete partition 'g' and > then add its size to partition 'f', would gstripe _just > work_ with the extended partition? Or do I need to newfs the > 'f' partition? You have to edit stripe, not slice. Then it will work. File system won't grow automatically, but should still be visible with old size. > Would growfs work on gs0f instead of newfs? It should work in theory, but growfs(8) is a risky game to play, so you are on your own there. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --5xSkJheCpeK0RUEJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFLRRRkForvXbEpPzQRAm/KAJ98pNRlMwPJyP6DAx0QDM93fq9uVgCffKgG 41m7qhzKJi2vc4Tf0RaA2Ac= =EnOC -----END PGP SIGNATURE----- --5xSkJheCpeK0RUEJ--