getting to 4K disk blocks in ZFS

Peter Wemm peter at wemm.org
Wed Sep 10 06:51:08 UTC 2014


On Wednesday, September 10, 2014 04:46:28 PM Aristedes Maniatis wrote:
> As we all know, it is important to ensure that modern disks are set up
> properly with the correct block size. Everything is good if all the disks
> and the pool are "ashift=9" (512 byte blocks). But as soon as one new drive
> requires 4k blocks, performance drops through the floor of the enture pool.
[..]
> And secondly, is it also bad to have ashift 9 disks inside a ashift 12 pool?
> That is, do we need to replace all our disks in one go and forever keep big
> sticky labels on each disk so we never mix them?

For what its worth, in the freebsd.org cluster we automatically align 
everything to a minimum of 4k, no matter what the actual drive is.

We set:  sysctl vfs.zfs.min_auto_ashift=12
(this saves a lot of messing around with gnop etc)

and ensure all the gpt slices are 4k or better aligned.

-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com; KI6FJV
UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20140909/abb3c0a2/attachment.sig>


More information about the freebsd-stable mailing list