Restarts when trying to write to it

Status
Not open for further replies.

TerryVog

Explorer
Joined
Dec 5, 2015
Messages
55
Lately I have problems when I upload files to my FreeNAS server. I use it for my TimeMachine backups and as a Plex server. TimeMachine tries to copy files to it regularly. Sometimes it works, sometimes it doesn't. Not very repeatable.

The problem with Plex is similar, but easier to reproduce. As soon as I copy a new movie file to it, it starts to copy 100 or 200 MB to it, but then the connection gets lost and a few seconds later the FreeNAS machine reboots.

A few days ago I had an error:
CAM status: ATA Status Error
ATA status: 51 (DRDY SERV ERR), error: 40 (UNC )

I saw on a forum that it was wise to run a test:
smartctl -t long ada0
to figure out which disk was damaged so I could replace it. After running the test, the error is gone. The Alert button is green, the checksums of all my disks is 0, no apparent problem whatsoever. Except that it panics and restarts when I copy a file to it.

What is going on here? How do I troubleshoot this?

I am running FreeNAS-9.3-STABLE-201512121950 on an Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz with 7842MB RAM.
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
How do you have your pool setup? Did you run the smartctl long test on each of your drives?

Per the forum rules, please post full hardware specs including motherboard.
 
Last edited:

TerryVog

Explorer
Joined
Dec 5, 2015
Messages
55
I hope I understand you right, but I am not sure. I have 4 drives; 3TB each. They are mirrored, so the total capacity is 6TB.

Mirror-1: ada2p2 & ada1p2
Mirror-0: ada3p2 & ada0p2

I don't know if I did each drive. I did smartctl -t long ada0. Does that only do 1? It took almost 7 hours to finish.
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
You have to run the smart test on each drive by running "smartctl -t long /dev/adaX" where X coresponds to drives 0-3 in your system. 7 hours sounds about right for a long test on 3 GB drives. Before you do the long tests, post the output of "smartctl -a /dev/adaX" in code tags.
 

TerryVog

Explorer
Joined
Dec 5, 2015
Messages
55
The output doesn't fit in the largest shell window and I don't know how to see the topmost part of the output. So here are the bottom parts for each disk.

smartctl -a /dev/ada0:

Code:
recommended polling time:        (   2) minutes.                                                                                  
Extended self-test routine                                                                                                        
recommended polling time:        ( 408) 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   193   193   051    Pre-fail  Always       -       18638                                      
  3 Spin_Up_Time            0x0027   188   179   021    Pre-fail  Always       -       5558                                       
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       41                                         
  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   095   095   000    Old_age   Always       -       3964                                       
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       -       41                                         
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39                                         
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       66                                         
194 Temperature_Celsius     0x0022   119   112   000    Old_age   Always       -       31                                         
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   100   253   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  Extended offline    Interrupted (host reset)      10%      3899         -                                                    
                                                                                                                                  
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.

smartctl -a /dev/ada1:

Code:
recommended polling time:        ( 376) minutes.                                                                                  
Conveyance self-test routine                                                                                                      
recommended polling time:        (   2) minutes.                                                                                  
SCT capabilities:              (0x10bd) SCT Status supported.                                                                     
                                        SCT Error Recovery Control supported.                                                     
                                        SCT Feature Control supported.                                                            
                                        SCT Data Table supported.                                                                 
                                                                                                                                  
SMART Attributes Data Structure revision number: 10                                                                               
Vendor Specific SMART Attributes with Thresholds:                                                                                 
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE                                  
  1 Raw_Read_Error_Rate     0x000f   113   100   006    Pre-fail  Always       -       51844072                                   
  3 Spin_Up_Time            0x0003   094   094   000    Pre-fail  Always       -       0                                          
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       14                                         
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0                                          
  7 Seek_Error_Rate         0x000f   067   060   030    Pre-fail  Always       -       5885017                                    
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       959                                        
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0                                          
12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       14                                         
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0                                          
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0                                          
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0                                          
189 High_Fly_Writes         0x003a   099   099   000    Old_age   Always       -       1                                          
190 Airflow_Temperature_Cel 0x0022   063   059   045    Old_age   Always       -       37 (Min/Max 35/37)                         
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0                                          
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       13                                         
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       52                                         
194 Temperature_Celsius     0x0022   037   041   000    Old_age   Always       -       37 (0 22 0 0 0)                            
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0                                          
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0                                          
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0                                          
                                                                                                                                  
