SOLVED SMART monitoring of Seagate Expansion USB drive

Status
Not open for further replies.

logan893

Dabbler
Joined
Dec 31, 2015
Messages
44
Is there a way to verify that the "behind the scenes", normally silent, SMART monitoring in FreeNAS is pulling data correctly?

I currently use 3 drives for data. Two 4TB in a mirror (da1, da2), and one 5TB USB drive for automatic ZFS snapshot backups (da4, using pools with copies=2 or 3 for single drive data redundancy).

The external USB drive is a Seagate Expansion Desktop 5TB (STEB5000200) with a Seagate Desktop 5TB (ST5000DM000) drive inside.

Trying to read SMART data from this external USB HDD without manually specifying device type fails. When supplying device type "-d sat" I can read the SMART data.

Code:
# smartctl -a /dev/da4
smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/da4: Unknown USB bridge [0x0bc2:0x331a (0x909)]
Please specify device type with the -d option.

Use smartctl -h to get a usage summary




Code:
# smartctl -a /dev/da4 -d sat
smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Desktop HDD.15
Device Model:     ST5000DM000-1FK178
Serial Number:    W4J17BJF
LU WWN Device Id: 5 000c50 0906af9ba
Firmware Version: CC49
User Capacity:    5,000,981,078,016 bytes [5.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5980 rpm
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: 6.0 Gb/s)
Local Time is:    Tue Aug  9 16:05:19 2016 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

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:      ( 249) Self-test routine in progress...
                                        90% of test remaining.
Total time to complete Offline
data collection:                (  106) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 638) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x3035) SCT Status 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   119   100   006    Pre-fail  Always       -       222840768
  3 Spin_Up_Time            0x0003   093   092   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       28
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   072   060   030    Pre-fail  Always       -       4311974024
  9 Power_On_Hours          0x0032   098   098   000    Old_age   Always       -       2345
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       12
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
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 0 0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   052   051   045    Old_age   Always       -       48 (Min/Max 44/49)
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       -       8
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       44
194 Temperature_Celsius     0x0022   048   049   000    Old_age   Always       -       48 (0 11 0 0 0)
195 Hardware_ECC_Recovered  0x001a   119   100   000    Old_age   Always       -       222840768
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
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       2343h+02m+46.344s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       7043245726
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       26771578346

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    Self-test routine in progress 90%      2345         -
# 2  Short offline       Completed without error       00%      2344         -
# 3  Short offline       Completed without error       00%      2344         -

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.

 

logan893

Dabbler
Joined
Dec 31, 2015
Messages
44
Update:

I checked the /var/log files, looking for SMART, and found that daemon.log has entries from smartd.

Most recent boot shows smartd "unable to autodetect device type", and furthermore unlike da1 and da2 there are no updates to attributes.

Code:
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da1 [SAT], found in smartd database: Seagate NAS HDD
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da1 [SAT], is SMART capable. Adding to "monitor" list.
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2, type changed from 'scsi' to 'sat'
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2 [SAT], opened
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2 [SAT], ST4000VN000-1H4168, S/N:Z304SXZ1, WWN:5-000c50-086d6742f, FW:SC46, 4.00 TB
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2 [SAT], found in smartd database: Seagate NAS HDD
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2 [SAT], is SMART capable. Adding to "monitor" list.
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2, type changed from 'scsi' to 'sat'
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2 [SAT], opened
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2 [SAT], ST4000VN000-1H4168, S/N:Z304SXZ1, WWN:5-000c50-086d6742f, FW:SC46, 4.00 TB
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2 [SAT], found in smartd database: Seagate NAS HDD
/var/log/daemon.log.2.bz2-Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da2 [SAT], is SMART capable. Adding to "monitor" list.
/var/log/daemon.log.2.bz2:Jul 23 05:06:43 freenas smartd[2297]: Device: /dev/da4, unable to autodetect device type


In the drive volume status (Storage -> Volume Status -> Edit Disk), I found "S.M.A.R.T. extra options". Adding "-d sat" here seem to do the trick.

Code:
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], opened
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], ST5000DM000-1FK178, S/N:W4J17BJF, WWN:5-000c50-0906af9ba, FW:CC49, 5.00 TB
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], found in smartd database: Seagate Desktop HDD.15
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], not capable of SMART Health Status check
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], no ATA CHECK POWER STATUS support, ignoring -n Directive
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], is SMART capable. Adding to "monitor" list.
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], opened
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], ST5000DM000-1FK178, S/N:W4J17BJF, WWN:5-000c50-0906af9ba, FW:CC49, 5.00 TB
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], found in smartd database: Seagate Desktop HDD.15
Aug  9 16:30:27 freenas smartd[32120]: Device: /dev/da4 [SAT], not capable of SMART Health Status check
Aug  9 16:30:28 freenas smartd[32120]: Device: /dev/da4 [SAT], no ATA CHECK POWER STATUS support, ignoring -n Directive
Aug  9 16:30:28 freenas smartd[32120]: Device: /dev/da4 [SAT], is SMART capable. Adding to "monitor" list.
Aug  9 16:30:29 freenas smartd[32120]: Device: /dev/da4 [SAT], self-test in progress, 90% remaining
Aug  9 16:30:29 freenas smartd[32120]: Device: /dev/da4 [SAT], self-test in progress, 90% remaining


Can/should built-in support for this USB disk type be added to FreeNAS SMART monitoring?
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
to my knowledge, USB drives do not support SMART knowledge and hence why they are not recommend to be used with FreeNAS.
 
Status
Not open for further replies.
Top