Recover data after failure of 2 hard drives (out of 4)

kotelni

Cadet
Joined
Feb 3, 2013
Messages
3
Hi,

I'm new to FreeNAS... After move of house it looks like 2 HDD out of four are failing (they produce a lot of clicking noise if connected). These two were mirroring each other. I tried to replace each of these two with a new HDD (one at a time) hoping that mirror will be restored - but it did not help. So now I have both failed HDDs changed to the new ones.
I would put up with losing data on these 2 HDD (1T each), but can I recover the data of other two (3T each)? For example, create a new zpool and import individual volumes without loosing data?

The volume was in failure state and I unmounted it. Now I cannot zpool import:
[root@freenas ~]# zpool import
pool: second
id: 3077885583323204223
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://www.sun.com/msg/ZFS-8000-6X
config:

second UNAVAIL missing device
mirror-0 ONLINE
gptid/335fa324-6e48-11e2-a45a-001871691677 ONLINE
gptid/33ec0697-6e48-11e2-a45a-001871691677 ONLINE

Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.


Here is my glabel status output:
[root@freenas ~]# glabel status
Name Status Components
gptid/335fa324-6e48-11e2-a45a-001871691677 N/A ada2p2
gptid/33d09765-6e48-11e2-a45a-001871691677 N/A ada3p1
gptid/33ec0697-6e48-11e2-a45a-001871691677 N/A ada3p2
ufs/FreeNASs3 N/A da0s3
ufs/FreeNASs4 N/A da0s4
ufsid/4e974e4e950b49b4 N/A da0s1a
ufs/FreeNASs1a N/A da0s1a
ufs/FreeNASs2a N/A da0s2a

gpart show
=> 34 5860533101 ada2 GPT (2.7T)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 5856338696 2 freebsd-zfs (2.7T)
5860533128 7 - free - (3.5k)

=> 34 5860533101 ada3 GPT (2.7T)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 5856338696 2 freebsd-zfs (2.7T)
5860533128 7 - free - (3.5k)

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

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

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
but can I recover the data of other two
Nope. That's what happens when vdevs are striped together (as they always are), and that's the risk of mirrors. If you can't get at least one of those other two disks online, your data is gone.
 

Holt Andrei Tiberiu

Contributor
Joined
Jan 13, 2016
Messages
129
Can I ask the model and brand of the failed drive's
 

Holt Andrei Tiberiu

Contributor
Joined
Jan 13, 2016
Messages
129
Yes, desktop, had a few, all dyed after 2-3 years. Still using Seagate, but the DVR editions, SKYHAWK, but only for radz2 pools, good in sequential read and write, very bad at 4k random.

Funny thing, i have a lot of server grade SAS drives, no problems at all for the last 2 years, even have FC drives, and none failed, and thoes are 7+ years old. These drives were already 5-6 years old when i got them, and worked 24/7.

Sorry for your misfortune.
 
Top