SMART Error Log Version: 1                                                                                                        
No Errors Logged                                                                                                                  
                                                                                                                                  
SMART Self-test log structure revision number 1                                                                                   
No self-tests have been logged.  [To run self-tests, use: smartctl -t]                                                            
                                                                                                                                  
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.

smartctl -a /dev/ada2:

Code:
recommended polling time:        ( 383) minutes.                                                                                  
Conveyance self-test routine                                                                                                      
recommended polling time:        (   2) minutes.                                                                                  
SCT capabilities:              (0x10bd) SCT Status supported.                                                                     
                                        SCT Error Recovery Control supported.                                                     
                                        SCT Feature Control supported.                                                            
                                        SCT Data Table supported.                                                                 
                                                                                                                                  
SMART Attributes Data Structure revision number: 10                                                                               
Vendor Specific SMART Attributes with Thresholds:                                                                                 
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE                                  
  1 Raw_Read_Error_Rate     0x000f   109   099   006    Pre-fail  Always       -       23380200                                   
  3 Spin_Up_Time            0x0003   094   094   000    Pre-fail  Always       -       0                                          
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       14                                         
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0                                          
  7 Seek_Error_Rate         0x000f   068   060   030    Pre-fail  Always       -       6318782                                    
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       959                                        
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0                                          
12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       14                                         
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0                                          
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0                                          
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       4295032833                                 
189 High_Fly_Writes         0x003a   095   095   000    Old_age   Always       -       5                                          
190 Airflow_Temperature_Cel 0x0022   062   057   045    Old_age   Always       -       38 (Min/Max 37/39)                         
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0                                          
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       13                                         
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       51                                         
194 Temperature_Celsius     0x0022   038   043   000    Old_age   Always       -       38 (0 22 0 0 0)                            
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0                                          
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0                                          
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0                                          
                                                                                                                                  
SMART Error Log Version: 1                                                                                                        
No Errors Logged                                                                                                                  
                                                                                                                                  
SMART Self-test log structure revision number 1                                                                                   
No self-tests have been logged.  [To run self-tests, use: smartctl -t]                                                            
                                                                                                                                  
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. 

smartctl -a /dev/ada3:

Code:
Short self-test routine                                                                                                           
recommended polling time:        (   2) minutes.                                                                                  
Extended self-test routine                                                                                                        
recommended polling time:        ( 412) 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   192   181   021    Pre-fail  Always       -       5391                                       
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       41                                         
  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   095   095   000    Old_age   Always       -       3964                                       
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       -       41                                         
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39                                         
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       71                                         
194 Temperature_Celsius     0x0022   114   110   000    Old_age   Always       -       36                                         
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   100   253   000    Old_age   Offline      -       0                                          
                                                                                                                                  
SMART Error Log Version: 1                                                                                                        
No Errors Logged                                                                                                                  
                                                                                                                                  
SMART Self-test log structure revision number 1                                                                                   
No self-tests have been logged.  [To run self-tests, use: smartctl -t]                                                            
                                                                                                                                  
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.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
You have a Mac, yes?

Use terminal and SSH into your freenas to run commands. The GUI console is crap. Stop using it.
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
Only ada0 has had any smart test run on it (long test) and it failed to complete. Run "smartctl -t short /dev/adaX" on all the drives. The short test should only take 2-3 minutes to complete. After the tests complete, repost the output in your previous post.
 

TerryVog

Explorer
Joined
Dec 5, 2015
Messages
55
You have a Mac, yes?

Use terminal and SSH into your freenas to run commands. The GUI console is crap. Stop using it.
I do have a Mac and I agree that the GUI console has it's problems. I tried "ssh root@192.168.0.53" but it says "Connection refused". I don't know how this should work, so for now I am condemned to use the GUI.

I will run the short smartctl tests first and repost the outputs soon.
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
Also, what motherboard are you using and how do you have your drives connected (i.e. directly to motherboard, HBA, raid card)?
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
If you are stuck with the console please run smartctl -i on each of the drives and post the output. This will be the information that has been cut off of -a output you are getting in the console.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
I do have a Mac and I agree that the GUI console has it's problems. I tried "ssh root@192.168.0.53" but it says "Connection refused". I don't know how this should work, so for now I am condemned to use the GUI.

