Mirrored pair - disk failure - now what?

Status
Not open for further replies.

Pandamonium

Dabbler
Joined
Nov 2, 2016
Messages
47
Hi All,

I have a mirrored pair for my none critical stuff and one drive has died totally. My problem is that I can't see any data from the other drive and Freenas reports the volume availablity as "error getting available space" and status UNKNOWN.

I have two questions (for now :smile:)...

1. Is it possible to see the files on the working disk through the shell or somehow? I would like to prove they are still intact before I waste any further time trying to fix this. The drive shows up in the drive list, but does not show as mounted so I can't seem to browse it. My Linux knowledge is minimal so I'm hoping there is some way I don't know about to see the contents of this drive.

2. If the data is still intact, how do I recover from here? I'd like to make the volume available temporarily without it's mirror until I can get a replacement drive if that's possible as it's the storage location for several plugins.

Thanks in advance.

Paul
 

Artion

Patron
Joined
Feb 12, 2016
Messages
331
can you please post the output of zpool status command?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Sounds like you pulled the wrong drive and/or the "good" drive was not much better.
 

Pandamonium

Dabbler
Joined
Nov 2, 2016
Messages
47
can you please post the output of zpool status command?

Hi Artion,

Thanks for getting back to me. Here is the info you asked for. It doesn't even show the volume in question though (NAS_Stripe). Also, I know about the book degraded situation. I think one of my USB drives has given up too, but that's less important at the moment :smile:

Code:
  pool: NAS_Raid
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
	still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
	the pool may no longer be accessible by software that does not support
	the features. See zpool-features(7) for details.
  scan: scrub repaired 0 in 3h19m with 0 errors on Sun Aug  6 03:19:51 2017
config:

	NAME											STATE	 READ WRITE CKSUM
	NAS_Raid										ONLINE	   0	 0	 0
	  raidz2-0									  ONLINE	   0	 0	 0
		gptid/ac75ea39-b616-11e6-b2b6-001d608016cb  ONLINE	   0	 0	 0
		gptid/ad327130-b616-11e6-b2b6-001d608016cb  ONLINE	   0	 0	 0
		gptid/ade181a9-b616-11e6-b2b6-001d608016cb  ONLINE	   0	 0	 0
		gptid/aea22360-b616-11e6-b2b6-001d608016cb  ONLINE	   0	 0	 0
		gptid/af65bf05-b616-11e6-b2b6-001d608016cb  ONLINE	   0	 0	 0
		gptid/b015efce-b616-11e6-b2b6-001d608016cb  ONLINE	   0	 0	 0

errors: No known data errors

  pool: freenas-boot
 state: DEGRADED
status: One or more devices has experienced an unrecoverable error.  An
	attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
	using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: scrub repaired 10.3M in 0h19m with 0 errors on Fri Sep  1 04:04:05 2017
config:

	NAME		STATE	 READ WRITE CKSUM
	freenas-boot  DEGRADED	 0	 0	 0
	  mirror-0  DEGRADED	 0	 0	 0
		da6p2   DEGRADED	 0	 0	 0  too many errors
		da7p2   DEGRADED	 0	 0	 0  too many errors

errors: No known data errors



The second drive to the mirrored set still looks OK to me. It shows up as DA5 with partition information which seems OK...
Code:
=>		34  3907029101  da5  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)
 

Kam

Dabbler
Joined
Mar 28, 2016
Messages
39
Why is pool you are missing named "NAS_Stripe"? Are you really sure it was mirror (RAID1) and not a stripe pool (RAID0)? Just a question, it looks strange to name pool "stripe" when you are talking about mirrored pool.
 

Pandamonium

Dabbler
Joined
Nov 2, 2016
Messages
47
Why is pool you are missing named "NAS_Stripe"? Are you really sure it was mirror (RAID1) and not a stripe pool (RAID0)? Just a question, it looks strange to name pool "stripe" when you are talking about mirrored pool.

LOL - Yes, it's a fair question. Originally I was going to make it a stripe pool and started to set it up that way, but realised I wanted safety over speed so switched to mirrored. Didn't think to rename it as I was used to it by then.
 

Pandamonium

Dabbler
Joined
Nov 2, 2016
Messages
47
OK, with that disk connected, what's the output of zpool import?

Hmm. Maybe I am wrong and it's not a mirrored pair after all. Here is the output which suggests (I think) that it's was actually three drives and really was a stripe...

Code:
root@freenas:~ # zpool import
   pool: NAS_Stripe
	 id: 16329295767406830300
  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-6X
 config:

		NAS_Stripe									UNAVAIL  missing device
		  gptid/acc98974-8a28-11e6-8543-001d608016cb  ONLINE
		  gptid/4390c98e-8ba5-11e6-99f3-001d608016cb  ONLINE

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

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Yes, there is a vdev missing and the two vdevs present are single drives.
 

Pandamonium

Dabbler
Joined
Nov 2, 2016
Messages
47
So it's all over for the data then?
 

Pandamonium

Dabbler
Joined
Nov 2, 2016
Messages
47
How bad is the failed drive? Does it work in another computer?
Sadly it seems to be dead. In another computer, it spins up on power up, does a couple of head rattles and then spins down again. Ñever gets recognised.
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419

Artion

Patron
Joined
Feb 12, 2016
Messages
331
Sadly it seems to be dead. In another computer, it spins up on power up, does a couple of head rattles and then spins down again. Ñever gets recognised.
At this point you can try to get it work by opening it out...nothing to loose trying. Maybe the heads are stuck. With the disk opened and attached try to see how the heads move and if they are stuck in one position try to move them carefully to unstuck them. If this works and the disk get recognised and the pool reappears, backup your data at once ;)
 

Pandamonium

Dabbler
Joined
Nov 2, 2016
Messages
47
No redundancy.

How bad do you want the data back?

http://datarecovery.com

Not that bad :smile:. It's nothing I can't get back, just wanted to try and save some time.

Just annoyed that I had intended this to be a mirrored pair for safety and never got around to doing it. Oh well, lesson learnt.

Thanks everyone for you replies. Off to build new mirrored pair now :smile:
 
Status
Not open for further replies.
Top