mirror_zfs/man/man5
George Wilson c494aa7f57
vdev_ashift should only be set once
== Motivation and Context

The new vdev ashift optimization prevents the removal of devices when
a zfs configuration is comprised of disks which have different logical
and physical block sizes. This is caused because we set 'spa_min_ashift'
in vdev_open and then later call 'vdev_ashift_optimize'. This would
result in an inconsistency between spa's ashift calculations and that
of the top-level vdev.

In addition, the optimization logical ignores the overridden ashift
value that would be provided by '-o ashift=<val>'.

== Description

This change reworks the vdev ashift optimization so that it's only
set the first time the device is configured. It still allows the
physical and logical ahsift values to be set every time the device
is opened but those values are only consulted on first open.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Cedric Berger <cedric@precidata.com>
Signed-off-by: George Wilson <gwilson@delphix.com>
External-Issue: DLPX-71831
Closes #10932
2020-09-18 12:13:47 -07:00
..
Makefile.am Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
spl-module-parameters.5 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
vdev_id.conf.5 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
zfs-events.5 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
zfs-module-parameters.5 vdev_ashift should only be set once 2020-09-18 12:13:47 -07:00
zpool-features.5 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00