mirror_zfs/cmd/zpool
George Wilson 6f323353d2 Add ashift validation when adding devices to a pool
Currently, zpool add allows users to add top-level vdevs that have
different ashifts but doing so prevents users from being able to
perform a top-level vdev removal. Often times consumers may not realize
that they have mismatched ashifts until the top-level removal fails.

This feature adds ashift validation to the zpool add command and will
fail the operation if the sector size of the specified vdev does not
match the existing pool. This behavior can be disabled by using the -f
flag. In addition, new flags have been added to provide fine-grained
control to disable specific checks. These flags
are:

--allow-in-use
--allow-ashift-mismatch
--allow-replicaton-mismatch

The force flag will disable all of these checks.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Mark Maybee <mmaybee@delphix.com>
Signed-off-by: George Wilson <gwilson@delphix.com>
Closes #15509
2024-04-29 13:50:05 -07:00
..
compatibility.d ZTS: Test for all known zpool feature sets 2023-11-16 14:23:03 -08:00
os GCC: Fixes for gcc 14 on Fedora 40 2024-04-29 13:50:05 -07:00
zpool.d zed: misc vdev_enc_sysfs_path fixes 2024-01-29 15:11:56 -08:00
Makefile.am Add compatibility symlinks for FreeBSD 12.{3,4} and 13.{0,1,2} 2023-05-26 15:37:15 -07:00
zpool_iter.c zpool: Add slot power control, print power status 2024-01-29 15:12:06 -08:00
zpool_main.c Add ashift validation when adding devices to a pool 2024-04-29 13:50:05 -07:00
zpool_util.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_util.h zpool: Add slot power control, print power status 2024-01-29 15:12:06 -08:00
zpool_vdev.c zed: misc vdev_enc_sysfs_path fixes 2024-01-29 15:11:56 -08:00