smartd is not running

Status
Not open for further replies.

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
But the really irritating thing is that I have the same hardware configuration running FreeNAS 8.3.0 with a working smartd! Same Dell PowerEdge1850 (we got several of these very cheap) and two 2 TB usb-disks plus a boot disk exactly the same as for the FreeNAS 11 system.
On the 8.3.0 system the /usr/local/etc/smartd.conf looks like:
Code:
################################################
# smartd.conf generated by /etc/rc.d/ix-smartd
################################################
/dev/da0 -n never -W 0,0,0
/dev/da1 -n never -W 0,0,0
/dev/da2 -n never -W 0,0,0

So here all three disks are included.
The command smartctl -a /dev/da1 gives:
Code:
smartctl 5.43 2012-06-30 r3573 [FreeBSD 8.3-RELEASE-p5 amd64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:  WDC WD20EZRX-00DC0B0
Serial Number:  WD-WMC1T0802510
LU WWN Device Id: 5 0014ee 0ae1b360f
Firmware Version: 80.00A80
User Capacity:  2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:  512 bytes logical, 4096 bytes physical
Device is:  Not in smartctl database [for details use: -P showall]
ATA Version is:  8
ATA Standard is:  ACS-2 (revision not indicated)
Local Time is:  Wed Aug  2 16:30:48 2017 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

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

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
  was completed without error.
  Auto Offline Data Collection: Enabled.
Self-test execution status:  (  0) The previous self-test routine completed
  without error or no self-test has ever
  been run.
Total time to complete Offline
data collection:  (25980) 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:  ( 263) minutes.
Conveyance self-test routine
recommended polling time:  (  5) minutes.
SCT capabilities:  (0x70b5) 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  -  0
  3 Spin_Up_Time  0x0027  180  177  021  Pre-fail  Always  -  5991
  4 Start_Stop_Count  0x0032  068  068  000  Old_age  Always  -  32319
  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  056  056  000  Old_age  Always  -  32681
10 Spin_Retry_Count  0x0032  100  100  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  -  28
192 Power-Off_Retract_Count 0x0032  200  200  000  Old_age  Always  -  14
193 Load_Cycle_Count  0x0032  165  165  000  Old_age  Always  -  106871
194 Temperature_Celsius  0x0022  114  108  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  200  200  000  Old_age  Offline  -  0
199 UDMA_CRC_Error_Count  0x0032  200  200  000  Old_age  Always  -  0
200 Multi_Zone_Error_Rate  0x0008  200  200  000  Old_age  Offline  -  0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
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.


The difference is that the FreeNAS 11 system have two Seagate usb-disks instead of Western Digital.
So for this Western Digital 2 TB usb-disk everything works for smartd.
I thought smartd would enable support for SMART in the disk.

Is the there a way to manually enable SMART support?
No cares if you think it works. We are telling you that is a terrible idea and you just haven't figured out it's broken yet.

Western digital might be doing some tricky stuff and preventing access to smart. Double check it's enabled in the bios.

Sent from my Nexus 5X using Tapatalk
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
But the really irritating thing is that I have the same hardware configuration running FreeNAS 8.3.0 with a working smartd! Same Dell PowerEdge1850 (we got several of these very cheap) and two 2 TB usb-disks plus a boot disk exactly the same as for the FreeNAS 11 system.
On the 8.3.0 system the /usr/local/etc/smartd.conf looks like:
Code:
################################################
# smartd.conf generated by /etc/rc.d/ix-smartd
################################################
/dev/da0 -n never -W 0,0,0
/dev/da1 -n never -W 0,0,0
/dev/da2 -n never -W 0,0,0

So here all three disks are included.
The command smartctl -a /dev/da1 gives:
Code:
smartctl 5.43 2012-06-30 r3573 [FreeBSD 8.3-RELEASE-p5 amd64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:  WDC WD20EZRX-00DC0B0
Serial Number:  WD-WMC1T0802510
LU WWN Device Id: 5 0014ee 0ae1b360f
Firmware Version: 80.00A80
User Capacity:  2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:  512 bytes logical, 4096 bytes physical
Device is:  Not in smartctl database [for details use: -P showall]
ATA Version is:  8
ATA Standard is:  ACS-2 (revision not indicated)
Local Time is:  Wed Aug  2 16:30:48 2017 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

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

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
  was completed without error.
  Auto Offline Data Collection: Enabled.
Self-test execution status:  (  0) The previous self-test routine completed
  without error or no self-test has ever
  been run.
Total time to complete Offline
data collection:  (25980) 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:  ( 263) minutes.
Conveyance self-test routine
recommended polling time:  (  5) minutes.
SCT capabilities:  (0x70b5) 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  -  0
  3 Spin_Up_Time  0x0027  180  177  021  Pre-fail  Always  -  5991
  4 Start_Stop_Count  0x0032  068  068  000  Old_age  Always  -  32319
  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  056  056  000  Old_age  Always  -  32681
10 Spin_Retry_Count  0x0032  100  100  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  -  28
192 Power-Off_Retract_Count 0x0032  200  200  000  Old_age  Always  -  14
193 Load_Cycle_Count  0x0032  165  165  000  Old_age  Always  -  106871
194 Temperature_Celsius  0x0022  114  108  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  200  200  000  Old_age  Offline  -  0
199 UDMA_CRC_Error_Count  0x0032  200  200  000  Old_age  Always  -  0
200 Multi_Zone_Error_Rate  0x0008  200  200  000  Old_age  Offline  -  0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
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.


The difference is that the FreeNAS 11 system have two Seagate usb-disks instead of Western Digital.
So for this Western Digital 2 TB usb-disk everything works for smartd.
I thought smartd would enable support for SMART in the disk.

Is the there a way to manually enable SMART support?
Is S.M.A.R.T. enabled for the USB disks when you go to Storage->View Disks?

If not, enable it there. Also, you may be able to specify extra S.M.A.R.T. options to get the service 'working'.

But to echo the comments of others... using USB disks is a Very Bad Idea if you value your data. :eek:
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Also if it does work for FreeNAS 8.3.0, keep in mind that thsi was based off of FreeBSD 8.x and FreeNAS 11 is based on FreeBSD 11. These are considerably different and you can expect some considerable differences between the two. I would expect old drivers to go away and new drivers to show up, possibly no longer supporting your old hardware. But i echo the same conserns about using a USB adapter.
 

AndersL

Cadet
Joined
Aug 2, 2017
Messages
5
Thank you all for this info, even though it is disappointing to me. It would have been such a nice and cheap way to get backup storage.

@Spearfoot : Yes, "Enable SMART" is true for both disks. See the screendump.

Why is the first "real" scsi-disk (the boot disk) not listed in smartd.conf? It is in my old 8.3.0 system.

You really mean I am just lucky being able to run the 8.3.0 system with usb-disks for so long (several years) without a crash?
 

Attachments

  • temp.png
    temp.png
    53.8 KB · Views: 355

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
You really mean I am just lucky being able to run the 8.3.0 system with usb-disks for so long (several years) without a crash?
Lucky, maybe, but it's not a safe way to go. Also some support for external drives was removed in FreeNAS 9.x so that could also be a factor.
 

AndersL

Cadet
Joined
Aug 2, 2017
Messages
5
After some reading, especially at smartmontools.org, I could get smartd to work, by adding the extra smartd options -d sat. I will take my chances with external usb-drives for some more time, maybe I will be burned.
 

Attachments

  • temp.png
    temp.png
    59.2 KB · Views: 358

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
After some reading, especially at smartmontools.org, I could get smartd to work, by adding the extra smartd options -d sat. I will take my chances with external usb-drives for some more time, maybe I will be burned.
Ah! Good luck! Let us know how things work out.
 
Status
Not open for further replies.
Top