Artem Bokhan | 1 Feb 13:10 2012
Picon

ssd's self-test error log

Hello.

May it is better to output xselftest with -a option when selftest is not 
supported (like for all sandforce devices)?

#smartctl /dev/sg0 -d sat+megaraid,26 -l selftest
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.32-33-server] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Self-test Log not supported

# smartctl /dev/sg0 -d sat+megaraid,26 -l xselftest
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.32-33-server] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  
LBA_of_first_error
# 1  Extended offline    Completed without error       10%      2132         -

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Christian Franke | 2 Feb 07:40 2012
Picon

Re: ssd's self-test error log

Artem Bokhan wrote:
> Hello.
>
> May it is better to output xselftest with -a option when selftest is not
> supported (like for all sandforce devices)?

Changing existing behavior may break scripts parsing smartctl -a output. 
Use newer option -x to enable all newer outputs.

Note that -l xerror may not work in many cases. It requires support for 
48-bit non-SMART ATA command READ LOG EXT in smartctl os_*.cpp layer and 
OS driver.

Christian

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Patrick Zuther | 1 Feb 13:44 2012
Picon
Picon

Bad block HOWTO for smartmontools

Hello,

thanks for your Bad block Howto for smartmontools under:

http://smartmontools.sourceforge.net/badblockhowto.html

It helped me understand the problems I had.

Since I use a software RAID5, your offered solutions did not quite work out, 
but I finally found a very elegant solution for Softraid:

echo repair > /sys/block/md1/md/sync_action

I am not sure, if this howto is still maintained. If yes, I think the mention 
of the above command could be of help for people with Softraid.

Best Regards

Patrick Zuther

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Wainer Vandelli | 4 Feb 13:58 2012
Picon
Picon

smartctl fails on sat pass-through for version >=5.39.1


Dear smartmontools developers,

  we are experiencing a problem in accessing SMART information of SATA
disks attached to an Adaptec 5805 on Linux after the update to
smartmontools-5.41. With the previous version, smartmontools-5.39, we
had full access to SMART information and test.

On smartmontools-5.41, the following command, that is normally
successful with smartmontools-5.39, fails with "Operation not permitted"

