Unable to Import zpool

Status
Not open for further replies.

shetu

Dabbler
Joined
Mar 20, 2013
Messages
24
My zfs pool gone after power failure. zpool import -f command result are same.

  1. * FreeNAS version : FreeBSD 9.0-STABLE (revision 199506)
  2. * Hardware: x86-embedded on Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
  3. * Motherboard (Model) : Gigabyte G41M-Combo
  4. * CPU (Model)
  5. * RAM Size (in GB and model) : DDR2 4GB
  6. Hard Drives (Model), Quantity, and RAIDZ configuration : 1 Hdd 2 TB, stripe
  7. Add-On cards : no add-on cards
  8. For network connectivity, include details on your network hardware/configuration.
freenas:/dev# zpool status
no pools available

freenas:/dev# zpool import
pool: fileserver
id: 3914762939957448315
state: FAULTED
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
The pool may be active on another system, but can be imported using
the '-f' flag.
see: http://www.sun.com/msg/ZFS-8000-5E
config:

fileserver FAULTED corrupted data
17792117230241190874 FAULTED corrupted data
 
Last edited:

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Yup, you had a single disk stripe and probably didn't have a UPS either. It's probably safe to say goodbye to whatever was on your pool. At this stage, you will need to restore from backup.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Yeah, if that was a single hard drive, without proper protection from power surges and losses, and you can't import, then you're more or less screwed sir.

This is why we have strict hardware and pool configuration recommendations.

Sorry to deliver the bad news.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
HDD recovery on a 1-drive ZFS vdev is highly non-trivial, and I imagine, expensive.
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
I too, was waiting to hear the reply.

Last year the OP said "it is for learning purpose. I will move on real hardware when i finish learn freenas."

If it's the same VM with 512MB RAM, perhaps it should be nominated for a Darwin award.

Awww... You all ruined it. I wanted to see if they were running the same setup from: Freenas disappear from Lan
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Jesus.

Sometimes I wonder why I bother.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
If it wasn't a VM, why would a power failure kill the pool?
In this case it looks like the last transaction that occurred didn't get fully committed to disk. Using the -f flag like it says will try to roll back to a good transaction state.

This person also has terrible hardware and probably lots of other problems.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Using the -f flag like it says will try to roll back to a good transaction state.
No, the -f flag will allow importing a pool that (it thinks) is in use on another system, i.e., that hasn't been properly exported. The -F flag will try to roll back to a good transaction state. The -F flag can be combined with -n to determine if the rollback will be possible without changing anything.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
No, the -f flag will allow importing a pool that (it thinks) is in use on another system, i.e., that hasn't been properly exported. The -F flag will try to roll back to a good transaction state. The -F flag can be combined with -n to determine if the rollback will be possible without changing anything.
I stand corrected.
 
Status
Not open for further replies.
Top