zfs/tests/zfs-tests/include
Don Brady f0f330e121
Fix ZED auto-replace for VDEVs using by-id paths
The change is simple -- restore the original code so that the VDEV 
path is updated when using by-id paths.  The more challenging part 
was to devise a second ZTS test, that would test auto-replace for 
'by-id' and help prevent a future regression.

With that new test, we can now do an A|B test with , and without, 
the fix to confirm that auto-replace for by-id paths works. The 
existing auto-replace test, functional/fault/auto_replace_001_pos, 
will confirm that we didn't break auto-replace for 'by-vdev' paths.

In the original functional/fault/auto_replace_001_pos test, the disk 
wipe (using dd) was not effective in removing the partitioning since 
the kernel was never informed of the wipe.

Added a call to wipefs(8) so that the kernel is informed and ZED will 
re-partition the device.
    
Added a validation step that the re-partitioning occurred by
confirming  that the GPT partition UUID changes.

Sponsored-By: OpenDrives Inc.
Sponsored-By: Klara Inc.
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Don Brady <don.brady@klarasystems.com>
Closes #15363
2023-10-20 09:29:02 -07:00
..
.gitignore Add zpool events tests 2017-05-22 12:34:42 -04:00
blkdev.shlib tests: include: use already-set $UNAME instead of shelling out to uname each time 2022-04-01 18:02:59 -07:00
commands.cfg Fix ZED auto-replace for VDEVs using by-id paths 2023-10-20 09:29:02 -07:00
default.cfg.in Ubuntu 22.04 integration: ZTS 2022-11-18 11:26:55 -08:00
libtest.shlib Shorten arcstat_quiescence sleep time 2023-06-15 12:45:36 -07:00
math.shlib Simplify and optimize random_int_between(). 2023-05-05 09:09:12 -07:00
properties.shlib Add options to zfs redundant_metadata property 2022-10-19 17:07:51 -07:00
tunables.cfg zvol: Temporally disable blk-mq 2023-10-10 08:57:48 -07:00
zpool_script.shlib tests: review every awk(1) invocation 2022-04-01 17:57:55 -07:00