I tested my ZFS resilvering on my new NAS which has a 3-drive mirror zpool. So I attached another 4TB drive to the server in an external USB SATA dock and ran “zfs replace /dev/disk/by-id/ata-<ID_OF_ONE_INTERNAL_DISK_FROM_MIRROR> /dev/disk/by-id/ata-<ID_OF_DISK_IN_USB_DOCK>. Then I let the resilvering fully complete, shut down the server and swapped the replaced hard drive in the server with the one that was in the USB dock before (so it was then in the server directly on the SATA port where the old drive was).
However, ZFS shows the drive as “UNAVAIL” (already showing the ID of the new drive – so it doesn’t seem like it looks for the replaced HDD). Shouldn’t it be able to recognize that the drive is the same device by the ID?