Possible Failing Drive Help

Status
Not open for further replies.

jbrown705

Explorer
Joined
Sep 10, 2018
Messages
62
Hi all, I'm still learning FreeNAS and this alert I got this morning after a reboot has be a bit concerned. I'm not sure if its a SMART hdd alert. I have setup SMART scans (2 shorts a week and a long every other week). I don't get any reports or emails after a scan runs, so i'm not sure if its working. I tried to follow some CL instructions here to read it, but I was getting an error about specifying 2 drives, but couldn't figure out what it wanted. Here is the email I got:

Code:
New alerts:
* Device: /dev/da0 [SAT], 1 Currently unreadable (pending) sectors
* Device: /dev/da0 [SAT], 1 Offline uncorrectable sectors

Alerts:
* Device: /dev/da0 [SAT], 1 Currently unreadable (pending) sectors
* Device: /dev/da0 [SAT], 1 Offline uncorrectable sectors


I'm in a bit of a panic because I am backing my stuff up to the cloud currently and trying to figure out how to attached 2 external drives to also make a local backup, but none have completed yet.

Can anyone please help me figure this out?

Thanks!
-Jason
 

danb35

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

jbrown705

Explorer
Joined
Sep 10, 2018
Messages
62
Well, what does this:

sound like it means?


I'm not sure since this is the first time I have encountered it. I have tried to look this up and some threads and posts I read say that these things can happen because of other reasons and there are no real issues, some say it is a result of unstable FreeNAS builds, and other says its starting to fail but isn't there yet. The drives are only about 2 months old.

I believe I have pulled up the results of a smart test on that drive in question. I don't see anything that indicates there is an error, but I am not sure what I am looking for nor that I actually pulled it correctly.

Code:
root@freenas[~]# smartctl -a /dev/ada0

smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.2-STABLE amd64] (local build)

Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org


=== START OF INFORMATION SECTION ===

Device Model:	 WDC WD80EMAZ-00WJTA0

LU WWN Device Id: 5 000cca 26cc790f9

Firmware Version: 83.H0A83

User Capacity:	8,001,563,222,016 bytes [8.00 TB]

Sector Sizes:	 512 bytes logical, 4096 bytes physical

Rotation Rate:	5400 rpm

Form Factor:	  3.5 inches

Device is:		Not in smartctl database [for details use: -P showall]

ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4

SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s)

Local Time is:	Sun Nov  4 01:07:26 2018 EDT

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:  (0x84)	Offline data collection activity

					was suspended by an interrupting command from host.

					Auto Offline Data Collection: Enabled.

Self-test execution status:	  ( 246)	Self-test routine in progress...

					60% of test remaining.

Total time to complete Offline

data collection:		 (   93) seconds.

Offline data collection

capabilities:			 (0x5b) SMART execute Offline immediate.

					Auto Offline data collection on/off support.

					Suspend Offline collection upon new

					command.

					Offline surface scan supported.

					Self-test supported.

					No 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:	 ( 943) minutes.

SCT capabilities:		   (0x003d)	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	 0x000b   100   100   016	Pre-fail  Always	   -	   0

  2 Throughput_Performance  0x0004   129   129   054	Old_age   Offline	  -	   112

  3 Spin_Up_Time			0x0007   172   172   024	Pre-fail  Always	   -	   438 (Average 325)

  4 Start_Stop_Count		0x0012   100   100   000	Old_age   Always	   -	   31

  5 Reallocated_Sector_Ct   0x0033   100   100   005	Pre-fail  Always	   -	   0

  7 Seek_Error_Rate		 0x000a   100   100   067	Old_age   Always	   -	   0

  8 Seek_Time_Performance   0x0004   128   128   020	Old_age   Offline	  -	   18

  9 Power_On_Hours		  0x0012   100   100   000	Old_age   Always	   -	   1971

 10 Spin_Retry_Count		0x0012   100   100   060	Old_age   Always	   -	   0

 12 Power_Cycle_Count	   0x0032   100   100   000	Old_age   Always	   -	   31

 22 Unknown_Attribute	   0x0023   100   100   025	Pre-fail  Always	   -	   100

192 Power-Off_Retract_Count 0x0032   100   100   000	Old_age   Always	   -	   97

193 Load_Cycle_Count		0x0012   100   100   000	Old_age   Always	   -	   97

