zfs/tests/zfs-tests/tests/functional/cli_root
George Wilson b1e46f869e
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-03-29 13:15:56 -06:00
..
zdb zdb: show BRT statistics and dump its contents 2023-11-27 13:35:07 -08:00
zfs Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_bookmark Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_change-key Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_clone Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_copies Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_create Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_destroy Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_diff autoconf: use include directives instead of recursing down test data 2022-05-10 10:20:19 -07:00
zfs_get Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_ids_to_path Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_inherit Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_jail Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_load-key ZTS: Fix zfs_load-key failures on F39 2023-11-27 13:24:37 -08:00
zfs_mount Update the behavior of mountpoint property 2023-09-19 17:15:24 -07:00
zfs_program cmd: add 'help' subcommand to zpool and zfs 2023-09-19 09:06:47 -07:00
zfs_promote Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_property arc_read()/arc_access() refactoring and cleanup 2022-12-22 12:10:24 -08:00
zfs_receive Fixes in head_errlog feature with encryption 2023-05-08 13:35:03 -07:00
zfs_rename Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_reservation Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_rollback Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_send Use setproctitle to report progress of zfs send 2023-01-17 10:17:35 -08:00
zfs_set Add '-u' - nomount flag for zfs set 2023-10-02 16:58:54 -07:00
zfs_share fix(mount): do not truncate shares not zfs mount 2024-01-12 12:05:11 -08:00
zfs_snapshot Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_sysfs Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_unload-key Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_unmount Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_unshare Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_upgrade Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zfs_wait autoconf: use include directives instead of recursing down test data 2022-05-10 10:20:19 -07:00
zhack Allow zhack label repair to restore detached devices. 2023-05-03 09:03:57 -07:00
zpool Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
zpool_attach Ignore pool ashift property during vdev attachment 2023-07-20 09:57:16 -07:00
zpool_clear Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_create ZTS: Test for all known zpool feature sets 2023-11-09 10:58:23 -08:00
zpool_destroy Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_detach Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_events Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_expand ZTS: Fix zpool_expand_001_pos 2022-08-09 13:26:46 -07:00
zpool_export Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_get Add slow disk diagnosis to ZED 2024-02-08 09:19:52 -08:00
zpool_history Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_import Extend import_progress kstat with a notes field 2023-12-05 14:27:56 -08:00
zpool_initialize Add the ability to uninitialize 2023-05-18 10:02:20 -07:00
zpool_labelclear autoconf: use include directives instead of recursing down test data 2022-05-10 10:20:19 -07:00
zpool_offline Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_online Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_remove Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_reopen autoconf: use include directives instead of recursing down test data 2022-05-10 10:20:19 -07:00
zpool_replace Ignore pool ashift property during vdev attachment 2023-07-20 09:57:16 -07:00
zpool_resilver Fix concurrent resilvers initiated at same time 2023-05-24 12:28:09 -07:00
zpool_scrub Teach zpool scrub to scrub only blocks in error log 2023-05-18 11:59:42 -07:00
zpool_set Add support for zpool user properties 2023-04-21 10:20:36 -07:00
zpool_split Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_status Add 'zpool status -e' flag to see unhealthy vdevs 2024-02-07 09:12:12 -08:00
zpool_sync Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_trim Reduce trim min size even lower for tests to reduce flakiness 2023-09-27 12:06:24 -07:00
zpool_upgrade Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_wait autoconf: use include directives instead of recursing down test data 2022-05-10 10:20:19 -07:00
cli_common.kshlib Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00