Help with critical alert

Status
Not open for further replies.

BlazeStar

Patron
Joined
Apr 6, 2014
Messages
383
Hi guys,

I just got this critical alert by email, which freaks me out:

Code:
Device: /dev/ada4, 20 Offline uncorrectable sectors
Device: /dev/ada4, 4 Currently unreadable (pending) sectors


What should I do ?
 

darkwarrior

Patron
Joined
Mar 29, 2015
Messages
336
Hi there,
You gotta check the SMART status of your drive ada4.
Do you have scheduled long and short SMART tests on all your drives ?
 

darkwarrior

Patron
Joined
Mar 29, 2015
Messages
336

BlazeStar

Patron
Joined
Apr 6, 2014
Messages
383
BTW: What is your system config ?

Well this box is my home FreeNAS system :
Code:
Build	FreeNAS-9.10.1-U2 (f045a8b)
Platform	Intel(R) Core(TM) i5-4430 CPU @ 3.00GHz
Memory	16003MB
System Time	Mon Nov 28 22:18:21 EST 2016
Uptime	10:18PM up 30 days, 3:45, 0 users
Load Average	0.67, 0.45, 0.41


I have two pools:

The first one is a RAIDZ2 composed of 5 X 4 TB drives
This pool is for my stuff.

The other one is a RAIDZ1 pool composed of 3 X 4 TB drives.
This pool is dedicated to receive remote replication from my production server at work.