I will run the short smartctl tests first and repost the outputs soon.
Enable ssh in the services section of freenas as covered in the documentation
 

TerryVog

Explorer
Joined
Dec 5, 2015
Messages
55
Here is the output of smartctl -i for all 4 drives after running smartctl -t short for each:
Code:
[root@freenas ~]# smartctl -i /dev/ada0                                         
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p28 amd64] (local build)                                                         
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org                                                         
                                                                                                                                    
=== START OF INFORMATION SECTION ===                                                                                                
Model Family:     Western Digital Red                                                                                               
Device Model:     WDC WD30EFRX-68EUZN0                                                                                              
Serial Number:    WD-WCC4NEY94EFT                                                                                                   
LU WWN Device Id: 5 0014ee 260038770                                                                                                
Firmware Version: 82.00A82                                                                                                          
User Capacity:    3,000,592,982,016 bytes [3.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:    Thu Jan 14 21:41:38 2016 PST                                                                                      
SMART support is: Available - device has SMART capability.                                                                          
SMART support is: Enabled                                                                                                           

[root@freenas ~]# smartctl -i /dev/ada1                                         
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p28 amd64] (local build)     
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org     
                                                                                
=== START OF INFORMATION SECTION ===                                            
Model Family:     Seagate NAS HDD                                               
Device Model:     ST3000VN000-1HJ166                                            
Serial Number:    W6A0V1SH                                                      
LU WWN Device Id: 5 000c50 08b8b8c46                                            
Firmware Version: SC60                                                          
User Capacity:    3,000,592,982,016 bytes [3.00 TB]                             
Sector Sizes:     512 bytes logical, 4096 bytes physical                        
Rotation Rate:    5900 rpm                                                      
Form Factor:      3.5 inches                                                    
Device is:        In smartctl database [for details use: -P show]               
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b                           
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)                        
Local Time is:    Thu Jan 14 21:47:45 2016 PST                                  
SMART support is: Available - device has SMART capability.                      
SMART support is: Enabled                                                       
                                                                                
[root@freenas ~]# smartctl -i /dev/ada2                                                                                             
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p28 amd64] (local build)                                                         
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org                                                         
                                                                                                                                    
=== START OF INFORMATION SECTION ===                                                                                                
Model Family:     Seagate NAS HDD                                                                                                   
Device Model:     ST3000VN000-1HJ166                                                                                                
Serial Number:    W6A0V22F                                                                                                          
LU WWN Device Id: 5 000c50 08b8b6833                                                                                                
Firmware Version: SC60                                                                                                              
User Capacity:    3,000,592,982,016 bytes [3.00 TB]                                                                                 
Sector Sizes:     512 bytes logical, 4096 bytes physical                                                                            
Rotation Rate:    5900 rpm                                                                                                          
Form Factor:      3.5 inches                                                                                                        
Device is:        In smartctl database [for details use: -P show]                                                                   
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b                                                                               
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)                                                                            
Local Time is:    Thu Jan 14 21:55:19 2016 PST                                                                                      
SMART support is: Available - device has SMART capability.                                                                          
SMART support is: Enabled                                                                                                           
                                                                                                                                    
[root@freenas ~]# smartctl -i /dev/ada3                                                                                             
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p28 amd64] (local build)                                                         
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org                                                         
                                                                                                                                    
