From owner-freebsd-fs@FreeBSD.ORG Mon Oct 24 09:14:54 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC606106564A for ; Mon, 24 Oct 2011 09:14:53 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 1A3BF8FC08 for ; Mon, 24 Oct 2011 09:14:52 +0000 (UTC) Received: from localhost (58.wheelsystems.com [83.12.187.58]) by mail.dawidek.net (Postfix) with ESMTPSA id 22285881; Mon, 24 Oct 2011 11:14:49 +0200 (CEST) Date: Mon, 24 Oct 2011 11:14:04 +0200 From: Pawel Jakub Dawidek To: Freddie Cash Message-ID: <20111024091404.GC1640@garage.freebsd.pl> References: <20111024011426.GA57172@icarus.home.lan> <20111024014616.GA57735@icarus.home.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SxgehGEc6vB0cZwN" Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 9.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org Subject: Re: Anyway to change pool to use the gpt label instead of gptid? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Oct 2011 09:14:54 -0000 --SxgehGEc6vB0cZwN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 23, 2011 at 10:58:53PM -0700, Freddie Cash wrote: > > This looks like a bug or design oddity in GEOM. Based on your setup you > > should have swap[0-5] and disk[0-5] in /dev/gpt, not just swap[0-5]. >=20 > GEOM shows all providers for a disk/partition that is not in use. Once you > acces a disk/partition via a particular provider, all others are hidden. > This is to prevent you from accessing a particular disk/paprtition via > multiple names. >=20 > For example, a GPT-partitioned disk could be accessed via the following G= EOM > providers: > /dev/ada0p1 > /dev/gptid/somelongstring > /dev/gpt/some-label > /dev/ufsid/someotherlongstring > /dev/ufs/some-other-label >=20 > As soon as you mount the filesystem via one of those paths, all the rest = are > hidden. This is a bit more complex than that. Some providers are created based on metadata of the underlying provider. When you open the underlying provider for write, all providers that were created based on metadata should disappear, because metadata can change during the write. Other providers are not created based on metadata of the underlying provider and writing to underlying provider will not change the reason for why the former exist. In your example gpt/