SOLVED Is there a way to repair a GPT / import pool that was not ex?

NASbox

Guru
Joined
May 8, 2012
Messages
644
Likely do to an improper shutdown, I have a corrupt boot drive. AFAIK it's just the GPT.

I made a 11.1-U7 install USB and booted into the shell and ran gpart list ada2 against the boot drive (ada2). The result is STATE: CORRUPT, but the providers P1/P2 appear to be OK.

I also examined this drive with a linux recovery disk (but did not make any changes), and it reported corruption, but said that there was second good copy.

Is there a utility that I can use to repair this drive?

The following code:
Code:
gpart recover /dev/ada2
fixed the error in question, but Grub was still corrupted - had to do a repair.
 
Last edited:
Joined
Oct 18, 2018
Messages
969
What is your pool layout, especially the pool the drive came from?

fixed the error in question, but Grub was still corrupted - had to do a repair.
Could you try wiping the disk and trying to use it as a new disk and resilver it?

It is probably worth running a long smart test on the drive as well.
 

NASbox

Guru
Joined
May 8, 2012
Messages
644
Thanks for the reply.... It was a single disk freenas-boot pool and it appears as if the GPT and grub got corrupted by an improper shut down.... Reinstalling the same version as an upgrade fixed it without making any other changes. I checked smart and there were no events.
 
Top