/dev/ada4 is in the RAIDZ1 pool :(

You can run the following command for instance:
smartctl -x /dev/ada4

Here goes:

Code:
[root@HomeNAS] ~# smartctl -x /dev/ada4
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 Se
Device Model:	 WDC WD4000F9YZ-09N20L0
Firmware Version: 01.01A01
User Capacity:	4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:	 512 bytes logical, 4096 bytes physical
Rotation Rate:	7200 rpm
Device is:		In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:	Mon Nov 28 22:19:32 2016 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Disabled
Rd look-ahead is: Enabled
Write cache is:   Enabled
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
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:		 (43860) 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:	  ( 474) minutes.
Conveyance self-test routine
recommended polling time:	  (   5) minutes.
SCT capabilities:			(0x70bd)	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		  FLAGS	VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate	 POSR-K   200   200   051	-	0
  3 Spin_Up_Time			POS--K   147   138   021	-	11616
  4 Start_Stop_Count		-O--CK   100   100   000	-	47
  5 Reallocated_Sector_Ct   PO--CK   200   200   140	-	0
  7 Seek_Error_Rate		 -OSR-K   200   200   000	-	0
  9 Power_On_Hours		  -O--CK   076   076   000	-	17634
10 Spin_Retry_Count		-O--CK   100   253   000	-	0
11 Calibration_Retry_Count -O--CK   100   253   000	-	0
12 Power_Cycle_Count	   -O--CK   100   100   000	-	47
183 Runtime_Bad_Block	   -O--CK   100   100   000	-	0
192 Power-Off_Retract_Count -O--CK   200   200   000	-	28
193 Load_Cycle_Count		-O--CK   200   200   000	-	18
194 Temperature_Celsius	 -O---K   101   087   000	-	51
196 Reallocated_Event_Count -O--CK   200   200   000	-	0
197 Current_Pending_Sector  -O--CK   200   200   000	-	20
198 Offline_Uncorrectable   ----CK   200   200   000	-	20
199 UDMA_CRC_Error_Count	-O--CK   200   200   000	-	0
200 Multi_Zone_Error_Rate   ---R--   198   198   000	-	848
							||||||_ K auto-keep
							|||||__ C event count
							||||___ R error rate
							|||____ S speed/performance
							||_____ O updated online
							|______ P prefailure warning

General Purpose Log Directory Version 1
SMART		   Log Directory Version 1 [multi-sector log support]
Address	Access  R/W   Size  Description
0x00	   GPL,SL  R/O	  1  Log Directory
0x01		   SL  R/O	  1  Summary SMART error log
0x02		   SL  R/O	  5  Comprehensive SMART error log
0x03	   GPL	 R/O	  6  Ext. Comprehensive SMART error log
0x04	   GPL,SL  R/O	  8  Device Statistics log
0x06		   SL  R/O	  1  SMART self-test log
0x07	   GPL	 R/O	  1  Extended self-test log
0x08	   GPL	 R/O	  2  Power Conditions log
0x09		   SL  R/W	  1  Selective self-test log
0x10	   GPL	 R/O	  1  SATA NCQ Queued Error log
0x11	   GPL	 R/O	  1  SATA Phy Event Counters log
0x24	   GPL	 R/O	  1  Current Device Internal Status Data log
0x80-0x9f  GPL,SL  R/W	 16  Host vendor specific log
0xa0-0xa7  GPL,SL  VS	  16  Device vendor specific log
0xa8-0xb7  GPL,SL  VS	   1  Device vendor specific log
0xbd	   GPL,SL  VS	   1  Device vendor specific log
0xc0	   GPL,SL  VS	   1  Device vendor specific log
0xc1	   GPL	 VS	  93  Device vendor specific log
0xe0	   GPL,SL  R/W	  1  SCT Command/Status
0xe1	   GPL,SL  R/W	  1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (6 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description	Status				  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline	   Completed without error	   00%	 17595		 -
# 2  Short offline	   Completed without error	   00%	 17427		 -
# 3  Short offline	   Completed without error	   00%	 17260		 -
# 4  Short offline	   Completed without error	   00%	 17092		 -
# 5  Extended offline	Completed without error	   00%	 17076		 -
# 6  Extended offline	Completed without error	   00%	 17028		 -
# 7  Short offline	   Completed without error	   00%	 16924		 -
# 8  Short offline	   Completed without error	   00%	 16900		 -
# 9  Short offline	   Completed without error	   00%	 16733		 -
#10  Short offline	   Completed without error	   00%	 16565		 -
#11  Extended offline	Completed without error	   00%	 16501		 -
#12  Short offline	   Completed without error	   00%	 16397		 -
#13  Extended offline	Completed without error	   00%	 16381		 -
#14  Short offline	   Completed without error	   00%	 16229		 -
#15  Short offline	   Completed without error	   00%	 16061		 -
#16  Short offline	   Completed without error	   00%	 15893		 -
#17  Short offline	   Completed without error	   00%	 15726		 -
#18  Extended offline	Completed without error	   00%	 15710		 -

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.

SCT Status Version:				  3
SCT Version (vendor specific):	   258 (0x0102)
SCT Support Level:				   1
Device State:						Active (0)
Current Temperature:					51 Celsius
Power Cycle Min/Max Temperature:	 17/60 Celsius
Lifetime	Min/Max Temperature:	 15/65 Celsius
Under/Over Temperature Limit Count:   0/0
Vendor specific:
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

SCT Temperature History Version:	 2
Temperature Sampling Period:		 1 minute
Temperature Logging Interval:		1 minute
Min/Max recommended Temperature:	  0/60 Celsius
Min/Max Temperature Limit:		   -41/85 Celsius
Temperature History Size (Index):	478 (444)

Index	Estimated Time   Temperature Celsius
445	2016-11-28 14:22	51  ********************************
...	..(476 skipped).	..  ********************************
444	2016-11-28 22:19	51  ********************************

SCT Error Recovery Control:
		   Read:	 70 (7.0 seconds)
		  Write:	 70 (7.0 seconds)

Device Statistics (GP Log 0x04)
Page  Offset Size		Value Flags Description
0x01  =====  =			   =  ===  == General Statistics (rev 2) ==
0x01  0x008  4			  47  ---  Lifetime Power-On Resets
0x01  0x010  4		   17634  ---  Power-on Hours
0x01  0x018  6	186735074152  ---  Logical Sectors Written
0x01  0x020  6	   444009157  ---  Number of Write Commands
0x01  0x028  6	 28030410186  ---  Logical Sectors Read
0x01  0x030  6	   147690918  ---  Number of Read Commands
0x03  =====  =			   =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4		   17319  ---  Spindle Motor Power-on Hours
0x03  0x010  4		   17319  ---  Head Flying Hours
0x03  0x018  4			  47  ---  Head Load Events
0x03  0x020  4			 200  N--  Number of Reallocated Logical Sectors
0x03  0x028  4			9018  ---  Read Recovery Attempts
0x03  0x030  4			   0  ---  Number of Mechanical Start Failures
0x04  =====  =			   =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4			   0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4			   0  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =			   =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1			  51  ---  Current Temperature
0x05  0x010  1			  52  ---  Average Short Term Temperature
0x05  0x018  1			  52  ---  Average Long Term Temperature
0x05  0x020  1			  65  ---  Highest Temperature
0x05  0x028  1			  22  ---  Lowest Temperature
0x05  0x030  1			  61  ---  Highest Average Short Term Temperature
0x05  0x038  1			  41  ---  Lowest Average Short Term Temperature
0x05  0x040  1			  57  ---  Highest Average Long Term Temperature
0x05  0x048  1			  42  ---  Lowest Average Long Term Temperature
0x05  0x050  4			7730  ---  Time in Over-Temperature
0x05  0x058  1			  60  ---  Specified Maximum Operating Temperature
0x05  0x060  4			   0  ---  Time in Under-Temperature
0x05  0x068  1			   0  ---  Specified Minimum Operating Temperature
0x06  =====  =			   =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4			 266  ---  Number of Hardware Resets
0x06  0x010  4			 607  ---  Number of ASR Events
0x06  0x018  4			   0  ---  Number of Interface CRC Errors
								|||_ C monitored condition met
								||__ D supports DSN
								|___ N normalized value

SATA Phy Event Counters (GP Log 0x11)
ID	  Size	 Value  Description
0x0001  2			0  Command failed due to ICRC error
0x0002  2			0  R_ERR response for data FIS
0x0003  2			0  R_ERR response for device-to-host data FIS
0x0004  2			0  R_ERR response for host-to-device data FIS
0x0005  2			0  R_ERR response for non-data FIS
0x0006  2			0  R_ERR response for device-to-host non-data FIS
0x0007  2			0  R_ERR response for host-to-device non-data FIS
0x0008  2			0  Device-to-host non-data FIS retries
0x0009  2			8  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2			9  Device-to-host register FISes sent due to a COMRESET
0x000b  2			0  CRC errors within host-to-device FIS
0x000f  2			0  R_ERR response for host-to-device data FIS, CRC
0x0012  2			0  R_ERR response for host-to-device non-data FIS, CRC
0x8000  4	  2615088  Vendor specific
 
Last edited:

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
At 51C, the drive is too hot. Are the others this hot? If so, you need to fix the airflow in the box.

There are pending reallocations and uncorrectable sectors in double digits.

The multi_zone_error_rate is a bit worrying.

Overall, the drive looks a bit sick, I would plan on replacing it, but don't throw a brand new drive in there without fixing the cooling.

And don't forget to burn in the new drive before you install it.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
That's a surprisingly reasonable maximum temperature. I've seen drives that had it at 75 degrees or thereabouts.

Not that 60 degrees is anywhere close to a good idea, but it's a reasonable "if you cross this, you really messed up and we're not honoring the warranty on this drive" threshold.
 

BlazeStar

Patron
Joined
Apr 6, 2014
Messages
383
Thanks all for the help, I ordered a new case which comes with a lot fans and awesome cooling specs.

I also filled up a ADVANCE RMA request with WD.

However, i have a dumb question:

I assume the correct procedure is :
1) Plug in the new drive
2) Use the "replace" feature in the FreeNAS GUI
3) Remove the culprit
4) SUCCESS

