Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2021 19:28:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 256582] ZFS unable to attach/replace disk to the mirror/raidz
Message-ID:  <bug-256582-3630-lsRaDWZbyn@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-256582-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-256582-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256582

--- Comment #8 from Alan Somers <asomers@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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256582-3630-lsRaDWZbyn>