zpool unknown - how to fix

Status
Not open for further replies.

dy1m9

Dabbler
Joined
Jun 3, 2012
Messages
11
hi. im using raidz2 with 4 pcs 2TB - unfortunately two of the harddrive failed and resulted to geometry error.

i tried to replace the hard disk on the zpool and afterwards i encountered a zpool error and unknown status.

using the zpool import. i have these result.

[root@freenas ~]# zpool import
pool: storage
id: 16786228059095281032
state: FAULTED
status: The pool metadata is corrupted.
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-72
config:

storage FAULTED corrupted data
raidz2-0 DEGRADED
ada0p2 ONLINE
replacing-1 UNAVAIL insufficient replicas
6165662555358837975 UNAVAIL cannot open
176234172407761611 UNAVAIL cannot open
replacing-2 UNAVAIL insufficient replicas
18202566125230260674 UNAVAIL cannot open
15749487608898309886 UNAVAIL cannot open
ada1p2 ONLINE


is there a way to fix this and recover the data?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Can you provide some explanation for how this happened? That kind of corruption didn't happen without something going wrong.

Also post the output of zpool status and gpart show and put it in code so its readable. I can't read that garbage you posted. :P
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
Please tell us more about your system and what version of FreeNAS are you using.

I'll leave it up to the more knowledgeable members to answer you.
 

dy1m9

Dabbler
Joined
Jun 3, 2012
Messages
11
hi. i use freenas-8.3.0-release-p1-x86

i have used the system for almost a year now.
i am using raidz2 with 4pcs 2TB HDD and yesterday i got a geometry error and found out that two drives had failed.
i tried to replace them thru zpool status but after clicking the detach button i got an error. now i have remove the damaged drives and just retain the two hdds.

i am doing this command on the shell now: zpool import -R /mnt -FX storage

still waiting for the system to respond.

@cyberjock
i am still waiting for the system to respond before i can input the command zpool status and gpart.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I'm not sure I want to get involved in this one.

How did your drives fail?
How *exactly*, did you try to detach/replace, tell us the sequence?
Did you detach both at the same time?

You really should have waited before running zpool import -R /mnt -FX storage
Every time you run this you risk corrupting your pool even more. The way things have started off here is making me shake my head. Maybe PaleoN will help, I'll admit he's better at this, but you really should have asked for help a lot sooner.
 

dy1m9

Dabbler
Joined
Jun 3, 2012
Messages
11
i clicked replaced both at the same time.

oh. i just read the forum and tried solutions that has similar case to what happened to my system.

i also tried factory resetting the freenas and doing autoimport. i can see the zpool but failed to mount it.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Yeah, by forcing the zpool to mount you went right to the last step(and a dangerous one). If that doesn't work I think it'll be too late to try anything else.

Forcing with -F is like saying I give up, do whatever you can and I'll take what I get that's left(if anything).

Good luck.. but I got the strange suspicion you'll need your backups(if you have any).
 

dy1m9

Dabbler
Joined
Jun 3, 2012
Messages
11
cyberjock here are the information.

A. gpart show

=> 63 3907520 da0 MBR (1.9G)
63 1930257 1 freebsd [active] (942M)
1930320 63 - free - (31k)
1930383 1930257 2 freebsd (942M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 2591 - free - (1.3M)

=> 0 1930257 da0s1 BSD (942M)
0 16 - free - (8.0k)
16 1930241 1 !0 (942M)

=> 34 3907029101 ada0 GPT (1.8T)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834696 2 freebsd-zfs (1.8T)
3907029128 7 - free - (3.5k)

=> 34 3907029101 ada1 GPT (1.8T)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834703 2 freebsd-zfs (1.8T)


B. zpool status

[root@freenas ~]# zpool status
no pools available



what is the next step?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
As far as I'm concerned here are no "next steps". Forcing a zpool mount is the last option after you've tried other things. But by doing the forced mount you've invalidated anything else I'd have recommended. zpool status was useless after you tried the forced mount. Now you'd want to post the output of zpool import and put it in CODE tags so its legible(you didn't do this for the other output like I asked before. Maybe you'll have enough drives to do the import. Other than that I have nothing else to offer...
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Sorry about your data loss. Hopefully you had good backups.
 

dy1m9

Dabbler
Joined
Jun 3, 2012
Messages
11
unfortunately my recent back up was two months ago. anyway i just installed freenas 8.3.1.

are you familiar with tunables? this was from my old setting.

Variable Value Comment Enabled Available actions
autoboot_delay 5 True

vm.kmem_size 1536M True

vm.kmem_size_max 2048M True

vfs.zfs.arc_min 100M True

vfs.zfs.arc_max 256M True

vfs.zfs.prefetch_disable 1 True

vfs.zfs.zil_disable 0 True

vfs.zfs.txg.timeout 30 True

vfs.zfs.vdev.max_pending 35 True

vfs.zfs.vdev.min_pending 4 True

do i still need these setting fro the new version 8.3.1?

here is my current setup
4 * 2 TB HDD Raidz2

System Information

Hostname freenas.local
Build FreeNAS-8.3.1-RELEASE-p2-x64 (r12686+b770da6_dirty)
Platform Pentium(R) Dual-Core CPU E5400 @ 2.70GHz
Memory 4013MB
System Time Sat May 18 14:29:42 PHT 2013
Uptime 2:29PM up 21 mins, 0 users
Load Average 1.21, 0.79, 0.56
Connected through 192.168.254.6
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Not a clue. I consider tuning to be a crazy idea. If you aren't competent enough to answer the question regarding a tuning parameter on your own, you shouldn't be tuning. Hint: I don't tune.
 
Status
Not open for further replies.
Top