Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1388510

Summary: update drivedb to understand and correctly name SMART attributes
Product: Red Hat Enterprise Linux 7 Reporter: Michal Hlavinka <mhlavink>
Component: smartmontoolsAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Roman Žilka <rzilka>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.0CC: gergely, orion, philipp, rzilka, vdanek
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: smartmontools-6.2-8.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1222964 Environment:
Last Closed: 2017-08-01 23:11:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1400961    

Description Michal Hlavinka 2016-10-25 14:20:13 UTC
+++ This bug was initially created as a clone of Bug #1222964 +++

Description of problem:

Actual results:

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x0033   116   116   050    Pre-fail  Always       -       123206501
  5 Reallocated_Sector_Ct   0x0033   100   100   003    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   095   095   000    Old_age   Always       -       4727 (20 168 0)
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       17
 13 Read_Soft_Error_Rate    0x0032   060   060   000    Old_age   Always       -       58085260917605
100 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -       35154
170 Unknown_Attribute       0x00ef   000   000   000    Pre-fail  Always       -       16128
171 Unknown_Attribute       0x000a   000   000   000    Old_age   Always       -       0
172 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -       0
174 Unknown_Attribute       0x0030   000   000   000    Old_age   Offline      -       18
177 Wear_Leveling_Count     0x0000   000   000   000    Old_age   Offline      -       5
181 Program_Fail_Cnt_Total  0x000a   000   000   000    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   000   000   000    Old_age   Always       -       0
184 End-to-End_Error        0x0000   100   100   090    Old_age   Offline      -       0
187 Reported_Uncorrect      0x001c   100   100   000    Old_age   Offline      -       0
194 Temperature_Celsius     0x0022   028   043   000    Old_age   Always       -       28 (Min/Max 22/43)
195 Hardware_ECC_Recovered  0x001c   120   120   000    Old_age   Offline      -       123206501
196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -       0
198 Offline_Uncorrectable   0x0010   116   116   000    Old_age   Offline      -       258380937560064
199 UDMA_CRC_Error_Count    0x0004   200   200   000    Old_age   Offline      -       0
201 Soft_Read_Error_Rate    0x001c   120   120   000    Old_age   Offline      -       123206501
204 Soft_ECC_Correction     0x001c   120   120   000    Old_age   Offline      -       123206501
230 Head_Amplitude          0x0013   100   100   000    Pre-fail  Always       -       100
231 Temperature_Celsius     0x0013   100   100   010    Pre-fail  Always       -       0
232 Available_Reservd_Space 0x0032   000   000   000    Old_age   Always       -       63
233 Media_Wearout_Indicator 0x0032   000   000   000    Old_age   Always       -       34811
234 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -       21171
235 Unknown_Attribute       0x0033   100   100   002    Pre-fail  Always       -       0
241 Total_LBAs_Written      0x0032   000   000   000    Old_age   Always       -       21171
242 Total_LBAs_Read         0x0032   000   000   000    Old_age   Always       -       150430

Expected results:

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x0033   120   120   050    Pre-fail  Always       -       0/0
  5 Retired_Block_Count     0x0033   100   100   003    Pre-fail  Always       -       0
  9 Power_On_Hours_and_Msec 0x0032   100   100   000    Old_age   Always       -       309h+41m+49.010s
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       4
 13 Soft_Read_Error_Rate    0x0032   120   120   000    Old_age   Always       -       20220/0
100 Gigabytes_Erased        0x0032   000   000   000    Old_age   Always       -       20
170 Reserve_Block_Count     0x00ef   000   000   000    Pre-fail  Always       -       70144
171 Program_Fail_Count      0x000a   000   000   000    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   000   000   000    Old_age   Always       -       0
174 Unexpect_Power_Loss_Ct  0x0030   000   000   000    Old_age   Offline      -       4
177 Wear_Range_Delta        0x0000   000   000   000    Old_age   Offline      -       0
181 Program_Fail_Count      0x000a   000   000   000    Old_age   Always       -       0
182 Erase_Fail_Count        0x0032   000   000   000    Old_age   Always       -       0
184 IO_Error_Detect_Code_Ct 0x0000   100   100   090    Old_age   Offline      -       0
187 Reported_Uncorrect      0x001c   100   100   000    Old_age   Offline      -       0
194 Temperature_Celsius     0x0022   029   035   000    Old_age   Always       -       29 (Min/Max 22/35)
195 ECC_Uncorr_Error_Count  0x001c   100   100   000    Old_age   Offline      -       0/0
196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -       0
198 Uncorrectable_Sector_Ct 0x0010   120   120   000    Old_age   Offline      -       0/0
199 SATA_CRC_Error_Count    0x0004   200   200   000    Old_age   Offline      -       0
201 Unc_Soft_Read_Err_Rate  0x001c   100   100   000    Old_age   Offline      -       0/0
204 Soft_ECC_Correct_Rate   0x001c   100   100   000    Old_age   Offline      -       0/0
230 Life_Curve_Status       0x0013   100   100   000    Pre-fail  Always       -       100
231 SSD_Life_Left           0x0013   100   100   010    Pre-fail  Always       -       0
232 Available_Reservd_Space 0x0032   000   000   000    Old_age   Always       -       137
233 SandForce_Internal      0x0032   000   000   000    Old_age   Always       -       8
234 SandForce_Internal      0x0032   000   000   000    Old_age   Always       -       7
235 SuperCap_Health         0x0033   100   100   002    Pre-fail  Always       -       0
241 Lifetime_Writes_GiB     0x0032   000   000   000    Old_age   Always       -       7
242 Lifetime_Reads_GiB      0x0032   000   000   000    Old_age   Always       -       0

Comment 1 Michal Hlavinka 2016-10-25 14:24:03 UTC
*** Bug 1379687 has been marked as a duplicate of this bug. ***

Comment 3 Philip Prindeville 2017-01-28 00:06:14 UTC
Is version 6.5 coming out any time soon?  Linux 3.3 has NMVe support in it (I'm running CentOS 7.3 1611 updated) on a 1TB NVMe stick... but can't monitor it because I have v6.3 still which is pre-NVMe.

Please release an update.

Comment 5 Roman Žilka 2017-06-15 09:51:16 UTC
QA: Verified (SanityOnly).

********** smartmontools-6.2-7.el7 (faulty):

# smartctl -P showall 'KINGSTON SE50S3480G'
No presets are defined for this drive.  Its identity strings:
MODEL:    KINGSTON SE50S3480G
FIRMWARE: (any)
do not match any of the known regular expressions.

********** smartmontools-6.2-8.el7 (fixed):

# smartctl -P showall 'KINGSTON SE50S3480G'
   (...)
ATTRIBUTE OPTIONS:  001 Raw_Read_Error_Rate
                    005 Retired_Block_Count
                    009 Power_On_Hours_and_Msec
                    013 Soft_Read_Error_Rate
                    100 Gigabytes_Erased
                    162 Unknown_SandForce_Attr
                    170 Reserve_Block_Count
                    171 Program_Fail_Count
                    172 Erase_Fail_Count
                    173 Unknown_SandForce_Attr
                    174 Unexpect_Power_Loss_Ct
                    177 Wear_Range_Delta
                    181 Program_Fail_Count
                    182 Erase_Fail_Count
                    184 IO_Error_Detect_Code_Ct
                    189 Airflow_Temperature_Cel
                    195 ECC_Uncorr_Error_Count
                    198 Uncorrectable_Sector_Ct
                    199 SATA_CRC_Error_Count
                    201 Unc_Soft_Read_Err_Rate
                    204 Soft_ECC_Correct_Rate
                    218 Unknown_SandForce_Attr
                    230 Life_Curve_Status
                    231 SSD_Life_Left
                    233 SandForce_Internal
                    234 SandForce_Internal
                    235 SuperCap_Health
                    241 Lifetime_Writes_GiB
                    242 Lifetime_Reads_GiB

Comment 7 errata-xmlrpc 2017-08-01 23:11:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2204