From owner-freebsd-fs@FreeBSD.ORG Mon Oct 24 11:48:21 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 E36071065673; Mon, 24 Oct 2011 11:48:20 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 6ECC58FC18; Mon, 24 Oct 2011 11:48:20 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 31CAC28430; Mon, 24 Oct 2011 13:48:19 +0200 (CEST) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 12A4C28428; Mon, 24 Oct 2011 13:48:18 +0200 (CEST) Message-ID: <4EA55081.6050006@quip.cz> Date: Mon, 24 Oct 2011 13:48:17 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20111024011426.GA57172@icarus.home.lan> <20111024014616.GA57735@icarus.home.lan> <20111024091404.GC1640@garage.freebsd.pl> In-Reply-To: <20111024091404.GC1640@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit 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 11:48:21 -0000 Pawel Jakub Dawidek wrote: > 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]. >> >> 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. >> >> For example, a GPT-partitioned disk could be accessed via the following GEOM >> providers: >> /dev/ada0p1 >> /dev/gptid/somelongstring >> /dev/gpt/some-label >> /dev/ufsid/someotherlongstring >> /dev/ufs/some-other-label >> >> 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/