194 Temperature_Celsius	 0x0002   185   185   000	Old_age   Always	   -	   35 (Min/Max 22/39)

196 Reallocated_Event_Count 0x0032   100   100   000	Old_age   Always	   -	   0

197 Current_Pending_Sector  0x0022   100   100   000	Old_age   Always	   -	   0

198 Offline_Uncorrectable   0x0008   100   100   000	Old_age   Offline	  -	   0

199 UDMA_CRC_Error_Count	0x000a   200   200   000	Old_age   Always	   -	   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%	  1967		 -

# 2  Short offline	   Completed without error	   00%	  1926		 -

# 3  Short offline	   Completed without error	   00%	  1830		 -

# 4  Short offline	   Completed without error	   00%	  1710		 -

# 5  Short offline	   Completed without error	   00%	  1614		 -

# 6  Extended offline	Interrupted (host reset)	  40%	  1594		 -

# 7  Short offline	   Completed without error	   00%	  1516		 -

# 8  Short offline	   Completed without error	   00%	  1420		 -

# 9  Short offline	   Completed without error	   00%	  1300		 -


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.
 

CraigD

Patron
Joined
Mar 8, 2016
Messages
343
Have you ever completed a long SMART test (I see one was run but it didn't complete)

It looks like you have a SMART Test running?

I would stop the test currently running and I would run a long test... It will take 16-20 hours

Then re-post the SMART data

Have Fun
PS We can't help much if you don't tell us your system specs and drive layout(zpool status)
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Well, the message says there's a bad sector, which is a bad thing. Around here, people's tolerance for those varies; some will immediately replace the disk for a single bad sector, some will carefully monitor, some just don't care. I'm in the second group--I won't immediately replace a disk for a single bad sector, or even a few (i.e., in the single digits), if the number is stable. If it's more than single digits, the disk is gone. If the number is growing, the disk is gone. If it's failing SMART tests, the disk is gone. As @CraigD said, you should run a long SMART test and let it finish. If that completes successfully, and the bad sector count doesn't increase, I'd just keep an eye on the disk.

But it looks like you don't have SMART tests scheduled (your disk is showing a few of them, but not very many, and not at regular intervals), which you should. Both short and long tests should run regularly--I run short daily and long weekly; some go as long as a short weekly and long monthly. Anywhere in that range is OK.
 

jbrown705

Explorer
Joined
Sep 10, 2018
Messages
62
But it looks like you don't have SMART tests scheduled (your disk is showing a few of them, but not very many, and not at regular intervals), which you should. Both short and long tests should run regularly--I run short daily and long weekly; some go as long as a short weekly and long monthly. Anywhere in that range is OK.

I thought I did have them setup, but there is apparently a bug with SMART tests with the new UI. It seems that you have to set them up in the legacy or in the in the new ui, then go into the legacy ui and open and resave them. Here is a screenshot of what I have had set up for a couple weeks, but I never got an email or any type of report so I wasn't sure if it was actually doing anything. Does this look ok? Should I be getting emailed report that it did the scans with reports of what found?

upload_2018-11-4_8-2-54.png


@CraigD
I have tried to look up how to manually run a smart test (which may be why this shows one running) and found this command to run to run from the CL:

smartctl -t long -a /dev/ada0. (with last part being drive#)

I have also tried using this resource, but the commands it shows weren't working and giving me the error message about 2 drives specified.

https://forums.freenas.org/index.ph...bleshooting-guide-all-versions-of-freenas.17/

Would it be too much trouble to ask either of you to list out the steps I need to do to stop the test, rerun it correctly, and view the results?

Thanks for being willing to help, its much appreciated!
 

danb35

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

CraigD

Patron
Joined
Mar 8, 2016
Messages
343
I'm still on 11.1 U2 so no idea on the GUI

I just reread your post da0 and ada0 are completely different drives!

Show us:
Code:
root@freenas[~]# smartctl -a /dev/da0


Have Fun
 

jbrown705

Explorer
Joined
Sep 10, 2018
Messages
62
I'm still on 11.1 U2 so no idea on the GUI

I just reread your post da0 and ada0 are completely different drives!

Show us:
Code:
root@freenas[~]# smartctl -a /dev/da0


Have Fun

OMG Thank you! I just realized that this is an external WD MyBook that I was using as my old "server" attached to my mac mini before I built this NAS. Thank god! If that goes its not a big deal. That was supposed to be my physical backup to keep here. I have another one and can look for some others on sale. I am trying to follow the rule of redundancy, physical, and cloud as a best practice.

I'll run a long test on that one anyway and post to see if it really is failing and at least then with your help will know what to look for and do should when my main drives fail.

Thank you so much for catching that, I have been in a panic all day!

-Jason
 

jbrown705

Explorer
Joined
Sep 10, 2018
Messages
62
I'm still on 11.1 U2 so no idea on the GUI

I just reread your post da0 and ada0 are completely different drives!

Show us:
Code:
root@freenas[~]# smartctl -a /dev/da0


Have Fun


Ok, I ran the long test on the external drive and here is the results:

Code:
=== START OF INFORMATION SECTION ===
Model Family:	 Western Digital Blue
Device Model:	 WDC WD40EZRZ-00WN9B0
LU WWN Device Id: 5 0014ee 261d42bfe
Firmware Version: 80.00A80
User Capacity:	4,000,753,476,096 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: 3.0 Gb/s)
Local Time is:	Mon Nov  5 10:38:52 2018 EST
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:  (0x82) Offline data collection activity
										was completed without error.
										Auto Offline Data Collection: Enabled.
Self-test execution status:	  ( 121) The previous self-test completed having
										the read element of the test failed.
Total time to complete Offline
data collection:				(54300) 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:		( 543) minutes.
Conveyance self-test routine
recommended polling time:		(   5) minutes.
SCT capabilities:			  (0x7035) SCT Status 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	   -	   440
  3 Spin_Up_Time			0x0027   185   171   021	Pre-fail  Always	   -	   7725
  4 Start_Stop_Count		0x0032   093   093   000	Old_age   Always	   -	   7320
  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   091   091   000	Old_age   Always	   -	   6770
 10 Spin_Retry_Count		0x0032   100   100   000	Old_age   Always	   -	   0
 11 Calibration_Retry_Count 0x0032   100   100   000	Old_age   Always	   -	   0
 12 Power_Cycle_Count	   0x0032   093   093   000	Old_age   Always	   -	   7320
192 Power-Off_Retract_Count 0x0032   194   194   000	Old_age   Always	   -	   4595
193 Load_Cycle_Count		0x0032   001   001   000	Old_age   Always	   -	   701226
194 Temperature_Celsius	 0x0022   113   104   000	Old_age   Always	   -	   39
196 Reallocated_Event_Count 0x0032   200   200   000	Old_age   Always	   -	   0
197 Current_Pending_Sector  0x0032   200   200   000	Old_age   Always	   -	   1
198 Offline_Uncorrectable   0x0030   200   200   000	Old_age   Offline	  -	   1
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	  -	   2

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  Extended offline	Completed: read failure	   90%	  6756		 1357673952

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.


"Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed: read failure 90% 6756 1357673952"

This looks like it is an error, but I am not sure how to interpret what that means?

Thanks!
 
Joined
May 10, 2017
Messages
838
It means the disk is failing and it should be replaced, SMART was already showing warnings with non zero values for Read_Raw_Error_Rate and Multi_Zone_Error_Rate attributes.
 

jbrown705

Explorer
Joined
Sep 10, 2018
Messages
62
It means the disk is failing and it should be replaced, SMART was already showing warnings with non zero values for Read_Raw_Error_Rate and Multi_Zone_Error_Rate attributes.

So should all those values under the RAW_VALUE always be 0's for each line item? I'm not sure how to read the report. Why are the 2 you referenced indicating a dying drive?
 

CraigD

Patron
Joined
Mar 8, 2016
Messages
343
197 and 198

It also errored in the long test

Also use a hotswap bay, never use an external drive

Have Fun
 
Joined
May 10, 2017
Messages
838
So should all those values under the RAW_VALUE always be 0's for each line item?

No, just some, a lot of values can't be zero, like power on hours, temperature, etc, others it doesn't matter, if you google SMART attributes you'll get some info on the most important to monitor.
 

jbrown705

Explorer
Joined
Sep 10, 2018
Messages
62
197 and 198

It also errored in the long test

Also use a hotswap bay, never use an external drive

Have Fun

I’m not sure what you mean. You mean for a back up drive? I had some external drives that is why I was going to use it.
 
Status
Not open for further replies.
Top