Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2014 10:51:25 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: ZFS on Hardware RAID controller
Message-ID:  <5309D2AD.4060307@infracaninophile.co.uk>
In-Reply-To: <alpine.BSF.2.00.1402221521430.44137@helix.wtfayla.net>
References:  <alpine.BSF.2.00.1402221521430.44137@helix.wtfayla.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--p2P12MfdVWmhXDwrST960CSeE2vfdbjT8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 22/02/2014 20:22, freebsd@fongaboo.com wrote:
> If I am planning to use ZFS on a machine where the drive controller
> happens to be one that can be configured for some combination of
> HARDWARE RAID...
>=20
> I should configure it so that it does not concatenate/span/combine the
> drives in any way at the hardware level.
>=20
> I need to configure it as if it wasn't even a RAID controller, but
> rather in a configuration where the motherboard/filesystem/OS will
> initially see each physical drive as its own volume.

The ideal is to get the RAID controller to pass-through all the actual
disk devices as if it was a host-bus adapter.  Then ZFS can interact
directly with the drives, which generally gives the best results.

Whether you can do this or not depends on what RAID controller hardware
you are using.  3ware controllers used to be able to do this, but since
they were borg'd by LSI a while back I don't know if that is still the
case with their most recent models.

Many LSI RAID controllers -- or controllers using LSI chipsets but
rebadged by companies like Dell or HP -- can be reflashed as host bus
adaptors.  This is a widely recommended setup for building a ZFS box.

Otherwise, if you can't get the drives passed-through, your next best
bet is to create a bunch of single drive RAID-0 devices, and feed those
to ZFS.  mfiutil(8) has a command to do this:

    mfiutil -u0 create jbod 1,2,3,4

This prevents ZFS from having full control over the hardware -- instead,
the RAID controller does various monitoring functions.  ZFS shifts a lot
of the functionality of a dedicated HW RAID card onto the main memory /
CPU of a system, which should both save the cost of a specialised
dedicated card and also allow more flexibility in throwing system
resource at the disk IO subsystem as required by your workload.

The term 'jbod' referred originally to a stand-alone disk array
configured in this way as individual RAID-0 devices hence 'just a box of
disks' but has since been retconned to mean 'just a bunch of disks': any
set of hardrives attached to a machine and presented to the OS as
individual drives or single disk RAID-0 devices, whether in the main
chassis or otherwise.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew@infracaninophile.co.uk


--p2P12MfdVWmhXDwrST960CSeE2vfdbjT8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJTCdKuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATeu4P+QGV/huh6/8hReLmRBToJVB7
jrWqg5L++kGfwspQtXOp//qDrpQ/OguT2HO24QlKVBMpBTL0CWnrxU8IcBNzo2F9
Fzk83n6mppRi+xzSD5UeLG8slP5yDJFXo6AYlK3Yna5SugnS4/Qgb2YLrbB89vhA
H7E5tnCR0NB0v9/hPPsIVCyQEVfpmPDVMl2Prpmf+tF5x3OPA2n8+WCwsXXqhqDT
1+9V5IoeEtZaeLRa9I6ZQSfHcw42zCYh4gFtLn0S+SO9a3dzVc1HkDbxEid1o9qc
L+HDbzguNAZqg7Nx1iHbCmST4k7ubNCn8B+PEMzGIAr7CsI7NXtyKe8O7vWLkcgV
bHlv+dV5s3jPhxMRl99Ac5l9pcgcqIKzybbMRiWewzN6QFyLtFmR1+yY7DTpaOz8
6CDbiQCkoylymYQZlTfWX6hQzQFSwDi8jReZgmBmsUkZuKIh/6KzURgc5XQig6+M
js6yxQuB0ZiortJnAl/TmZP0WVCmzkGI8+ylpOhskREnmgbYqt07T8opSzm6kqCk
b1Wc0eIB7a8dTwQvabR04yYkH+tCKdItZT6mJ22qKyw5bcSX6QVWu4R83gDDFcMo
6oLUvFPpjnHp1R0JZ4oADJhGhobd4mexRrEWpznMYR1/SjkyzDIHkEb8akxa0B63
ltr8VAreXwOu0Y7fOPnV
=p+zi
-----END PGP SIGNATURE-----

--p2P12MfdVWmhXDwrST960CSeE2vfdbjT8--



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