Stux
MVP
- Joined
- Jun 2, 2016
- Messages
- 4,419
Just did some testing:
Reasonably enough, this left the pool faulted and locked.
- created a pool with two disks in a mirror - call them A and B
- copied some data onto pool
- offlined disk B
- began
zpool replace
of disk B with a new disk C- before resilver was complete, physically disconnected disk A
I could not figure out a way to recover from here. Connecting only disk B gave no results forzpool import
. Connecting A and B was no better. Connecting A and C, followed byzpool clear
got the pool back, but after resilver, it was empty
Maybephotorec
on B would be a recovery option.
If you split the pool, it would've worked, Ie b would've imported as a separate non-faulted pool to the original. I think that was why I queried if offlining was actually safe.
I think split should be in the GUI.
Not sure how this would affect a multi-vdev pool tho.