Slow resilvering with mirrored ZIL
Daniel Kalchev
daniel at digsys.bg
Fri Jul 5 10:38:00 UTC 2013
On 05.07.13 02:28, Steven Hartland wrote:
>
>
> If anyone wants my current patches which add switch to 4k ashift by
> default
> as a sysctl + works with QUIRKS too, just let me know.
>
> They are well tested, just we want more options before putting in the
> tree.
Is it not easier to add this as an option to zpool create, instead of an
sysctl?
That is, I believe we have two scenarios here:
1. Having an sysctl that instructs ZFS to look at the FreeBSD quirks to
decide what the ashift should be, instead of only querying the
'sectorsize' property of the storage. I believe we might not even need
an sysctl here, just make it default to obey the quirks --- but sysctl
for the interim period will not hurt (with the proper default).
2. Have an option to zpool create and zpool add, that specifies the
ashift value. Here my thinking is that it should let you specify an
ashift equal or larger than the computed one, which is based on the
largest sector size of all devices in a vdev.
Don't know, but always wondered.. how hard is it to change the ashift
value on the fly? Does it impact reads of data already on the vdev, or
does it impact only writes? If only writes, it should be trivial, really....
Daniel
More information about the freebsd-fs
mailing list