Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96627 - S.M.A.R.T. capability for SATA-harddrives
Summary: S.M.A.R.T. capability for SATA-harddrives
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-20 10:46 UTC by R!tman
Modified: 2006-08-05 23:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R!tman 2005-06-20 10:46:46 UTC
At the moement gentoo-sources (2.6.x) do not support S.M.A.R.T. for sata-drives.
There is a patch that enables this for these drives which can be found at
http://www.kernel.org/pub/linux/kernel/people/jgarzik/libata/. Parts of the
patch seem to have been included in gentoo-sources already, as some instances of
the patch did not apply 100% clean.
I believe the S.M.A.R.T.-part oft the patch can also be inlcuded in gentoo-sources.

Reproducible: Always
Steps to Reproduce:
1. Apply the patch mentioned above. 
Actual Results:  
S.M.A.R.T. works, eg. together with >=hddtemp-0.3-beta13 temperatures of sata
drives can be monitored.


I have tested this with gentoo-sources-2.6.11-r7 (for about 4 weeks) and
gentoo-sources-2.6.11-r11 (since 1 week) on amd64. No problems of any kind
occured during that time. I have a software raid 5, if that might be of interest.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-20 11:28:26 UTC

*** This bug has been marked as a duplicate of 91972 ***
Comment 2 R!tman 2005-06-20 11:54:00 UTC
This is not a duplicate. HERE, a patch is requested to be applied to
gentoo-sources, in 96627 an ebuild is requested.
The ebuild does not at all depend on the patch. hddtemp work without it on
normal ide harddiscs.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-06-20 12:01:55 UTC
I've CCed kernel in the other bug, but as you wish. Just please don't post the
same to both bugs, not really needed at all. 
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-06-20 13:59:09 UTC
We tend to avoid feature patches in gentoo-sources. I suggest that you email the
maintainer and let him know that the functionality seems to work and see if
there is anything you can do to help it get submitted to the Linux development tree.
Comment 5 Nebojsa Trpkovic 2005-06-20 14:02:18 UTC
I had the same need (as many others) - to read temperature and other SMART info
from my SATA hard drives to early detect failure.
Applied libdata patch on gentoo sources 2.6.11-r6, 2.6.11-r7 and 2.6.11-r11 on
my desktop box and my server.
Everything works just fine for more then a month (server is up 24/7).

It seems to me as a VERY usefull feature, so pleace consider adding it to
gentoo-sources patch-set.



smartctl version 5.33 [x86_64-pc-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     ST3250823AS
Serial Number:    3ND0LNG3
Firmware Version: 3.02
User Capacity:    250,059,350,016 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Mon Jun 20 22:59:42 2005 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:                 ( 430) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No 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:        (  84) minutes.

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   056   055   006    Pre-fail  Always       -
      11552490
  3 Spin_Up_Time            0x0003   098   098   000    Pre-fail  Always       -
      0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -
      18
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -
      0
  7 Seek_Error_Rate         0x000f   072   060   030    Pre-fail  Always       -
      16914598
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -
      1140
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -
      0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -
      26
194 Temperature_Celsius     0x0022   033   040   000    Old_age   Always       -
      33 (Lifetime Min/Max 0/23)
195 Hardware_ECC_Recovered  0x001a   056   055   000    Old_age   Always       -
      11552490
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
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -
      0
202 TA_Increase_Count       0x0032   100   253   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%      1075         -
# 2  Short offline       Completed without error       00%       909         -
# 3  Short offline       Completed without error       00%       849         -

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.




Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 12 2005, 02:04:49)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon64 -pipe -frename-registers -fweb -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/users/tnt/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.etf.bg.ac.yu/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://gd.tuwien.ac.at/opsys/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 acpi apache2 berkdb bitmap-fonts crypt cups curl encode exif
extensions font-server fortran gd gif gpm imagemagick imap jabber jp2 jpeg
libwww logrotate lzw lzw-tiff maildir mp3 mpeg mysql ncurses nls nptl nptlonly
oggvorbis pam pam-mysql perl php png python readline rrdtool samba sasl slang
snmp ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales
wmf xml2 xpm xrandr zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS