Both smartctl and smartd are unable to autodetect SATA discs. smartctl needs "-d ata" parameter to work with SATA discs smartd does not check SATA discs even configured to do on all discs in the system This bug prevent users to check and monitor SATA discs which is unacceptable in enterprise environment.
The smartd-conf.py script in the current packages should be able to autodetect the SATA disc and add the '-d ata' option where appropriate. Doesn't it work for you?
in Fedora 6, the '-d ata' works fine for my SATA disk. Package: smartmontools-5.36-3.2.fc6 Here is the output if the -d ata option was not provided in the command line. Note the last paragraph is suggesting to use it: # /usr/sbin/smartctl -i /dev/sda smartctl version 5.36 [i386-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: ATA WDC WD2500KS-00M Version: 02.0 In Linux, SATA disks accessed via libata are only supported by smartmontools for kernel versions 2.6.15 and above. Try an additional '-d ata' argument. Now, lets run it using the '-d ata': # /usr/sbin/smartctl -i /dev/sda -d ata smartctl version 5.36 [i386-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: WDC WD2500KS-00MJB0 Serial Number: WD-WCANK4707515 Firmware Version: 02.01C03 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: Thu Apr 5 13:45:18 2007 CST SMART support is: Available - device has SMART capability. SMART support is: Enabled
Seems to be working fine for me. Can you post your /etc/smartd.conf and provide some details (how many disks are there in the system, manufacturers of disks,...)?
Smartd does not work with SATA discs without '-d ata' (see comment #1), ie with alone DEVICESCAN. Anaconda is putting lines like and the monitoring seems then as working: /dev/sdg -d ata -H -m root I was using this line: DEVICESCAN -a -m root -M daily -s (O/../.././(00|06|12|18)|S/../.././(03|09|15|21)|L/../.././01)
Thanks Milan. Now it's clear. Smartmontools indeed can't distinguish among SCSI/SATA/SAT disk types. This is what the configuration script is supposed to do. I can try to move the "detection code" from script into the binaries.
From version 5.37 smartmontools detect ATA discs behind SAT layer automatically.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0763.html
*** Bug 176835 has been marked as a duplicate of this bug. ***