Date: Thu, 26 Nov 2009 12:42:17 +0100 From: Ollivier Robert <roberto@keltia.freenix.fr> To: freebsd-stable@freebsd.org Subject: Re: Can't use gpt labels re-importing pool Message-ID: <20091126114217.GA64047@roberto-al.eurocontrol.fr> In-Reply-To: <4B0E61E2.7070509@tzim.net> References: <4B0E3ABA.3030606@tzim.net> <790a9fff0911260040i1456d7c0j4f8327d24d2966cf@mail.gmail.com> <4B0E43B1.6050802@tzim.net> <790a9fff0911260200kf07d6d2nf7cf9eb9d2c07bcf@mail.gmail.com> <4B0E61E2.7070509@tzim.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091126114217.GA64047>