=== START OF INFORMATION SECTION ===                                                                                                
Model Family:     Western Digital Red                                                                                               
Device Model:     WDC WD30EFRX-68EUZN0                                                                                              
Serial Number:    WD-WCC4NEKJ1J4T                                                                                                   
LU WWN Device Id: 5 0014ee 20aaf0e1b                                                                                                
Firmware Version: 82.00A82                                                                                                          
User Capacity:    3,000,592,982,016 bytes [3.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:    Thu Jan 14 21:59:34 2016 PST                                                                                      
SMART support is: Available - device has SMART capability.                                                                          
SMART support is: Enabled
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
The -i was needed because the console cut that info off of the output of -a. Post the -a output again. The results of the short tests you just ran will be shown to the bottom of the -a output.
 

TerryVog

Explorer
Joined
Dec 5, 2015
Messages
55
Ah. Okay, sorry and thank you for being patient with me.

The output doesn't fit in the largest shell window and I don't know how to see the topmost part of the output. So here are the bottom parts for each disk.

smartctl -a /dev/ada0:

Code:
Extended self-test routine                                                                                                          
recommended polling time:        ( 408) 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   193   193   051    Pre-fail  Always       -       18638                                        
  3 Spin_Up_Time            0x0027   188   179   021    Pre-fail  Always       -       5558                                         
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       41                                           
  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   095   095   000    Old_age   Always       -       3966                                         
 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       -       41                                           
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39                                           
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       66                                           
194 Temperature_Celsius     0x0022   119   112   000    Old_age   Always       -       31                                           
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   100   253   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%      3964         -                                                      
# 2  Extended offline    Interrupted (host reset)      10%      3899         -                                                      
                                                                                                                                    
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.

smartctl -a /dev/ada1:

Code:
Conveyance self-test routine                                                                                                        
recommended polling time:        (   2) minutes.                                                                                    
SCT capabilities:              (0x10bd) SCT Status supported.                                                                       
                                        SCT Error Recovery Control supported.                                                       
                                        SCT Feature Control supported.                                                              
                                        SCT Data Table supported.                                                                   
                                                                                                                                    
SMART Attributes Data Structure revision number: 10                                                                                 
Vendor Specific SMART Attributes with Thresholds:                                                                                   
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE                                    
  1 Raw_Read_Error_Rate     0x000f   113   100   006    Pre-fail  Always       -       53498896                                     
  3 Spin_Up_Time            0x0003   094   094   000    Pre-fail  Always       -       0                                            
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       14                                           
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0                                            
  7 Seek_Error_Rate         0x000f   067   060   030    Pre-fail  Always       -       5895178                                      
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       961                                          
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0                                            
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       14                                           
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0                                            
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0                                            
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0                                            
189 High_Fly_Writes         0x003a   099   099   000    Old_age   Always       -       1                                            
190 Airflow_Temperature_Cel 0x0022   063   059   045    Old_age   Always       -       37 (Min/Max 35/37)                           
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0                                            
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       13                                           
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       52                                           
194 Temperature_Celsius     0x0022   037   041   000    Old_age   Always       -       37 (0 22 0 0 0)                              
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0                                            
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0                                            
199 UDMA_CRC_Error_Count    0x003e   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%       960         -                                                      
                                                                                                                                    
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.  

smartctl -a /dev/ada2:

Code:
Conveyance self-test routine                                                                                                        
recommended polling time:        (   2) minutes.                                                                                    
SCT capabilities:              (0x10bd) SCT Status supported.                                                                       
                                        SCT Error Recovery Control supported.                                                       
                                        SCT Feature Control supported.                                                              
                                        SCT Data Table supported.                                                                   
                                                                                                                                    
SMART Attributes Data Structure revision number: 10                                                                                 
Vendor Specific SMART Attributes with Thresholds:                                                                                   
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE                                    
  1 Raw_Read_Error_Rate     0x000f   109   099   006    Pre-fail  Always       -       25119248                                     
  3 Spin_Up_Time            0x0003   094   094   000    Pre-fail  Always       -       0                                            
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       14                                           
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0                                            
  7 Seek_Error_Rate         0x000f   068   060   030    Pre-fail  Always       -       6330094                                      
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       961                                          
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0                                            
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       14                                           
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0                                            
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0                                            
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       4295032833                                   
189 High_Fly_Writes         0x003a   095   095   000    Old_age   Always       -       5                                            
190 Airflow_Temperature_Cel 0x0022   061   057   045    Old_age   Always       -       39 (Min/Max 37/39)                           
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0                                            
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       13                                           
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       51                                           
194 Temperature_Celsius     0x0022   039   043   000    Old_age   Always       -       39 (0 22 0 0 0)                              
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0                                            
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0                                            
199 UDMA_CRC_Error_Count    0x003e   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%       960         -                                                      
                                                                                                                                    
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.

smartctl -a /dev/ada3:

Code:
recommended polling time:        (   2) minutes.                                                                                    
Extended self-test routine                                                                                                          
recommended polling time:        ( 412) 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   192   181   021    Pre-fail  Always       -       5391                                         
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       41                                           
  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   095   095   000    Old_age   Always       -       3966                                         
 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       -       41                                           
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39                                           
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       71                                           
194 Temperature_Celsius     0x0022   114   110   000    Old_age   Always       -       36                                           
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   100   253   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%      3966         -                                                      
                                                                                                                                    
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.    
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
Does your problem occur only when writing to mirror-0; only to mirror -1; or to both?

It looks like ada0 is failing. It's showing a high raw read error rate. Your ada0 & 3 are WD Red drives, with which I am familiar. Ada3 looks o.k. I won't comment on the Seagate drives (ada1&2) other than to say they passed the short test because the seagates report their smart data in a different numerical format than the WDs. You can search the forums and you should be able to find more information on that.

ada0 has less than a 1000 hours on it, so it should still be under warranty. Run a smartctl -t conveyance test (5-10 minutes) and another long test on ada0 and repost the output of smartctl -a.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
The output doesn't fit in the largest shell window and I don't know how to see the topmost part of the output.
Best answer: Do what @pirateghost suggested and turn on SSH on the Services screen on FreeNAS. Then SSH in from your Mac, and you'll have scrollback in the terminal. This is something you really need to get working if you're going to be doing anything at the CLI.
Less good, but will work: Add | more to the end of the command: "smartctl -a /dev/ada0 | more". This will stop the output every page and wait for you to hit the space bar.

Edit: You could also post a debug file, which should have all this information. Go to System -> Advanced -> Save Debug in the web GUI.

Edit 2: You really should set up regular SMART tests--short every 1-7 days; long every 1-4 weeks. Make sure the SMART service is configured with your email address to report errors--it's a separate configuration from other email notification.
 

TerryVog

Explorer
Joined
Dec 5, 2015
Messages
55
Sure enough it now shows an error:
Code:
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p28 amd64] (local build)                                                        
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org                                                        
                                                                                                                                   
=== START OF INFORMATION SECTION ===                                                                                               
Model Family:     Western Digital Red                                                                                              
Device Model:     WDC WD30EFRX-68EUZN0                                                                                             
Serial Number:    WD-WCC4NEY94EFT                                                                                                  
LU WWN Device Id: 5 0014ee 260038770                                                                                               
Firmware Version: 82.00A82                                                                                                         
User Capacity:    3,000,592,982,016 bytes [3.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:    Fri Jan 15 07:42:46 2016 PST                                                                                     
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:      ( 113) The previous self-test completed having                                                    
                                        the read element of the test failed.                                                       
Total time to complete Offline                                                                                                     
data collection:                (40680) 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:        ( 408) 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   193   193   051    Pre-fail  Always       -       18638                                       
  3 Spin_Up_Time            0x0027   188   179   021    Pre-fail  Always       -       5558                                        
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       41                                          
  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   095   095   000    Old_age   Always       -       3975                                        
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       -       41                                          
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       39                                          
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       66                                          
194 Temperature_Celsius     0x0022   118   112   000    Old_age   Always       -       32                                          
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   185   185   000    Old_age   Offline      -       6240                                        
                                                                                                                                   
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       10%      3972         3569139312                                            
# 2  Conveyance offline  Completed without error       00%      3967         -                                                     
# 3  Short offline       Completed without error       00%      3964         -                                                     
# 4  Extended offline    Interrupted (host reset)      10%      3899         -                                                     
                                                                                                                                   
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.
What should I do?
 

Attachments

  • debug-freenas-20160115070259..tar.zip
    390 KB · Views: 260

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Looking through the debug file contents, I see that a crash on 10 Jan was apparently caused by a non-responsive drive, which I think is ada0:
Code:
I/O to pool 'TM' appears to be hung on vdev guid 1723728113578766580 at '/dev/gptid/f3ca651f-3c00-11e5-b5da-60a44caefdbd'.


Your drives are running a little warm. ada2 (one of the Seagates) is at 40 deg C, and has seen 48 during its life. For best life, consider 40 C a maximum drive temperature. The rest of the drives are at 37-38.

You have a Realtek NIC. Those are well-known to be garbage, but I don't know how likely it is that this would lead to your machine panicking.
 

jde

Explorer
Joined
Aug 1, 2015
Messages
93
Follow the directions in the freenas documentation on the process for removing and replace the failed drive. http://doc.freenas.org/9.3/freenas_storage.html#replacing-a-failed-drive

Also, it's apparent you don't have automatic smart tests set up in the Tasks menu. You need to set these up and configure email notifications. http://doc.freenas.org/9.3/freenas_tasks.html#s-m-a-r-t-tests

See this thread for a sane schedule for automatic smart tests. https://forums.freenas.org/index.php?threads/scrub-and-smart-testing-schedules.20108/
 
Status
Not open for further replies.
Top