Hi all,
When running smartctl to get the attributes readout libata seems to get
really confused on my system. After a timeout it recovers without apparent
ill-effect, but the reported values are complete rubbish. Unfortunately I don't
remember if this is a regression or it was always like this..I have attached some data below, but if more is needed just shout!
Regards,
Tvrtko
root@sol:~# uname -a
Linux sol 2.6.24.3 #4 SMP PREEMPT Sat Mar 8 12:57:56 GMT 2008 x86_64 GNU/Linuxroot@sol:~# smartctl -A /dev/sda
smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 17018
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
255 Unknown_Attribute 0x373f 200 016 063 Pre-fail Always In_the_past 69269232549888
45 Unknown_Attribute 0x4344 087 082 068 Old_age Offline - 61779704492097
51 Unknown_Attribute 0x0039 000 000 057 Pre-fail Offline FAILING_NOW 52987850404480
66 Unknown_Attribute 0x3231 048 068 049 Pre-fail Offline FAILING_NOW 55350388793431
48 Unknown_Attribute 0x4130 065 083 048 Old_age Offline - 71675860037707
32 Unknown_Attribute 0x2030 032 032 048 Old_age Offline FAILING_NOW 35322350018592
32 Unknown_Attribute 0x2020 032 032 032 Old_age Offline FAILING_NOW 550026354720
16 Unknown_Attribute 0x3f00 000 016 000 Old_age Offline FAILING_NOW 280379760114684
255 Unknown_Attribute 0x000f 000 007 015 Pre-fail Always FAILING_NOW 131943408599808
120 Unknown_Attribute 0x7800 000 000 000 Old_age Offline FAILING_NOW 0
64 Unknown_Attribute 0xfe00 001 000 000 Old_age Offline In_the_past 39030002838272
104 Un...
Is auto spindown configured for the drive?
--
tejun
--
I don't think so - it's a 3.5" drive with no special PM features - but how to
tell?Tvrtko
root@sol:~# hdparm -i /dev/sda
/dev/sda:
Model=WDC WD3200AAKS-00VYA0 , FwRev=12.01B02, SerialNo=
WD-WCARW0059893
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=?0?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5,6,7* signifies the current active mode
root@sol:~# sdparm -a /dev/sda
/dev/sda: ATA WDC WD3200AAKS-0 12.0
Read write error recovery mode page:
AWRE 1
ARRE 0
TB 0
RC 0
EER 0
PER 0
DTE 0
DCR 0
RRC 0
COR_S 0
HOC 0
DSOC 0
WRC 0
RTL 0
Caching (SBC) mode page:
IC 0
ABPF 0
CAP 0
DISC 0
SIZE 0
WCE 1
MF 0
RCD 0
DRRP 0
WRP 0
DPTL 0
MIPF 0
MAPF 0
MAPFC 0
FSW 0
LBCSS 0
DRA 0
NV_DIS 0
NCS 0
CSS 0
Control mode page:
TST 0
TMF_ONLY 0
D_SENSE 0
GLTSD 1
RLEC 0
QAM 0
QERR 0
RAC 0
UA_INTLCK 0
SWP 0
ATO 0
TAS 0
AUTOLOAD 0
BTP -1
ESTCT 30
--
Hmm... Can you please post the result of "smartctl --version" and
"smartctl -a > out 2>&1" and dmesg after the smartctl command?Thanks.
--
tejun
--
Yep, pasted and attached below. dmesg is 67k, hope list is happy with that.
Tvrtko
root@sol:~# smartctl --version
smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6 Bruce
Allen
Home page is http://smartmontools.sourceforge.net/smartctl comes with ABSOLUTELY NO WARRANTY. This
is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License Version 2.
See http://www.gnu.org for further details.CVS version IDs of files used to build this code are:
Module: atacmdnames.cpp revision: 1.15 date: 2006/10/22
uses: atacmdnames.h revision: 1.5 date: 2006/04/12
Module: atacmds.cpp revision: 1.177 date: 2006/10/27
uses: atacmds.h revision: 1.83 date: 2006/08/25
uses: configure.in revision: 1.122 date: 2006/12/20
uses: extern.h revision: 1.47 date: 2006/09/15
uses: int64.h revision: 1.16 date: 2006/10/29
uses: scsiata.h revision: 1.2 date: 2006/07/01
uses: utility.h revision: 1.47 date: 2006/10/09
Module: ataprint.cpp revision: 1.171 date: 2006/10/28
uses: atacmdnames.h revision: 1.5 date: 2006/04/12
uses: atacmds.h revision: 1.83 date: 2006/08/25
uses: ataprint.h revision: 1.29 date: 2006/09/17
uses: configure.in revision: 1.122 date: 2006/12/20
uses: extern.h revision: 1.47 date: 2006/09/15
uses: int64.h revision: 1.16 date: 2006/10/29
uses: knowndrives.h revision: 1.17 date: 2006/08/09
uses: smartctl.h revision: 1.24 date: 2006/07/20
uses: utility.h revision: 1.47 date: 2006/10/09
Module: knowndrives.cpp revision: 1.156 date: 2006/10/30
uses: atacmds.h revision: 1.83 date: 2006/08/25
uses: ataprint.h revision: 1.29 date: 2006/09/17
uses: configure.in revision: 1.122 date: 2006/12/20
uses: extern.h revision: 1.47 date: 2006/09/15
uses: int64.h revision: 1.16 date: 2006/10/29
uses: knowndrives.h revision: 1.17...
Thanks for the data. Nothing really stands out tho. It looks like the
drive just doesn't like SMART commands 0xda and 0xd1. 0xda being a
mandatory non-data command, it failing due to driver problem is unlikely.Can you please post the result of "hdparm -I /dev/sda" and "lspci -nn"?
Bruce, WDC WD3200AAKS-00VYA0, 12.01B02 is timing out SMART commands 0xda
and 0xd1 and the reported data seems all wrong. Does it ring a bell?
The original thread can be read from the following URL.http://thread.gmane.org/gmane.linux.ide/30459
Thanks.
--
tejun
--
Of course:
root@sol:~# hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: WDC WD3200AAKS-00VYA0
Serial Number: WD-WCARW0059893
Firmware Revision: 12.01B02
Standards:
Supported: 8 7 6 5
Likely used: 8
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 625142448
device size with M = 1024*1024: 305245 MBytes
device size with M = 1000*1000: 320072 MBytes (320 GB)
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, with device specific minimum
R/W multiple sector transfer: Max = 16 Current = 0
Recommended acoustic management value: 128, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
Power-Up In Standby feature set
* SET_FEATURES required to spinup after power up
SET_MAX security extension
Automatic Acoustic Management feature set
* 48-bit Address feature set
* Device Configuration Overlay feature set
* M...
Hmmm.. WD3200 w/ nv ahci. WD3200 having trouble with smart commands is
unlikely. Is it possible for you try different drive on the controller
and see whether smartctl works on it?Thanks.
--
tejun
--
