ZFS and Samsung Spinpoint F4 4K sector drive
Freddie Cash
fjwcash at gmail.com
Thu Oct 21 15:43:44 UTC 2010
On Thu, Oct 7, 2010 at 6:53 PM, Adam Nowacki <nowak at xpam.de> wrote:
> Nothing user friendly but if you're willing to modify sources and rebuild
> kernel there is a one line tweak.
>
> /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c find:
> *ashift = highbit(MAX(pp->sectorsize, SPA_MINBLOCKSIZE)) - 1;
> and modify to something like:
> *ashift = highbit(MAX(MAX(4096, pp->sectorsize), SPA_MINBLOCKSIZE)) - 1;
>
> I'm using this for 3 months with 20 2TB 4kb sector WDC disks (in 2 raidz2
> arrays of 10) without any issues. Writes go at 300MB/s.
Does this patch work the same was as the following:
http://www.solarismen.de/archives/5-Solaris-and-the-new-4K-Sector-Disks-e.g.-WDxxEARS-Part-2.html
They both deal with setting ashift to 4096 bytes, but are in two very
different places in the code.
--
Freddie Cash
fjwcash at gmail.com
More information about the freebsd-fs
mailing list