Make ZFS use the physical sector size when computing initial ashift
Xin Li
delphij at delphij.net
Wed Jul 10 17:21:09 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 07/10/13 02:02, Dag-Erling Smrgrav wrote:
> The attached patch causes ZFS to base the minimum transfer size for
> a new vdev on the GEOM provider's stripesize (physical sector size)
> rather than sectorsize (logical sector size), provided that
> stripesize is a power of two larger than sectorsize and smaller
> than or equal to VDEV_PAD_SIZE. This should eliminate the need for
> ivoras@'s gnop trick when creating ZFS pools on Advanced Format
> drives.
I think there are multiple versions of this (I also have one[1]) but
the concern is that if one creates a pool with ashift=9, and now
ashift=12, the pool gets unimportable. So there need a way to disable
this behavior.
Another thing (not really related to the automatic detection) is that
we need a way to manually override this setting from command line when
creating the pool, this is under active discussion at Illumos mailing
list right now.
[1]
https://github.com/trueos/trueos/commit/3d2e3a38faad8df4acf442b055c5e98ab873fb26
Cheers,
- --
Xin LI <delphij at delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCgAGBQJR3ZgAAAoJEG80Jeu8UPuzM6kIALu3Ud4uu+kdcsp+zNS54iw6
Etx2xWOjbHhJ1PZ0BKJ4R5/BOfpW4b1DrarPtpZLxoyg55GwlEVCH8Cia9ucznfP
KgFGwzztQlsiI5hcWD6RVNkAx/2o7sSynbprxxP1UdEdmH7f5MWVpNwjGE2KiIpA
0TxfTu8Sg0/QB7h3pGWt5sJSuwyogewvHIfTAgHEqnQdYPXxpadH7PS7shSJVdim
z2C9GoyLVQ6BMxXzQDcmA+fllgMZVKXROG7SxDFNDTWPnZ9HMZp2OJKELLtuZB1y
Iaq/gd3uPR2ZzPxw2OjdYKe7khWtmuU5Ox6+natsOKCqfoAfCjArA8zJZYsZoMI=
=Nd1V
-----END PGP SIGNATURE-----
More information about the freebsd-hackers
mailing list