From owner-freebsd-stable@FreeBSD.ORG Thu Nov 26 11:42:50 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EF2F106568F for ; Thu, 26 Nov 2009 11:42:50 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from keltia.freenix.fr (keltia.freenix.org [IPv6:2001:660:330f:f820:213:72ff:fe15:f44]) by mx1.freebsd.org (Postfix) with ESMTP id 3C8AF8FC1A for ; Thu, 26 Nov 2009 11:42:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by keltia.freenix.fr (Postfix/TLS) with ESMTP id 24EF93B04E for ; Thu, 26 Nov 2009 12:42:48 +0100 (CET) X-Virus-Scanned: amavisd-new at keltia.freenix.fr Received: from keltia.freenix.fr ([127.0.0.1]) by localhost (keltia.freenix.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 81Z0QDtrGEIz for ; Thu, 26 Nov 2009 12:42:47 +0100 (CET) Received: from roberto-al.eurocontrol.fr (aran.keltia.net [88.191.250.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: roberto) by keltia.freenix.fr (Postfix/TLS) with ESMTPSA id 586AB39CE1 for ; Thu, 26 Nov 2009 12:42:47 +0100 (CET) Date: Thu, 26 Nov 2009 12:42:17 +0100 From: Ollivier Robert To: freebsd-stable@freebsd.org Message-ID: <20091126114217.GA64047@roberto-al.eurocontrol.fr> References: <4B0E3ABA.3030606@tzim.net> <790a9fff0911260040i1456d7c0j4f8327d24d2966cf@mail.gmail.com> <4B0E43B1.6050802@tzim.net> <790a9fff0911260200kf07d6d2nf7cf9eb9d2c07bcf@mail.gmail.com> <4B0E61E2.7070509@tzim.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <4B0E61E2.7070509@tzim.net> X-Operating-System: MacOS X / Macbook Pro - FreeBSD 7.2 / Dell D820 SMP User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: Can't use gpt labels re-importing pool X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2009 11:42:50 -0000 According to Arnaud Houdelette: >As I said, the label is not present in /dev/gpt while used with >adaXp1 ( here ada1p1 has label HD753LJ-1) : ># ls /dev/gpt >HD753LJ-4 zfs-boot ># zpool replace tank ada1p1 gpt/HD753LJ-1 >cannot open 'gpt/HD753LJ-1': no such GEOM provider >I know there is the solution of cleaning the disk and resilvering, >but if I could avoid this ? Do you load glabel in loader.conf? I think that in order to be able to use GPT labels in GEOM (and thus ZFS), you set them with gpart, glabel will "load" them in the kernel and you then can use them for zfs. I recently moved from ata to ahci and wanted to use labels for the swap partitions. So I added a label to my swap partitions with gpart, they got recognized by geom thru glabel and I was able to use /dev/gpt/swapN instead of the usual /dev/adNp2 that were there before. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr In memoriam to Ondine : http://ondine.keltia.net/