mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-11-22 13:09:36 +03:00
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
|
||
|---|---|---|
| .. | ||
| auto_offline_001_pos.ksh | ||
| auto_online_001_pos.ksh | ||
| auto_online_002_pos.ksh | ||
| auto_replace_001_pos.ksh | ||
| auto_replace_002_pos.ksh | ||
| auto_spare_001_pos.ksh | ||
| auto_spare_002_pos.ksh | ||
| auto_spare_ashift.ksh | ||
| auto_spare_multiple.ksh | ||
| auto_spare_shared.ksh | ||
| cleanup.ksh | ||
| decompress_fault.ksh | ||
| decrypt_fault.ksh | ||
| fault.cfg | ||
| scrub_after_resilver.ksh | ||
| setup.ksh | ||
| zpool_status_-s.ksh | ||