Zpool not available after power loss

Status
Not open for further replies.

Patrik

Dabbler
Joined
Jan 18, 2014
Messages
10
Hello,

i've a big problem. After a power outage, my freenas installation version 9.1.1 had problems to reactivae a zpool.Everything is gone, all media all data.

root@nas02] ~# zpool import
pool: data
id: 8070147856297862010
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://illumos.org/msg/ZFS-8000-3C
config:

data UNAVAIL insufficient replicas
13740066716791306146 UNAVAIL cannot open
8707793149854576358 UNAVAIL cannot open
15802201165049795780 UNAVAIL cannot open
ada3 ONLINE
gpart status
Name Status Components
ada0p1 CORRUPT ada0
ada0p2 CORRUPT ada0
ada1p1 CORRUPT ada1
ada1p2 CORRUPT ada1
ada2p1 CORRUPT ada2
ada2p2 CORRUPT ada2
ada4p1 OK ada4
ada4p2 OK ada4
da0p1 OK da0
da0p2 OK da0
da1s1 OK da1
da1s2 OK da1
da1s3 OK da1
da1s4 OK da1
da1s1a OK da1s1
da1s2a OK da1s2

So ist ther a way to recover my pool?

thanks in advanced
Patrik
 

Patrik

Dabbler
Joined
Jan 18, 2014
Messages
10
So as far as i can see ist has to be always the first partition ada0p1, ada1p1, ada2p1 which seems to be unavailable. And the first gpt-table seems to be corrupt.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Patrik:

If you've been running FreeNAS without the UPS power backup that is recommended in the manual, you very well could have a complete pool loss here. This is why we say time and time and time and time again to have a UPS with a FreeNAS box.

However, if you come into the irc channel, cyberjock (when he's there---usually around dinner-time in the United States) has helped people successfully in this situation WHEN their pools are, in fact, recoverable. You are not the first one with this problem--check the forum here for other possible posts.
 

david kennedy

Explorer
Joined
Dec 19, 2013
Messages
98
I've been reading the freenas forms for some time as i consider dumping my solaris nas and moving to FreeNas.


Is this more a FreeBSD/FreeNas issue or ZFS?

The reason I ask is I have had a nas running solaris for around 3.5 years (opensolaris ->Solaris 11->Solaris 11.1).

The NAS runs 24x7 and has suffered multiple power outages (it runs on 240V and I cant find a suitable UPS).

Anyhow, when the power comes back up the system auto-starts and carries on.
I usually have around 70-90 days of uptime before there is some sort of power issue which resets the system.

I run a monthly scrub and have never lost a single file or had any disk issues.

Perhaps its because of a difference between zfs on solaris using the entire disk vs partitions on freebsd?
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Not sure if anyone can answer that for sure. As far as I know the original Sun ZFS - in theory - shouldn't have any problems with unclean shutdowns. However, there are cases of users in this forum who lost their pool after a power outage, and nobody could ever pin down a certain reason.

I have encountered several power outages as well, and so far no corruption or damage of the file system took place. But I'm aware of the possible problems (and my under-spec'ed hardware) and regularly backup the irreplaceable data.
 
Status
Not open for further replies.
Top