Hi,
After almost a year of lurking, reading a lot, researching and finally building my own FreeNAS server, I'm encountering my first problem I can't seem to solve on my own :)
Just some background: I built a FreeNAS based on a Xeon E3-1230v5, Supermicro X11SSL-CF, supported Samsung ECC RAM (32GB) and 2 pools: a mirrored SSD pool for my test VMs (2x250GB) and a raid-z2 pool for my data (6x4TB WD Reds). One quirk: I'm running FreeNAS as a VM on ESXi, with all my disks passed through and all configuration done as described in these forums and the 'official' blog post by the FreeNAS project. The build was done in July this year, so not too long ago.
Today I got some worrisome mails from my FreeNAS telling me one of the WD Reds was unavailable and the data zpool was degraded. And indeed:
(Don't mind the root thing, my infra is still being built appropriately :p)
Apparently, SMART also started failing for this disk:
But the weird thing is, smartctl output doesn't show anything:
I checked all other disks to make sure they were not renumbered, but this one is clearly The One (serial matches with GUI output for /dev/da3). All other disks have the same SMART output and no disk is missing. smartctl -x also shows recent readouts successfully done:
Trying to bring it back online clearly fails though:
I'm a bit confused here. I fully accept something is wrong with the disk and I should replace it (replacement disk is already on its way, should have provided a spare disk at the start), but how can I verify what is going wrong with this disk if smartctl isn't showing anything (although the errors are clear in the log)?
My current guess is: the disk is b0rked, SMART failed a couple of times so FreeNAS is 'blocking' it, and it's only a matter of time before it completely dies on me. Possible?
Thanks!
Edit: just noticed the g_eli_read_done errors rereading my post, but to be clear: I have no encryption enabled on any zpool.
After almost a year of lurking, reading a lot, researching and finally building my own FreeNAS server, I'm encountering my first problem I can't seem to solve on my own :)
Just some background: I built a FreeNAS based on a Xeon E3-1230v5, Supermicro X11SSL-CF, supported Samsung ECC RAM (32GB) and 2 pools: a mirrored SSD pool for my test VMs (2x250GB) and a raid-z2 pool for my data (6x4TB WD Reds). One quirk: I'm running FreeNAS as a VM on ESXi, with all my disks passed through and all configuration done as described in these forums and the 'official' blog post by the FreeNAS project. The build was done in July this year, so not too long ago.
Today I got some worrisome mails from my FreeNAS telling me one of the WD Reds was unavailable and the data zpool was degraded. And indeed:
Code:
[root@duvel] ~# zpool status zpool-data -v cannot open '-v': name must begin with a letter pool: zpool-data state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://illumos.org/msg/ZFS-8000-2Q scan: scrub repaired 0 in 0h51m with 0 errors on Thu Sep 15 02:51:41 2016 config: NAME STATE READ WRITE CKSUM zpool-data DEGRADED 0 0 0 raidz2-0 DEGRADED 0 0 0 gptid/c3c0ff42-4ac9-11e6-9a8e-0cc47a81f344 ONLINE 0 0 0 gptid/c4e14e68-4ac9-11e6-9a8e-0cc47a81f344 ONLINE 0 0 0 6054603385877469052 UNAVAIL 3 152 0 was /dev/gptid/c5fc4597-4ac9-11e6-9a8e-0cc47a81f344 gptid/c71aad36-4ac9-11e6-9a8e-0cc47a81f344 ONLINE 0 0 0 gptid/c83372aa-4ac9-11e6-9a8e-0cc47a81f344 ONLINE 0 0 0 gptid/c9514fab-4ac9-11e6-9a8e-0cc47a81f344 ONLINE 0 0 0 errors: No known data errors
(Don't mind the root thing, my infra is still being built appropriately :p)
Apparently, SMART also started failing for this disk:
Code:
[root@duvel] ~# date Mon Sep 26 17:49:28 CEST 2016 [root@duvel] ~# tail -20 /var/log/messages Sep 26 07:43:49 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 08 0e 00 d5 00 01 00 01 00 4f 00 c2 00 b0 00 length 512 SMID 232 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 07:43:49 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 06 2c 00 da 00 00 00 00 00 4f 00 c2 00 b0 00 length 0 SMID 769 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 07:43:50 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 06 2c 00 da 00 00 00 00 00 4f 00 c2 00 b0 00 length 0 SMID 223 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 07:43:50 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 08 0e 00 d0 00 01 00 00 00 4f 00 c2 00 b0 00 length 512 SMID 338 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 07:43:50 duvel smartd[3455]: Device: /dev/da3 [SAT], failed to read SMART Attribute Data Sep 26 07:43:50 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 08 0e 00 d0 00 01 00 00 00 4f 00 c2 00 b0 00 length 512 SMID 638 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 07:43:50 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 08 0e 00 d5 00 01 00 06 00 4f 00 c2 00 b0 00 length 512 SMID 895 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 07:43:51 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 08 0e 00 d5 00 01 00 06 00 4f 00 c2 00 b0 00 length 512 SMID 373 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 07:43:51 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 08 0e 00 d5 00 01 00 01 00 4f 00 c2 00 b0 00 length 512 SMID 153 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 07:43:51 duvel (pass4:mpr0:0:2:0): ATA COMMAND PASS THROUGH(16). CDB: 85 08 0e 00 d5 00 01 00 01 00 4f 00 c2 00 b0 00 length 512 SMID 372 terminated ioc 804b scsi 0 state c xfer 0 Sep 26 08:00:50 duvel GEOM_ELI: g_eli_read_done() failed (error=6) da3p1.eli[READ(offset=0, length=131072)] Sep 26 08:00:50 duvel GEOM_ELI: g_eli_read_done() failed (error=6) da3p1.eli[READ(offset=262144, length=131072)] Sep 26 08:00:50 duvel GEOM_ELI: g_eli_read_done() failed (error=6) da3p1.eli[READ(offset=2146959360, length=131072)] Sep 26 08:00:50 duvel GEOM_ELI: g_eli_read_done() failed (error=6) da3p1.eli[READ(offset=2147221504, length=131072)] Sep 26 12:44:00 duvel upsd[2571]: Data for UPS [ups] is stale - check driver Sep 26 12:44:00 duvel upsd[2571]: UPS [ups] data is no longer stale Sep 26 17:11:51 duvel GEOM_ELI: g_eli_read_done() failed (error=6) da3p1.eli[READ(offset=0, length=131072)] Sep 26 17:11:51 duvel GEOM_ELI: g_eli_read_done() failed (error=6) da3p1.eli[READ(offset=262144, length=131072)] Sep 26 17:11:51 duvel GEOM_ELI: g_eli_read_done() failed (error=6) da3p1.eli[READ(offset=2146959360, length=131072)] Sep 26 17:11:51 duvel GEOM_ELI: g_eli_read_done() failed (error=6) da3p1.eli[READ(offset=2147221504, length=131072)]
But the weird thing is, smartctl output doesn't show anything:
Code:
[root@duvel] ~# smartctl -a /dev/da3 smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Western Digital Red Device Model: WDC WD40EFRX-68WT0N0 Serial Number: WD-WCC4E5NZXNCS LU WWN Device Id: 5 0014ee 262b146ed Firmware Version: 82.00A82 User Capacity: 4,000,787,030,016 bytes [4.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 5400 rpm Device is: In smartctl database [for details use: -P show] ATA Version is: ACS-2 (minor revision not indicated) SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Mon Sep 26 17:50:04 2016 CEST SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x00) Offline data collection activity was never started. Auto Offline Data Collection: Disabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: (52980) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 530) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x703d) SCT Status supported. SCT Error Recovery Control supported. SCT Feature Control supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0027 206 179 021 Pre-fail Always - 6675 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 15 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0 9 Power_On_Hours 0x0032 098 098 000 Old_age Always - 1779 10 Spin_Retry_Count 0x0032 100 253 000 Old_age Always - 0 11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 11 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 0 193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 773 194 Temperature_Celsius 0x0022 119 111 000 Old_age Always - 33 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 1689 - # 2 Short offline Completed without error 00% 1641 - # 3 Short offline Completed without error 00% 1593 - # 4 Extended offline Completed without error 00% 1558 - # 5 Short offline Completed without error 00% 1545 - # 6 Short offline Completed without error 00% 1497 - # 7 Short offline Completed without error 00% 1449 - # 8 Short offline Completed without error 00% 1401 - # 9 Short offline Completed without error 00% 1353 - #10 Short offline Completed without error 00% 1305 - #11 Short offline Completed without error 00% 1258 - #12 Extended offline Completed without error 00% 1222 - #13 Short offline Completed without error 00% 1210 - #14 Short offline Completed without error 00% 1162 - #15 Short offline Completed without error 00% 1138 - #16 Short offline Completed without error 00% 1090 - #17 Short offline Completed without error 00% 1042 - #18 Short offline Completed without error 00% 994 - #19 Short offline Completed without error 00% 946 - #20 Short offline Completed without error 00% 898 - #21 Short offline Completed without error 00% 850 - SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay.
I checked all other disks to make sure they were not renumbered, but this one is clearly The One (serial matches with GUI output for /dev/da3). All other disks have the same SMART output and no disk is missing. smartctl -x also shows recent readouts successfully done:
Code:
Index Estimated Time Temperature Celsius 477 2016-09-26 09:54 33 ************** ... ..(476 skipped). .. ************** 476 2016-09-26 17:51 33 **************
Trying to bring it back online clearly fails though:
Code:
[root@duvel] ~# zpool online zpool-data 6054603385877469052 warning: device '6054603385877469052' onlined, but remains in faulted state use 'zpool replace' to replace devices that are no longer present
I'm a bit confused here. I fully accept something is wrong with the disk and I should replace it (replacement disk is already on its way, should have provided a spare disk at the start), but how can I verify what is going wrong with this disk if smartctl isn't showing anything (although the errors are clear in the log)?
My current guess is: the disk is b0rked, SMART failed a couple of times so FreeNAS is 'blocking' it, and it's only a matter of time before it completely dies on me. Possible?
Thanks!
Edit: just noticed the g_eli_read_done errors rereading my post, but to be clear: I have no encryption enabled on any zpool.
Last edited: