I remember trying 'smartmontools-5.37' a couple of years ago (snv_70)
and not having any success with it.

Following a recent report, from 'Tonmaus', of success, I decided to try again.
And yes, it does now seem to work, with 'smartmontools-5.39.1' and snv_132.

Maybe in the past, I did not try the correct combination of options.
Or maybe a recent putback has made the difference:

  6398342 "SATA Framework should support ATA PASS THROUGH command"
  http://bugs.opensolaris.org/view_bug.do?bug_id=6398342
  http://hg.genunix.org/onnv-gate.hg/rev/5e56af24ae09

The secret for success seems to be to use the option '-d sat,12' to specify
the "SCSI to ATA Translation (SAT) Layer (SATL)" and to use the 12 byte variant,
rather than the default 16 byte.

Also, be sure to specify the drives with '/dev/rdsk/..'.

Note that the pci-ide cmdk  driver is still not supported.
But when using SATA drives and the 'ahci' driver everything
seems to work fine, in my home system at least.

This is excellent news. I've used smartmontools on my Linux & Windows
systems for many year, and have found it most useful for spotting drives
that are about to fail.

I can now monitor the temperature of my SATA drives,
and note any increase in re-allocated sectors, etc.

Below is some sample output from 'smartctl' from my "home" system.

Bets Regards
Nigel Smith



# ./smartctl -d sat,12 -i /dev/rdsk/c4t5d0
smartctl 5.39.1 2010-01-28 r3054 [i386-pc-solaris2.11] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.10 family
Device Model:     ST3750840AS
Serial Number:    5QD2S1TJ
Firmware Version: 3.AAK
User Capacity:    750,156,374,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Mon Feb 22 20:17:32 2010 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled


# ./smartctl -d sat,12 -t short /dev/rdsk/c4t5d0
smartctl 5.39.1 2010-01-28 r3054 [i386-pc-solaris2.11] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line 
mode".
Drive command "Execute SMART Short self-test routine immediately in off-line 
mode" successful.
Testing has begun.
Please wait 1 minutes for test to complete.
Test will complete after Mon Feb 22 20:18:56 2010

Use smartctl -X to abort test.


# ./smartctl -d sat,12 -l selftest /dev/rdsk/c4t5d0
smartctl 5.39.1 2010-01-28 r3054 [i386-pc-solaris2.11] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
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%      7670         -


# ./smartctl -d sat,12 -A /dev/rdsk/c4t5d0
smartctl 5.39.1 2010-01-28 r3054 [i386-pc-solaris2.11] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
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   104   096   006    Pre-fail  Always       
-       7038433
  3 Spin_Up_Time            0x0003   093   093   000    Pre-fail  Always       
-       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       
-       35
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       
-       4
  7 Seek_Error_Rate         0x000f   085   060   030    Pre-fail  Always       
-       338522190
  9 Power_On_Hours          0x0032   092   092   000    Old_age   Always       
-       7670
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       
-       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       
-       35
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       
-       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       
-       0
190 Airflow_Temperature_Cel 0x0022   056   047   045    Old_age   Always       
-       44 (Lifetime Min/Max 18/44)
194 Temperature_Celsius     0x0022   044   053   000    Old_age   Always       
-       44 (0 18 0 0)
195 Hardware_ECC_Recovered  0x001a   062   057   000    Old_age   Always       
-       54582891
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 Data_Address_Mark_Errs  0x0032   100   253   000    Old_age   Always       
-       0
-- 
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
storage-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to