[root <at> pc-tdq-sfo-12 ~]# smartctl  /dev/sg1 -d sat -a
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.18-274.12.1.el5] (local
build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Smartctl: Device Read Identity Failed: Operation not permitted

A mandatory SMART command failed: exiting. To continue, add one or more
'-T permissive' options.

After some bisecting, we realized the problem we experience was
introduced in release 5.39.1, by this change:

http://sourceforge.net/apps/trac/smartmontools/changeset/3052

My understanding is that ioctls on the scsi devices fails due to the
device being opened with the O_RDONLY flag:

[root <at> pc-tdq-sfo-12 ~]# strace smartctl  /dev/sg1 -d sat -a 2>&1 |grep
(Continue reading)

Chris Maltby | 7 Feb 00:49 2012
X-Face
Picon

Problem enabling SMART on a drive in a CCISS RAID.

I have a system with an HP CCISS RAID with 6x36GB drives (an old one)
which has a drive that I can't enable SMART on. All the others are fine.

# smartctl -i -q noserial -d cciss,3 /dev/cciss/c0d0
smartctl 5.42 2011-10-20 r3458 (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Vendor:               COMPAQ
Product:              BD03685A24
Revision:             HPB2
User Capacity:        36,419,584,000 bytes [36.4 GB]
Logical block size:   512 bytes
Device type:          disk
Transport protocol:   Parallel SCSI (SPI-4)
Local Time is:        Tue Feb  7 10:42:45 2012 EST
Device supports SMART and is Disabled
Temperature Warning Enabled

Attempting to enable SMART produces this:

# smartctl -s on -d cciss,3 /dev/cciss/c0d0

Informational Exceptions (SMART) disabled
Temperature warning enabled

I can still use smartctl to perform offline tests etc, but because SMART
is off, smartd won't monitor it or perform automatic tests.

Any clues?

(Continue reading)

Daniel Lenski | 9 Feb 07:09 2012
Picon

working USB bridge chip report (USB id 13fd:1ef0, -d sat)

Hi all,
I have a new USB bridge to report: ID 13fd:1e40. Smartctl reports that it is an unknown USB bridge but -d sat does the trick perfectly. I have tested it with several different 3.5" HDDs.

This bridge chip is made by Initio Corporation according to lsusb, and is found in my NexStar CX USB enclosure.

Thanks for this great software,
Dan

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Marcus Sorensen | 9 Feb 00:05 2012
Picon

Re: disk APM

cool, will do

On Wed, Feb 8, 2012 at 2:25 PM, Christian Franke
<Christian.Franke <at> t-online.de> wrote:
> Christian Franke wrote:
>>
>> Marcus Sorensen wrote:
>>>
>>> Ok, here's my patch. It applies against the stable 5.42 from
>>> sourceforge (as that's what we want to roll out).
>>
>>
>> Thanks
>>
>>
>>> One thing I noticed while changing it over to -l was that scterc is
>>> using it's own function 'ataGetSetSCTErrorRecoveryControltime' to set
>>> SCT values, whereas I just added the necessary commands to allow me to
>>> use the existing 'smartcommandhandler'. I'm not sure if one method is
>>> necessarily preferred over the other, but I imagine someone will want
>>> to be consistent, and I'm not really excited to change what I've
>>> already got.
>>
>>
>> smartcommandhandler() is actually legacy code from the old interface which
>> only supports ATA commands from smart_command_set. The enum is still used by
>> the os_*.cpp parts which are not migrated to new interface. New code should
>> directly call dev->ata_pass_through(.).
>>
>> I will change this and commit your patch in a week or so.
>>
>
> Done, r3503. Please test if possible.
>
> I did some changes and moved -l apm to new --get/set options. I will add
> some more settings soon.
>
> Thanks,
> Christian
>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
Andreas Hartmann | 13 Feb 12:00 2012
Picon

smartctl values for Corsair Force Series GT (CSSD-F240GBGT) look really odd

Hello!

The device mentioned in the subject is a SSD device (controller:
SF-2281) and 3 days old. It reports the following values:

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   089   089   050    Pre-fail  Always       -       3398974
  5 Reallocated_Sector_Ct   0x0033   100   100   003    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       161748468367395
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       14
171 Unknown_Attribute       0x0032   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      -       3
177 Wear_Leveling_Count     0x0000   000   000   000    Old_age   Offline      -       0
181 Program_Fail_Cnt_Total  0x0032   000   000   000    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   000   000   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   030   055   000    Old_age   Always       -       30 (Min/Max 17/55)
195 Hardware_ECC_Recovered  0x001c   120   120   000    Old_age   Offline      -       3398974
196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -       0
201 Soft_Read_Error_Rate    0x001c   120   120   000    Old_age   Offline      -       3398974
204 Soft_ECC_Correction     0x001c   120   120   000    Old_age   Offline      -       3398974
230 Head_Amplitude          0x0013   100   100   000    Pre-fail  Always       -       100
231 Temperature_Celsius     0x0013   100   100   010    Pre-fail  Always       -       0
233 Media_Wearout_Indicator 0x0000   000   000   000    Old_age   Offline      -       236
234 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -       212
241 Total_LBAs_Written      0x0032   000   000   000    Old_age   Always       -       212
242 Total_LBAs_Read         0x0032   000   000   000    Old_age   Always       -       119

SMART Error Log not supported
SMART Self-test Log not supported
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.

ID9 looks odd to me. SSD_Life_Left is missing completely. And to be
honest, I'm not sure, if I should trust the other parameters and how to
interpret them. Especially Total_LBAs_Written, Media_Wearout_Indicator,
Raw_Read_Error_Rate, Hardware_ECC_Recovered, Soft_Read_Error_Rate and
Soft_ECC_Correction.

I ran two self tests (short and conveyance). Both didn't show any
problem / log entries.

I would be happy to get some more information about to interpret the
values.

Thank you,
kind regards,
Andreas

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Christian Franke | 13 Feb 19:20 2012
Picon

Re: smartctl values for Corsair Force Series GT (CSSD-F240GBGT) look really odd

Andreas Hartmann wrote:
> The device mentioned in the subject is a SSD device (controller:
> SF-2281) and 3 days old. It reports the following values:
>
>
> 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
> ...
>    9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       161748468367395
> ...
> 231 Temperature_Celsius     0x0013   100   100   010    Pre-fail  Always       -       0
> ...

This device is likely not in smartctl database. This fact should be 
printed by smartctl -i.
http://sourceforge.net/apps/trac/smartmontools/wiki/FAQ#MyATAdriveisnotinthesmartctlsmartddatabase

In this case, smartctl uses default assignments for attributes which 
work for most HDDs. SMART attributes of SSDs differ considerably from 
HDDs (Note that there is NO standard for attribute format and assignments).

> ID9 looks odd to me.

SandForce Based devices use a very uncommon format for attribute 9: 
Hours and Milliseconds in high bytes:

161748468367395 = 0x931C00000023 = ~35 hours

>   SSD_Life_Left is missing completely.

It is attribute 231, also SandForce specific.
http://sourceforge.net/apps/trac/smartmontools/wiki/FAQ#TheSSD_Life_LeftAttributeofmynewSandForcebasedSSDreportszero

>
> I would be happy to get some more information about to interpret the
> values.

Please provide smartctl -i output also. We always need the exact ATA 
IDENTIFY string to add the device to the database. Please don't discard 
the first output line because it reports the smartctl version and platform.

Meantime you could use "-v 9,msec24hour32 -v 231,SSD_Life_Left" options 
to display the a mentioned attributes properly.

Thanks,
Christian

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Andreas Hartmann | 13 Feb 21:47 2012
Picon

Re: smartctl values for Corsair Force Series GT (CSSD-F240GBGT) look really odd

Christian Franke schrieb:
> Andreas Hartmann wrote:
>> The device mentioned in the subject is a SSD device (controller:
>> SF-2281) and 3 days old. It reports the following values:
>>
>>
>> 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
>> ...
>>    9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       161748468367395
>> ...
>> 231 Temperature_Celsius     0x0013   100   100   010    Pre-fail  Always       -       0
>> ...
> 
> This device is likely not in smartctl database. This fact should be 
> printed by smartctl -i.
> http://sourceforge.net/apps/trac/smartmontools/wiki/FAQ#MyATAdriveisnotinthesmartctlsmartddatabase

That's true.

> In this case, smartctl uses default assignments for attributes which 
> work for most HDDs. SMART attributes of SSDs differ considerably from 
> HDDs (Note that there is NO standard for attribute format and assignments).
> 
> 
>> ID9 looks odd to me.
> 
> SandForce Based devices use a very uncommon format for attribute 9: 
> Hours and Milliseconds in high bytes:
> 
> 161748468367395 = 0x931C00000023 = ~35 hours
> 
> 
>>   SSD_Life_Left is missing completely.
> 
> It is attribute 231, also SandForce specific.
> http://sourceforge.net/apps/trac/smartmontools/wiki/FAQ#TheSSD_Life_LeftAttributeofmynewSandForcebasedSSDreportszero

I already read it, but it doesn't solve my problem :-), because it
doesn't report zero - it doesn't exist at all.

>>
>> I would be happy to get some more information about to interpret the
>> values.
> 
> Please provide smartctl -i output also. We always need the exact ATA 
> IDENTIFY string to add the device to the database. Please don't discard 
> the first output line because it reports the smartctl version and platform.

No problem - here it is (completely):

smartctl -a /dev/sda
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.1.10-1.1-desktop] (SUSE RPM)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:     Corsair Force GT
Serial Number:    [snip]
LU WWN Device Id: 0 000000 000000000
Firmware Version: 1.3.3
User Capacity:    240,057,409,536 bytes [240 GB]
Sector Size:      512 bytes logical/physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  ACS-2 revision 3
Local Time is:    Mon Feb 13 21:35:14 2012 CET
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:  (0x02) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   1) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                ( 2930) seconds.
Offline data collection
capabilities:                    (0x7f) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Abort 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  48) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x0021) SCT Status supported.
                                        SCT Data Table supported.

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   095   095   050    Pre-fail  Always       -       25125190
  5 Reallocated_Sector_Ct   0x0033   100   100   003    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       202318729445423
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       14
171 Unknown_Attribute       0x0032   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      -       3
177 Wear_Leveling_Count     0x0000   000   000   000    Old_age   Offline      -       0
181 Program_Fail_Cnt_Total  0x0032   000   000   000    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   000   000   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   032   055   000    Old_age   Always       -       32 (Min/Max 17/55)
195 Hardware_ECC_Recovered  0x001c   120   120   000    Old_age   Offline      -       25125190
196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -       0
201 Soft_Read_Error_Rate    0x001c   120   120   000    Old_age   Offline      -       25125190
204 Soft_ECC_Correction     0x001c   120   120   000    Old_age   Offline      -       25125190
230 Head_Amplitude          0x0013   100   100   000    Pre-fail  Always       -       100
231 Temperature_Celsius     0x0013   100   100   010    Pre-fail  Always       -       0
233 Media_Wearout_Indicator 0x0000   000   000   000    Old_age   Offline      -       243
234 Unknown_Attribute       0x0032   000   000   000    Old_age   Always       -       214
241 Total_LBAs_Written      0x0032   000   000   000    Old_age   Always       -       214
242 Total_LBAs_Read         0x0032   000   000   000    Old_age   Always       -       130

