It causes a kernel panic. See the initial posts for screen shots of the panic.
Same results occur with zpool import -f vd3 also.
Disks seem to be error free.
Here is what I did to stop kernel panic and actually try to recover:
DISCLAIMER: I would recommend taking pictures/screenshots at each and every steps listed here. If you dont understand something or you think you did something wrong, stop and post output/screenshot here instead of ignoring or trying the next step. We can't help if you missed one step and then wonder why it didn't work as intended.
- Reboot FreeNAS and when GRUB loads up, press "E" to edit
- Scroll down to where the single user mode section starts. You want to add following two lines. Make sure you scroll down to the right section and make sure to follow the format of existing lines.
Code:
set kFreeBSD.vfs.zfs.recover=1
set kFreeBSD.vfs.zfs.debug=1
After second line, press
Enter
and once you are on new line, press
Tab
and it should exit the edit mode.
- Once you are done editing, you can press
Ctrl + X
and it will reboot the system.
Once the GRUB menu loads up again, be sure to select the single user mode that we edited previously.
Once it loads, you should get the following prompt:
"This will get you to the following screen, go ahead and press enter to start /bin/sh"
Type following command:
sh /etc/rc.initdiskless
Now you are ready to start trying to import your pools.
First pass is just trying a straight import:
# zpool import -R /mnt poolname
If it says recovery is possible but you might lose some data, take a look and see how much data has to be discarded:
If you get the recovery option but it complains that
The pool was last accessed by another system and you have to use -f to force import
, then try:
# zpool import -F -f poolname
If you get a panic then repeat the above steps, but try:
# zpool import -o readonly=on -R /mnt poolname
If this works your pool imported read only. Backup your data and life goes on.
As a final desperation move, or after you've managed to import the pool readonly and copy everything off you can try:
# zpool import -R /mnt -FX poolname
The above command has a
good chance of destroying your pool, but it also has a chance of importing it.
Work Cited:
These steps were posted by
@jpaetzel and
@technopop on
THIS thread. I just re-worded and re-arranged some of the things to make it easier to follow. It helped me with my issue so I figured it might help with yours.