Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Oct 2009 09:03:18 +0100
From:      "Patrick M. Hausen" <hausen@punkt.de>
To:        Artis Caune <artis.caune@gmail.com>
Cc:        freebsd-stable@freebsd.org, Pete French <petefrench@ticketswitch.com>
Subject:   Re: whats best pracfive for ZFS on a whole disc these days ?
Message-ID:  <20091027080317.GA50389@hugo10.ka.punkt.de>
In-Reply-To: <9e20d71e0910270000oc9bbe80n6e13d28325742a45@mail.gmail.com>
References:  <E1N2NcA-0004c4-CE@dilbert.ticketswitch.com> <200910271646.55227.doconnor@gsoft.com.au> <9e20d71e0910270000oc9bbe80n6e13d28325742a45@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

On Tue, Oct 27, 2009 at 09:00:27AM +0200, Artis Caune wrote:
> 2009/10/27 Daniel O'Connor <doconnor@gsoft.com.au>:
> > Unfortunately it appears ZFS doesn't search for GPT partitions so if you
> > have them and swap the drives around you need to fix it up manually.
> 
> Every GPT partition have unique /dev/gptid/<uuid>, you can find it out with:
>     glabel status
> 
> and instead of using e.x.:
>     zpool create tank mirror ad4p3 ad6p3
> you can use:
>     zpool create tank mirror
> gptid/0f32d2e6-c227-11de-8d6c-001708386b68
> gptid/bc78a46e-c227-11de-8d6c-001708386b68
> 
> and you can swap disk without worries

Nice. Is there any reason to prefer GPT labels over
glabel on the raw disk like so?

	NAME               STATE     READ WRITE CKSUM
	zfs                ONLINE       0     0     0
	  raidz2           ONLINE       0     0     0
	    label/disk100  ONLINE       0     0     0
	    label/disk101  ONLINE       0     0     0
	    label/disk102  ONLINE       0     0     0
	    label/disk103  ONLINE       0     0     0
	    label/disk104  ONLINE       0     0     0
	    label/disk105  ONLINE       0     0     0

Could GPT labelled disks be read on a Solaris host
without further modification?

Thanks,
Patrick M. Hausen
Leiter Netzwerke und Sicherheit
-- 
punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe
Tel. 0721 9109 0 * Fax 0721 9109 100
info@punkt.de       http://www.punkt.de
Gf: Jürgen Egeling      AG Mannheim 108285



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091027080317.GA50389>