TL;DR
OFFLINE disk: zpool replace -f <GUID> /dev/disk/by-id/… — GUID from zpool status, not /dev/sdX.
Proxmox documents the case: ZFS on Linux — change a failed device. The symptom is an OFFLINE / FAULTED vdev and a long number instead of sde.
Status
| |
The dead member often shows up as a GUID:
| |
That happens when the kernel no longer has a /dev/sdX for that disk (you yanked it, it died, or the letter moved).
Replace
| |
-f forces if ZFS still “remembers” the old disk. The replacement must be at least the same size (prefer by-id, not sde).
If the new disk is in the same slot and ZFS sees it:
| |
or auto-detect a replacement in-place:
| |
Wait for resilver
| |
Do not reboot, export, or start another replace on the same vdev until resilvered. On RAIDZ1 you are one disk down: a second failure in that window is data loss.
Afterwards
| |
See also: import after a power outage.