SOLVED Raidz2 recovery after power outage

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
Greetings,

I've had a power outage which might have bricked some devices. An Access Point for example is broken as are Mainboard / CPU / RAM.
So I put older Motherboard in with i7 2600 GA-H77 Gigabyte with 16 GB of RAM non ECC.
There are five spinning HDD with size of 4 TB each. In
Code:
geom disk list
each device shows up as {ada0..ada4}.
FreeNAS-11.2-U4.1 is running on an USB flash drive which boots fine. Host gets up with correct IP and stuff but Pool is encrypted. I try to decrypt but the error
Code:
Code Code
pops up. I finally decide to
1. backup config with recovery key of zpool
2. detach pool
3. reimport encrypted pool with uploading key and giving password

When it comes to where I have to select the Pool from dropdown men it just doesn't show anything (screenshot).
I can't pull the menu open. When I enter
Code:
zpool status
only the boot pool shows up.
I've also tried a different backup of encryption key of pool but same problem.
This show up in middlewared.log when I hit next in the wizard.
Code:
[2019/09/26 20:30:17] (DEBUG) middleware.notifier.geli_attach_single():598 - gptid/3c38d05a-2ac4-11e7-97e2-001b21c1a8c0 already attached
[2019/09/26 20:30:17] (DEBUG) middleware.notifier.geli_attach_single():598 - gptid/4076a268-2ac4-11e7-97e2-001b21c1a8c0 already attached
[2019/09/26 20:30:17] (DEBUG) middleware.notifier.geli_attach_single():598 - gptid/6a727f00-94df-11e9-a437-001b21c1a8c0 already attached
[2019/09/26 20:30:17] (DEBUG) middleware.notifier.geli_attach_single():598 - gptid/1e54548e-9534-11e9-b085-001b21c1a8c0 already attached
[2019/09/26 20:30:17] (DEBUG) middleware.notifier.geli_attach_single():598 - gptid/5ac3ea5a-9451-11e9-a437-001b21c1a8c0 already attached



Any ideas on this? :oops:

I suspect drives might also be in jeopardy. I just started long smartctl tests on each drive. So far none of the disks have had any sector reallocated so far. Hope I can get it mounted again :)
Wish me luck
 

Attachments

  • reimport_freenas_after_crash.png
    reimport_freenas_after_crash.png
    524 KB · Views: 278
Last edited:

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
Every single disk ran through long smartctl test without any errors whatsoever. Importing still not working though.
Everytime I try I get those "already attached" messages in middleward.log and nothing else happens.
Is importing via command line an option?

Edit:
I just updated to U6. Still same problem. Meanwhile I figured out that the SSD Cache disk isn't detected properly. This might the the reason. I keep you updated.
 
Last edited:

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
One more thing... ada3 is currently not showing up during the import dialog.
In /var/log/messages there is this record:
Code:
Sep 28 01:21:05 filer.unix.gosix.net GEOM: ada3: corrupt or invalid GPT detected.

Sep 28 01:21:05 filer.unix.gosix.net GEOM: ada3: GPT rejected -- may not be recoverable.


I've googled around what has to be done in such case but I'm too afraid right now to try any of those measures since some suggest to delete parts of the MBR or something.
 

Junicast

Patron
Joined
Mar 6, 2015
Messages
206
Ok now I tried to import the volume once again and it worked. I only chose ada0, ada1, ada2 and ada4. The volume came back in degraded state. I replaced the missing drive and now it's resilvering. Quite strange situations I encountered but I'm relieved it's back online now.
 
Top