The scenario was that a mirror failed and grabbed a spare drive from another pool and assigned as replacement. Replacement drive was changed and system flagged replacedrive as spare with "faulted corrupted data". To fix I had to offline the borrowed spare and replace with original physical drive assigned location.

Verify pool status:

zpool status tank

Identify and offline the spare drive that was used when original drive failed in pool.

zpool offline tank sparedrive

zpool replace tank sparedrive replacedrive

References:

https://utcc.utoronto.ca/~cks/space/blog/solaris/ZFSFaultedSpares

https://tetragir.com/freebsd/zfs/zfs-hot-spare.html

https://docs.joyent.com/private-cloud/troubleshooting/disk-replacement

https://docs.oracle.com/cd/E23823_01/html/819-5461/gbbvf.html

https://docs.oracle.com/cd/E19253-01/819-5461/6n7ht6qvv/index.html#gjfdg

I had to wait until it resilvered replacedrive then ran the additional commands below to add sparedrive back as spare.

zpool add tank spare sparedrive

zpool status

Auto assignment status property value can be checked.

zpool get autoreplace tank