From owner-freebsd-stable@FreeBSD.ORG Fri Nov 20 11:20:26 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 7D7F7106566C for ; Fri, 20 Nov 2009 11:20:26 +0000 (UTC) (envelope-from marius@nuenneri.ch) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 1D7158FC15 for ; Fri, 20 Nov 2009 11:20:25 +0000 (UTC) Received: by fxm27 with SMTP id 27so3639260fxm.3 for ; Fri, 20 Nov 2009 03:20:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.91.82 with SMTP id g60mr370273wef.98.1258716024865; Fri, 20 Nov 2009 03:20:24 -0800 (PST) In-Reply-To: <200911201118.26242.doconnor@gsoft.com.au> References: <200911192305.35337.doconnor@gsoft.com.au> <2e027be00911190444s1ce5f297o9064bb9c0d28ef30@mail.gmail.com> <200911201118.26242.doconnor@gsoft.com.au> Date: Fri, 20 Nov 2009 12:20:24 +0100 Message-ID: From: =?ISO-8859-1?Q?Marius_N=FCnnerich?= To: "Daniel O'Connor" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Tom Evans , freebsd-stable@freebsd.org, Stefan Bethke Subject: Re: whats best pracfive for ZFS on a whole disc these days ? 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: Fri, 20 Nov 2009 11:20:26 -0000 On Fri, Nov 20, 2009 at 01:48, Daniel O'Connor wrot= e: > On Thu, 19 Nov 2009, Tom Evans wrote: >> On Thu, Nov 19, 2009 at 12:35 PM, Daniel O'Connor > wrote: >> > On Thu, 19 Nov 2009, Marius N=FCnnerich wrote: >> > > > =A0operator =A0 =A00, 164 Oct 21 15:34 >> > > > /dev/gptid/6866d8b0-a8ac-11de-8e07-00241dd192cc >> > > >> > > Have you tried naming the GPT partitions and using /dev/gpt/* ? >> > >> > Nope, how would I do that? >> > >> > I'd be surprised if it worked TBH.. >> >> Use the -l flag to gpart when creating the partitions. I'm not sure >> if there is a way to label them after the fact. I found it led to a >> much more descriptive/reliable pool, as I can plug the disks in >> anywhere and get the same results: > > Descriptive yes, reliable no (IMO :) > > UUIDs should always be more reliable so long as the "UU" part of their > name holds true :) > > No reason you couldn't have both thought. > >> =A0 pool: tank >> =A0state: ONLINE >> =A0scrub: none requested >> config: >> >> =A0 =A0 NAME =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0STATE =A0 =A0 READ WRITE= CKSUM >> =A0 =A0 tank =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ONLINE =A0 =A0 =A0 0 =A0= =A0 0 =A0 =A0 0 >> =A0 =A0 =A0 raidz1 =A0 =A0 =A0 =A0 =A0 =A0 =A0ONLINE =A0 =A0 =A0 0 =A0 = =A0 0 =A0 =A0 0 >> =A0 =A0 =A0 =A0 gpt/samsung15-1 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 = =A0 0 >> =A0 =A0 =A0 =A0 gpt/samsung15-2 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 = =A0 0 >> =A0 =A0 =A0 =A0 gpt/samsung15-3 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 = =A0 0 >> =A0 =A0 =A0 =A0 gpt/samsung15-4 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 = =A0 0 >> =A0 =A0 =A0 =A0 gpt/seagate15-1 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 = =A0 0 >> =A0 =A0 =A0 =A0 gpt/seagate15-2 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 =A0 = =A0 0 >> >> I use the geom name 'gpt/foo' when referring to the disks in zpool. >> All works perfectly. > > Hmm I did.. > [midget 11:13] ~ >sudo gpart modify -i 2 -l "Midget-ZFS-1" ad4 > ad4p2 modified > [midget 11:15] ~ >sudo gpart show -l ad4 > =3D> =A0 =A0 =A0 =A034 =A01953525101 =A0ad4 =A0GPT =A0(932G) > =A0 =A0 =A0 =A0 =A034 =A0 =A0 8388608 =A0 =A01 =A0(null) =A0(4.0G) > =A0 =A0 8388642 =A01944059904 =A0 =A02 =A0Midget-ZFS-1 =A0(927G) > =A01952448546 =A0 =A0 1076589 =A0 =A0 =A0 - free - =A0(526M) > > but I get no /dev/gpt directory.. > [midget 11:14] ~ >ls -la /dev/gpt > ls: /dev/gpt: No such file or directory > > Maybe the UUID label got their first so it won't have an alias (although > the UUID is an alias for /dev/ad4p2..) Maybe that's been asked already but what version are you using? Does glabel work at all?