From owner-freebsd-stable@FreeBSD.ORG Fri Nov 20 00:48:33 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 121911065676 for ; Fri, 20 Nov 2009 00:48:33 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8107A8FC18 for ; Fri, 20 Nov 2009 00:48:32 +0000 (UTC) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id nAK0mRpc076535 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 20 Nov 2009 11:18:28 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Tom Evans Date: Fri, 20 Nov 2009 11:18:24 +1030 User-Agent: KMail/1.9.10 References: <200911192305.35337.doconnor@gsoft.com.au> <2e027be00911190444s1ce5f297o9064bb9c0d28ef30@mail.gmail.com> In-Reply-To: <2e027be00911190444s1ce5f297o9064bb9c0d28ef30@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3935475.r8NSGGYtEr"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200911201118.26242.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: 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 00:48:33 -0000 --nextPart3935475.r8NSGGYtEr Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 19 Nov 2009, Tom Evans wrote: > On Thu, Nov 19, 2009 at 12:35 PM, Daniel O'Connor=20 wrote: > > On Thu, 19 Nov 2009, Marius N=C3=BCnnerich wrote: > > > > operator 0, 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=20 name holds true :) No reason you couldn't have both thought. > pool: tank > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > tank ONLINE 0 0 0 > raidz1 ONLINE 0 0 0 > gpt/samsung15-1 ONLINE 0 0 0 > gpt/samsung15-2 ONLINE 0 0 0 > gpt/samsung15-3 ONLINE 0 0 0 > gpt/samsung15-4 ONLINE 0 0 0 > gpt/seagate15-1 ONLINE 0 0 0 > gpt/seagate15-2 ONLINE 0 0 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> 34 1953525101 ad4 GPT (932G) 34 8388608 1 (null) (4.0G) 8388642 1944059904 2 Midget-ZFS-1 (927G) 1952448546 1076589 - free - (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=20 the UUID is an alias for /dev/ad4p2..) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart3935475.r8NSGGYtEr Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iD8DBQBLBeda5ZPcIHs/zowRApm4AJ9IsmbbK5mm2qsau0+ktxHYT7kMwQCfYTj0 4U7+5yd+AAb/zAPFXlX6bY4= =EN3c -----END PGP SIGNATURE----- --nextPart3935475.r8NSGGYtEr--