Trying to figure out Degraded state

Status
Not open for further replies.

aeiche

Cadet
Joined
Nov 27, 2013
Messages
2
Hi Everyone, first post here:

I've been running Freenas 8.3.0 for a while and recently I came across this (after, IIRC, replacing a failed drive):

Code:
[aeiche@freenas] /# zpool status -v
  pool: ZFSPool
state: DEGRADED
status: One or more devices has experienced an error resulting in data
    corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
    entire pool from backup.
  see: http://www.sun.com/msg/ZFS-8000-8A
  scan: scrub repaired 0 in 18h14m with 8 errors on Tue Oct 29 06:32:16 2013
config:
 
    NAME                                            STATE    READ WRITE CKSUM
    ZFSPool                                        DEGRADED    0    0    21
      raidz1-0                                      DEGRADED    0    0    42
        ada1                                        FAULTED      5 6.40M    0  too many errors
        gptid/231c9e00-4fdf-11e2-a258-002522b37906  ONLINE      0    0    0
        ada0                                        ONLINE      0    0    0
        gptid/b4082b65-fcc4-11e2-8593-002522b37906  ONLINE      0    0    0
 
errors: Permanent errors have been detected in the following files:
 
        /mnt/ZFSPool/Movies/IRON_MAN.m4v
        /mnt/ZFSPool/Backups/Aaron- Backup/Aaron iMac Backup.sparsebundle/bands/8673
        /mnt/ZFSPool/Backups/Hykel - Backup/Hykel iMac Oct2011.sparsebundle/bands/1275c
        /mnt/ZFSPool/Downloads/demo_beaglebone_BBB-eMMC-flasher-2013.06.20.img.xz
        /mnt/ZFSPool/Backups/Laurie's iBook Disc/Users/Roo/Music/iTunes/iTunes Music/Compilations/A Knight's Tale/06 Further On Up The Road.m4a
        /mnt/ZFSPool/Backups/Laurie's iBook Disc/Users/Roo/Music/iTunes/iTunes Music/Compilations/A Million In Prizes The Anthology [Disc 1]/1-16 Tonight.m4a


Is this a problem with the drive, or a problem with the files? Naturally I want to correct this issue. This is RAID-Z1, so having a drive failure would be bad. None of these files are particularly important. The backups are the most important (because they're backups)

Will replacing this drive and resilvering fix this issue? Or am I going to run into it again because it's a file problem?
My familiarity with ZFS is pretty thin, I'm decent at command line stuff, but not an expert by any means.

many thanks
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Well, you're running RAIDZ1 with 1 failed disk(ada1). You have some kind of secondary problem too since you have corrupted files(those listed). That list is not necessarily all inclusive as it only includes files it's found to have errors since last bootup. Basically you need to follow the manual for replacing a failed disk for ada1. More than likely you're going tohave zpool metadata errors which can only be fixed by destroying and recreating the pool.

If you had done a RAIDZ2 you'd probably just need to do a disk replacement and that would be all. RAIDZ1 is not reliable(hence my link in my sig trying to get people to quit using it as its not trustworthy). Bet you wish you had done RAIDZ2 huh?
 

aeiche

Cadet
Joined
Nov 27, 2013
Messages
2
Well, that helps. At the time I built the pool, RAIDZ2 seemed pretty new (at least in terms of FreeNAS) and I didn't see anything that suggested I would get anything more out of Z2 than Z1 except an extra drive of redundancy. If RAIDZ1 isn't trustworthy, why is it available? (maybe it isn't anymore). I thought I'd done well in having 3 drives, 1 redundant, and 1 unopened ready to swap.
Hindsight is 20/20 of course.

Thanks for providing the insight.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
RAIDZ1 has its uses. Many people just want some reliable storage temp space and they don't care if they have to destroy it later.

Enterprise class file servers aren't "built". They must be "engineered" properly. That requires more knowledge than your standard "builder" is going to have. And far too often your standard builder doesn't have the necessary knowledge to get it right. That chasm in between is where everyone else falls into and regrets the depth they fall to. :(
 
Status
Not open for further replies.
Top