Closed kandeshvari closed 4 years ago
Can you summarize the state of each disk.
I expect you should be able to import the pool using one of the 2 detached disks (although this version of the pool will be behind from the time where it was detached).
Did something happen to the ada0p4.eli vdev? I don't understand how it might have been damaged if you only detached ada1p4.eli etc.
Thank you for answering, Allan.
Let me describe all steps I done
ada0p4.eli
and ada1p4.eli
. ada1p4.eli
with ada2p4.eli
. ada2p4.eli
to the pool, resilvered it completely and detached ada1p4.eli
from the pool. zpool online -e
on the pool also. So, ada1p4.eli
has all original data unchanged. ada2p4.eli
, and it wasn't attached to the pool. ada0p4.eli
and ada2p4.eli
FAILED (with strange long digit-only name). ada2p4.eli
for geli maintenance. ada2p4.eli
also has full copy of my data as well as ada1p4.eli
, but with extended space. In the result:
ada0p4.eli
was in ONLINE state, when I detached ada2p4.eli
and no other issues happened with itYou have mentioned there is a possibility to extract pool metadata from the detached disks. If I understand you right - how to do it?
I have solved it. I recovered old pool from detached mirrored vdev.
For future searchers: https://gist.github.com/kandeshvari/6d6a267263585123009c98120957131f
Maybe wrong place to ask this, but give me hope...
FreeBSD 12.1-p8
I had mirror on two geli partitions. I have replaced one disk with bigger one, resilvered it completely but I mixed up with geli encryption keys. After reboot new vdev didn't
attached
, so the pool was running on the one old vdev. I havedetached
new vdev for fixing geli keys issue. Fixed it and reboot again, but I forgot toattach
new vdev back to pool! After reboot this pool has switched to FAILURE state and doesn't want to import now.I've tried to do some magic with
zpool import -Ffm zroot
, but it fails:I tried to use
zdb -e zroot
for debugging, but it fails also with:So I can't import pool and can't add new vdev to exported pool (if it possible - I don't know how to do it).
In the result, I have one broken pool on one vdev and two
detached
vdevs with recent data (old vdev and new one).My questions:
Any help will be appreciated