[Bug 256582] ZFS unable to attach/replace disk to the mirror/raidz

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Jun 2021 19:28:29 +0000

--- Comment #8 from Alan Somers <asomers_at_FreeBSD.org> ---
If "zpool replace" never worked, then why did you say "And after migration to
the new one only replace is possible"?

In any case, your problem is that ada2s4 thinks that it is already a member of
the t1 pool.  That can happen for example like this:

1) You create a pool that includes ada2s4
2) You physically remove ada2
3) You "zpool replace" the missing ada2s4 with a different disk
4) You reinstall ada2.

The solution is to wipe the zpool label on that disk.  You can use "zpool
labelclear ada2s4", "zpool create dummy ada2s4 && zpool destroy dummy", or
simply use dd.  Then ZFS will let you add it to t1 again.

You are receiving this mail because:
You are the assignee for the bug.
Received on Mon Jun 14 2021 - 19:28:29 UTC

Original text of this message