zfs/tests/zfs-tests/tests/functional/cli_root/zpool_add
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
..
add-o_ashift.ksh Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
add_nested_replacing_spare.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
add_prop_ashift.ksh Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
cleanup.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
setup.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add--allow-ashift-mismatch.ksh Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
zpool_add.cfg Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add.kshlib Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add_001_pos.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add_002_pos.ksh Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
zpool_add_003_pos.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add_004_pos.ksh Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
zpool_add_005_pos.ksh Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
zpool_add_006_pos.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add_007_neg.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add_008_neg.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_add_009_neg.ksh Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
zpool_add_010_pos.ksh Add ashift validation when adding devices to a pool 2024-03-29 13:15:56 -06:00
zpool_add_dryrun_output.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00