But my question is "hardware oriented": if I plug in the new drive I'm going to obviously use a different cable and connector than the initial one used by the faulty drive.

Once I'm done, can I unplug it, and use the initial cable and connector previously used by the faulty drive for the new drive? Or I shouldn't play around with that after the switch?
 

darkwarrior

Patron
Joined
Mar 29, 2015
Messages
336
Thanks all for the help, I ordered a new case which comes with a lot fans and awesome cooling specs.

I also filled up a ADVANCE RMA request with WD.

However, i have a dumb question:

I assume the correct procedure is :
1) Plug in the new drive
2) Use the "replace" feature in the FreeNAS GUI
3) Remove the culprit
4) SUCCESS

But my question is "hardware oriented": if I plug in the new drive I'm going to obviously use a different cable and connector than the initial one used by the faulty drive.

Once I'm done, can I unplug it, and use the initial cable and connector previously used by the faulty drive for the new drive? Or I shouldn't play around with that after the switch?

Hi,
You should add another step into your action plan:
0. Check the new case and the temperatures
1) Plug in the new drive
2. Burn-in the drive/s using the ressources available in the forum (=> sticky)
2) Use the "replace" feature in the FreeNAS GUI
3) Remove the culprit
4) SUCCESS
5. Profit :cool:

Concerning your other question:
ZFS bases itself on metadata to assign disks to pools, so you can move them around (or even change controller) and the disk will be recognized and used in the correct volume ;)
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
I also filled up a ADVANCE RMA request with WD.
Please let the forum know whether they give you a refund, given that the disk was run above its specified maximum temperature for more than 5 days (assuming the count is in minutes).
 

BlazeStar

Patron
Joined
Apr 6, 2014
Messages
383
2. Burn-in the drive/s using the ressources available in the forum (=> sticky)

So I found this:
https://forums.freenas.org/index.php?threads/building-burn-in-and-testing-your-freenas-system.17750/

If I understand correctly, the "burn-in" you're referring to is about stressing the drive and analyzing results, right?

Also, I love point 5. of your list.

ZFS bases itself on metadata to assign disks to pools, so you can move them around (or even change controller) and the disk will be recognized and used in the correct volume ;)

Awsome, thanks!


Not sure about this though... unless there's something I don't understand, the documentation is saying to OFFLINE the failing drive before replacing it?

I really thought I needed to let the resilver complete and THEN offline the disk, and then take it out.
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
Not sure about this though... unless there's something I don't understand, the documentation is saying to OFFLINE the failing drive before replacing it?

I really thought I needed to let the resilver complete and THEN offline the disk, and then take it out.
You are correct. The directions cover the situation when you have no spare drive ports. If you have a spare port, you can use the more robust approach of resilvering with the old drive in place. It's covered in the directions for replacing drives to grow a pool, but someone really should put in a bug/feature request to have the other directions modified too ;)
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

BlazeStar

Patron
Joined
Apr 6, 2014
Messages
383
Thanks all for the help, much appreciated!

I will report back once I reach conclusion with Western Digital and see if they will replace the drive with no cost.

But since I've used ADVANCE RMA it might take a while (then send me a new drive, then I make replacement, then I send them back the faulty drive... so processing could take at least a few weeks, more likely around 2 months).
 

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
Status
Not open for further replies.
Top