mirror_zfs/tests/zfs-tests/tests/functional/fault
Don Brady 0bcd1151f0 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-11-06 16:45:14 -08:00
..
auto_offline_001_pos.ksh zed: Prevent special vdev to be replaced by hot spare 2022-11-04 11:33:47 -07:00
auto_online_001_pos.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
auto_online_002_pos.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
auto_replace_001_pos.ksh Fix ZED auto-replace for VDEVs using by-id paths 2023-11-06 16:45:14 -08:00
auto_replace_002_pos.ksh Fix ZED auto-replace for VDEVs using by-id paths 2023-11-06 16:45:14 -08:00
auto_spare_001_pos.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
auto_spare_002_pos.ksh Add Linux posix_fadvise support 2022-09-08 10:29:41 -07:00
auto_spare_ashift.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
auto_spare_multiple.ksh Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
auto_spare_shared.ksh tests: nonspecific cleanup 2022-04-01 17:55:40 -07:00
cleanup.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
decompress_fault.ksh ZTS: normalize on use of sync_pool and sync_all_pools 2022-01-06 10:57:09 -08:00
decrypt_fault.ksh Default to ON for compression 2022-03-03 10:43:38 -08:00
fault.cfg Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
scrub_after_resilver.ksh ZTS: Fix zpool_status_-s 2019-10-11 10:22:20 -07:00
setup.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_status_-s.ksh Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00