SMART Error Log not supported
SMART Self-test Log not supported
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.

> 
> Meantime you could use "-v 9,msec24hour32 -v 231,SSD_Life_Left" options 
> to display the a mentioned attributes properly.

-v 9 works fine, -v 231 doesn't work:

smartctl -a -v 231,SSD_Life_Left /dev/sda
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-3.1.10-1.1-desktop] (SUSE RPM)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=======> INVALID ARGUMENT TO -v: 231,SSD_Life_Left
=======> VALID ARGUMENTS ARE:
        help
        N,raw8[:012345rvwz][,ATTR_NAME]
        N,raw16[:012345rvwz][,ATTR_NAME]
        N,raw48[:012345rvwz][,ATTR_NAME]
        N,hex48[:012345rvwz][,ATTR_NAME]
        N,raw64[:012345rvwz][,ATTR_NAME]
        N,hex64[:012345rvwz][,ATTR_NAME]
        N,raw16(raw16)[:012345rvwz][,ATTR_NAME]
        N,raw16(avg16)[:012345rvwz][,ATTR_NAME]
        N,raw24/raw24[:012345rvwz][,ATTR_NAME]
        N,raw24/raw32[:012345rvwz][,ATTR_NAME]
        N,sec2hour[:012345rvwz][,ATTR_NAME]
        N,min2hour[:012345rvwz][,ATTR_NAME]
        N,halfmin2hour[:012345rvwz][,ATTR_NAME]
        N,msec24hour32[:012345rvwz][,ATTR_NAME]
        N,tempminmax[:012345rvwz][,ATTR_NAME]
        N,temp10x[:012345rvwz][,ATTR_NAME]
        9,halfminutes
        9,minutes
        9,seconds
        9,temp
        192,emergencyretractcyclect
        193,loadunload
        194,10xCelsius
        194,unknown
        197,increasing
        198,offlinescanuncsectorct
        198,increasing
        200,writeerrorcount
        201,detectedtacount
        220,temp
<=======

Use smartctl -h to get a usage summary

Thanks,
Andreas

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

Gmane