Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2009 11:18:24 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Tom Evans <tevans.uk@googlemail.com>
Cc:        freebsd-stable@freebsd.org, Stefan Bethke <stb@lassitu.de>
Subject:   Re: whats best pracfive for ZFS on a whole disc these days ?
Message-ID:  <200911201118.26242.doconnor@gsoft.com.au>
In-Reply-To: <2e027be00911190444s1ce5f297o9064bb9c0d28ef30@mail.gmail.com>
References:  <E1N2NcA-0004c4-CE@dilbert.ticketswitch.com> <200911192305.35337.doconnor@gsoft.com.au> <2e027be00911190444s1ce5f297o9064bb9c0d28ef30@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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
<doconnor@gsoft.com.au>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--



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