You are not logged in.

#1 2016-05-18 15:15:06

keyboss
Member
Registered: 2016-05-18
Posts: 4

smartctl reports bit error but nothing in logs

What is the meaning of this return code?

$ sudo smartctl -x /dev/sda -q silent
$ echo $?
4

The actual output is below

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Constellation.2 (SATA)
Device Model:     ST91000640NS
Serial Number:    9XG9W0CJ
LU WWN Device Id: 5 000c50 090f43247
Add. Product Id:  DELL(tm)
Firmware Version: AA63
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed May 18 10:57:08 2016 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status command failed: Input/output error
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:      ( 246) Self-test routine in progress...
                                        60% of test remaining.
Total time to complete Offline 
data collection:                (   90) 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:        ( 198) minutes.
Conveyance self-test routine
recommended polling time:        (   3) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR--+  078   064   044    -    60473439
  3 Spin_Up_Time            PO----+  097   097   000    -    0
  4 Start_Stop_Count        -O--CK   100   100   020    -    5
  5 Reallocated_Sector_Ct   PO--CK+  100   100   036    -    0
  7 Seek_Error_Rate         POSR--   061   060   030    -    1340093
  9 Power_On_Hours          -O--CK   100   100   000    -    286
 10 Spin_Retry_Count        PO--C-   100   100   097    -    0
 12 Power_Cycle_Count       -O--CK   100   100   020    -    5
184 End-to-End_Error        -O--CK   100   100   099    -    0
187 Reported_Uncorrect      -O--CK   100   100   000    -    0
188 Command_Timeout         -O--CK   100   100   000    -    0
189 High_Fly_Writes         -O-RCK   100   100   000    -    0
190 Airflow_Temperature_Cel -O---K   067   059   045    -    33 (Min/Max 26/34)
191 G-Sense_Error_Rate      -O--CK   100   100   000    -    0
192 Power-Off_Retract_Count -O--CK   100   100   000    -    4
193 Load_Cycle_Count        -O--CK   100   100   000    -    16
194 Temperature_Celsius     -O---K   033   041   000    -    33 (0 19 0 0 0)
195 Hardware_ECC_Recovered  -O-RC-   114   100   000    -    60473439
197 Current_Pending_Sector  -O--C-   100   100   000    -    0
198 Offline_Uncorrectable   ----C-   100   100   000    -    0
199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
240 Head_Flying_Hours       ------   100   253   000    -    286 (203 13 0)
241 Total_LBAs_Written      ------   100   253   000    -    95725931
242 Total_LBAs_Read         ------   100   253   000    -    1571424386
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      5  Comprehensive SMART error log
0x03       GPL     R/O      5  Ext. Comprehensive SMART error log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL,SL  R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  SATA NCQ Queued Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa1       GPL,SL  VS      20  Device vendor specific log
0xa2       GPL     VS    4496  Device vendor specific log
0xa8       GPL,SL  VS     129  Device vendor specific log
0xa9       GPL,SL  VS       1  Device vendor specific log
0xb0       GPL     VS    5176  Device vendor specific log
0xbd       GPL     VS     252  Device vendor specific log
0xbe-0xbf  GPL     VS   65535  Device vendor specific log
0xdf       GPL,SL  VS       1  Device vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

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

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Self-test routine in progress 60%       286         -
# 2  Conveyance offline  Completed without error       00%       271         -
# 3  Short offline       Completed without error       00%       270         -
# 4  Conveyance offline  Completed without error       00%       247         -
# 5  Short offline       Completed without error       00%       246         -
# 6  Conveyance offline  Completed without error       00%       223         -
# 7  Short offline       Completed without error       00%       222         -
# 8  Conveyance offline  Completed without error       00%       199         -
# 9  Short offline       Completed without error       00%       198         -
#10  Conveyance offline  Completed without error       00%       175         -
#11  Short offline       Completed without error       00%       174         -
#12  Conveyance offline  Completed without error       00%       151         -
#13  Short offline       Completed without error       00%       150         -
#14  Extended offline    Completed without error       00%       131         -
#15  Conveyance offline  Completed without error       00%       127         -
#16  Short offline       Completed without error       00%       126         -
#17  Conveyance offline  Completed without error       00%       103         -
#18  Short offline       Completed without error       00%       102         -
#19  Conveyance offline  Completed without error       00%        79         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

SCT Status Version:                  3
SCT Version (vendor specific):       522 (0x020a)
SCT Support Level:                   1
Device State:                        Active (0)
Current Temperature:                    33 Celsius
Power Cycle Min/Max Temperature:     25/34 Celsius
Lifetime    Min/Max Temperature:     19/41 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        10 minutes
Min/Max recommended Temperature:      5/60 Celsius
Min/Max Temperature Limit:           -40/70 Celsius
Temperature History Size (Index):    128 (49)

Index    Estimated Time   Temperature Celsius
  50    2016-05-17 13:40    29  **********
 ...    ..( 33 skipped).    ..  **********
  84    2016-05-17 19:20    29  **********
  85    2016-05-17 19:30    30  ***********
  86    2016-05-17 19:40    29  **********
  87    2016-05-17 19:50    28  *********
 ...    ..(  2 skipped).    ..  *********
  90    2016-05-17 20:20    28  *********
  91    2016-05-17 20:30    29  **********
 ...    ..(  4 skipped).    ..  **********
  96    2016-05-17 21:20    29  **********
  97    2016-05-17 21:30    28  *********
  98    2016-05-17 21:40    29  **********
  99    2016-05-17 21:50    28  *********
 100    2016-05-17 22:00    28  *********
 101    2016-05-17 22:10    28  *********
 102    2016-05-17 22:20    29  **********
 103    2016-05-17 22:30    28  *********
 104    2016-05-17 22:40    29  **********
 ...    ..( 62 skipped).    ..  **********
  39    2016-05-18 09:10    29  **********
  40    2016-05-18 09:20    30  ***********
  41    2016-05-18 09:30    30  ***********
  42    2016-05-18 09:40    29  **********
  43    2016-05-18 09:50    29  **********
  44    2016-05-18 10:00    32  *************
  45    2016-05-18 10:10    33  **************
 ...    ..(  3 skipped).    ..  **************
  49    2016-05-18 10:50    33  **************

SCT Error Recovery Control:
           Read:     80 (8.0 seconds)
          Write:     80 (8.0 seconds)

Device Statistics (GP/SMART Log 0x04) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x000a  2            2  Device-to-host register FISes sent due to a COMRESET
0x0001  2            0  Command failed due to ICRC error
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS

I've Googled but all I can find is in the man page for smartctl "Bit 2: Some SMART command to the disk failed, or there was a checksum error in a SMART data structure (see '-b' option above)." However, I see no warnings about the SMART structures in the output or failed commands.

Offline

#2 2016-05-19 14:24:16

pauper
Member
Registered: 2012-06-25
Posts: 38

Re: smartctl reports bit error but nothing in logs

I have a drive that is giving the same return code. If you look in the manual it says the -x command is equivalent to the following:

smartctl -H -i -g all -c -A -f brief -l xerror,error -l xselftest,selftest -l selective -l directory -l scttemp -l scterc -l devstat -l sataphy

I just went through each option individually to find which was causing the return code (it ended up being the scterc command not being supported) - if the return code is not specific to any one option I guess its probably a checksum error, googling other enquiries on that seems to suggest that it can be safely ignored.

Offline

#3 2016-05-19 14:56:57

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: smartctl reports bit error but nothing in logs

You probably want to see 'man smartctl', this is documented there. I'd say that with that error code there is nothing to worry about.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB