Christian-

Thanks for the quick turnaround on this!

Success!

FYI- The 3.5 in the version number indicates that it is a 3.5 inch form factor (rather than 2.5 in, etc...)

[root@qa01 smartmontools]# ./smartctl --all -B drivedb.h /dev/sdb
smartctl 5.40 2010-08-24 r3141 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     SandForce Driven SSDs
Device Model:     OCZ-VERTEX2 3.5
Serial Number:    OCZ-<removed>
Firmware Version: 1.11
User Capacity:    240,057,409,536 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 6
Local Time is:    Thu Aug 26 08:24:34 2010 PDT
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:  (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
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: (   0) 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:       (0x003d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control 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   118   110   050    Pre-fail  Always       -       0/196456147
  5 Retired_Block_Count     0x0033   094   094   003    Pre-fail  Always       -       2304
  9 Power_On_Hours_and_Msec 0x0032   100   100   000    Old_age   Always       -       19h+26m+44.550s
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       3
171 Program_Fail_Count      0x0000   000   000   000    Old_age   Offline      -       0
172 Erase_Fail_Count        0x0000   000   000   000    Old_age   Offline      -       0
174 Unexpect_Power_Loss_Ct  0x0030   000   000   000    Old_age   Offline      -       1
177 Wear_Range_Delta        0x0000   000   000   ---    Old_age   Offline      -       0
181 Program_Fail_Count      0x0000   000   000   000    Old_age   Offline      -       0
182 Erase_Fail_Count        0x0000   000   000   000    Old_age   Offline      -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   000   000   000    Old_age   Always       -       0
195 ECC_Uncorr_Error_Count  0x001c   118   110   000    Old_age   Offline      -       0/196456147
196 Reallocated_Event_Count 0x0033   100   100   003    Pre-fail  Always       -       0
231 SSD_Life_Left           0x0013   090   090   010    Pre-fail  Always       -       1
233 SandForce_Internal      0x0000   000   000   000    Old_age   Offline      -       128
234 SandForce_Internal      0x0000   000   000   000    Old_age   Offline      -       640
241 Lifetime_Writes_GiB     0x0032   000   000   000    Old_age   Always       -       640
242 Lifetime_Reads_GiB      0x0032   000   000   000    Old_age   Always       -       384

Error SMART Error Log Read failed: Input/output error
Smartctl: SMART Error Log Read Failed
Error SMART Error Self-Test Log Read failed: Input/output error
Smartctl: SMART Self Test Log Read Failed
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.

[root@qa01 smartmontools]# 


-Eric

On Thu, Aug 26, 2010 at 4:45 AM, Christian Franke <Christian.Franke@t-online.de> wrote:
Eric Rosenberry wrote:
> I just got some OCZ Vertex 2 SSD&#39;s (240 gig) today and I went
> looking for a way to monitor how quickly I will exhaust the write
> lifetime of the drive under our workload.
> I tried running the version of smartctl that is available by default
> in CentOS 5.5, but many of the attributes do not make sense (see
> below).
> I then downloaded 5.39.1 along with the latest drivedb.h (from SVN)
> but I still am having issues making heads or tails of many of the
> attributes (see way below).
>

Raw values of attributes 1, 9 and 195 use 56-bit instead of 48-bit and
provide two values (errors/total, hours+milliseconds).

> 1 Raw_Read_Error_Rate   ...162733300
> 5 Reallocated_Sector_Ct   ...2304
> 9 Power_On_Hours          ...17815524343817
>

New print formats have been added to current SVN as smartctl 5.39.1 is
not able to print these properly. The drivedb.h entry from the 5.39
branch uses hex48 as a workaround.


> 177 ... <== Data Page      |  WARNING: PREVIOUS ATTRIBUTE HAS TWO
> 181 ... <== Threshold Page |  INCONSISTENT IDENTITIES IN THE DATA
>

With current SVN, the above messages will now longer appear. The root of
the problem is a missing threshold for attribute 177. According to
SandForce this will be fixed in future firmware versions.

I would recommend to update to current SVN.


> Device Model:     OCZ-VERTEX2 3.5
>

This doesn't match the regex in drivedb.h. Older drives use
"OCZ-VERTEX2", OCZ apparently started to append version numbers.

Could you please change the drivedb.h (trunk or branch) entry as follows
and test it:

--- drivedb.h   (revision 3141)
+++ drivedb.h   (working copy)
@@ -90,7 +90,7 @@
  },
  { "SandForce Driven SSDs",
    "SandForce 1st Ed\\.|" // Demo Drive, ...
-    "OCZ[ -](AGILITY2|VERTEX2|VERTEX-LE)", // ...
+    "OCZ[ -](AGILITY2|VERTEX2|VERTEX-LE)( .*)?", // ...
    "", "",
    "-v 1,raw24/raw32,Raw_Read_Error_Rate "
    "-v 5,raw48,Retired_Block_Count "

If this works, I will fix it in SVN on trunk and branch soon.

Thanks,
Christian