Steven Hartland
2013-08-02 21:10:14 UTC
The fix for https://www.illumos.org/issues/2671 added the ability
to use a device which has a larger ashift that the pool was created
with.
This is an invalid change as it allow the use of a device with a
larger sector size than the pool can access.
I believe the change was actually designed to allow "faked" ashift
increases as used to force devices which advertise their logical
and physical sector sizes as 512b when in fact 4k native devices.
In that specific case this change will work but it will also allow
a fully native 4k device to be used at which point it will fail as
ZFS has no way to align reads and writes correctly.
Initially this change should be backed out and then ashift
calculations updated to take into account two values, the minimum
sector sizes of devices and the desired sector sizes of devices.
I have just such a change for FreeBSD but I'm looking to enhance
it further with the ability to configure the "desired" value from
the zpool command line.
Regards
Steve
================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it.
In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to ***@multiplay.co.uk.
to use a device which has a larger ashift that the pool was created
with.
This is an invalid change as it allow the use of a device with a
larger sector size than the pool can access.
I believe the change was actually designed to allow "faked" ashift
increases as used to force devices which advertise their logical
and physical sector sizes as 512b when in fact 4k native devices.
In that specific case this change will work but it will also allow
a fully native 4k device to be used at which point it will fail as
ZFS has no way to align reads and writes correctly.
Initially this change should be backed out and then ashift
calculations updated to take into account two values, the minimum
sector sizes of devices and the desired sector sizes of devices.
I have just such a change for FreeBSD but I'm looking to enhance
it further with the ability to configure the "desired" value from
the zpool command line.
Regards
Steve
================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it.
In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to ***@multiplay.co.uk.