Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2009 17:49:16 -0500
From:      Brooks Davis <brooks@freebsd.org>
To:        Dan Naumov <dan.naumov@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: ZFS: drive replacement performance
Message-ID:  <20090707224916.GB2415@lor.one-eyed-alien.net>
In-Reply-To: <cf9b1ee00907071540u41128d3p528e1b240050d2f8@mail.gmail.com>
References:  <20090707195614.GA24326@martini.nu> <b269bc570907071354r36015689ha362ba83413efc46@mail.gmail.com> <20090707222631.GA70750@martini.nu> <b269bc570907071532ub95af78i6ad3a09e8c6887d7@mail.gmail.com> <cf9b1ee00907071540u41128d3p528e1b240050d2f8@mail.gmail.com>

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

--mxv5cy4qt+RJ9ypb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 08, 2009 at 01:40:02AM +0300, Dan Naumov wrote:
> On Wed, Jul 8, 2009 at 1:32 AM, Freddie Cash<fjwcash@gmail.com> wrote:
> > On Tue, Jul 7, 2009 at 3:26 PM, Mahlon E. Smith <mahlon@martini.nu> wro=
te:
> >
> >> On Tue, Jul 07, 2009, Freddie Cash wrote:
> >> >
> >> > This is why we've started using glabel(8) to label our drives, and t=
hen
> >> add
> >> > the labels to the pool:
> >> > ? # zpool create store raidz1 label/disk01 label/disk02 label/disk03
> >> >
> >> > That way, it does matter where the kernel detects the drives or what=
 the
> >> > physical device node is called, GEOM picks up the label, and ZFS use=
s the
> >> > label.
> >>
> >> Ah, slick. ?I'll definitely be doing that moving forward. ?Wonder if I
> >> could do it piecemeal now via a shell game, labeling and replacing each
> >> individual drive? ?Will put that on my "try it" list.
>=20
> Not to derail this discussion, but can anyone explain if the actual
> glabel metadata is protected in any way? If I use glabel to label a
> disk and then create a pool using /dev/label/disklabel, won't ZFS
> eventually overwrite the glabel metadata in the last sector since the
> disk in it's entirety is given to the pool? Or is every filesystem
> used by FreeBSD (ufs, zfs, etc) hardcoded to ignore the last few
> sectors of any disk and/or partition and not write data to it to avoid
> such issues?

Disks labeled with glabel lose their last sector to the label.  It is not
accessible by ZFS.  Disks with bsdlabel partition tables are at risk due to
the brain dead decision to allow partitions to overlap the first sector,
but modern designs like glabel avoid this mistake.

-- Brooks

--mxv5cy4qt+RJ9ypb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iD8DBQFKU9DsXY6L6fI4GtQRAgk8AKCstTdrPAi+kMC8M03pcsKhLoUX7ACfde8Z
+UPNUogsP7+YjFNSW1pnmXE=
=YMoj
-----END PGP SIGNATURE-----

--mxv5cy4qt+RJ9ypb--



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