Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2015 08:07:47 -0800
From:      Freddie Cash <fjwcash@gmail.com>
To:        "Patrick M. Hausen" <hausen@punkt.de>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>, freebsd-scsi@freebsd.org
Subject:   Re: ZFS on labelled partitions (was: Re: LSI SAS2008 mps driver preferred firmware version)
Message-ID:  <CAOjFWZ6LquwYa7s4xbhrGf-kzRKxKEU%2BwsXSHZ1HQCv5RxiDYw@mail.gmail.com>
In-Reply-To: <878D84A9-4553-413B-ACA4-5ABF499F28C1@punkt.de>
References:  <5644FF09.9090200@free.de> <CA%2BE3k93QrUFA3BvhoswkVDXh2bR2aLYG6Z0TOrisVvNL=%2BMZVA@mail.gmail.com> <56472686.5030301@free.de> <20151114143104.GA41119@in-addr.com> <7710CBCC-E68F-4454-9E29-E50ED1C6B511@sarenet.es> <CAN6yY1sH0PnnF_AGwDsA75i_Z6ptOr4J0c_Gqrt%2BRFO6eZsW-Q@mail.gmail.com> <CAOjFWZ4Js65gQZc6rbT9SKg-jZozziTa=JGpJys6HyejdgWP%2Bg@mail.gmail.com> <20151116205734.GM48728@zxy.spb.ru> <CAOjFWZ49A8b6g=mQL3jzJaNX-Lf%2BuDCvmscyB6F4tr7Ax=HMbg@mail.gmail.com> <878D84A9-4553-413B-ACA4-5ABF499F28C1@punkt.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 17, 2015 at 12:08 AM, Patrick M. Hausen <hausen@punkt.de> wrote=
:

> Hi, all,
>
> > Am 16.11.2015 um 22:19 schrieb Freddie Cash <fjwcash@gmail.com>:
> >
> > =E2=80=8BYou label the disks as they are added to the system the first =
time.
> That
> > way, you always know where each disk is located, and you only deal with
> the
> > labels.
>
> we do the same for obvious reasons. But I always wonder about the possibl=
e
> downsides, because ZFS documentation explicitly states:
>
>         ZFS operates on raw devices, so it is possible to create a storag=
e
> pool comprised of logical
>         volumes, either software or hardware. This configuration is not
> recommended, as ZFS works
>         best when it uses raw physical devices. Using logical volumes
> might sacrifice performance,
>         reliability, or both, and should be avoided.
>
> (from http://docs.oracle.com/cd/E19253-01/819-5461/gbcik/index.html)
>
> Can anyone shed some lght on why not using raw devices might sacrifice
> performance or reliability? Or is this just outdated folklore?
>

=E2=80=8BOn Solaris, using raw devices allows ZFS to enable the caches on t=
he disks
themselves, while using any kind of partitioning on the disk forces the
caches to be disabled.

This is not an issue on FreeBSD due to the way GEOM works.  Caches on disks
are enabled regardless of how the disk is accessed (raw, dd-partitioned,
MBR-partitioned, GPT-partitioned, gnop, geli, whatever).

This is a common misconception and FAQ with ZFS on FreeBSD and one reason
to not take any Sun/Oracle documentation at face value, as it doesn't
always apply to FreeBSD.

There were several posts from pjd@ about this back in the 7.x days when ZFS
was first imported to FreeBSD.

--=20
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ6LquwYa7s4xbhrGf-kzRKxKEU%2BwsXSHZ1HQCv5RxiDYw>