File:  [NetBSD Developer Wiki] / wikisrc / tutorials / how_to_check_the_smart_status_of_your_harddisk.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (2 years, 2 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

#  atactl 

S.M.A.R.T. is a monitoring tool for hard disks. With NetBSD you can show the smart values using following command: 
    
    
    # atactl wd0 smart status
    SMART supported, SMART enabled
    id value thresh crit collect reliability description                    raw
      1 100    0     no  online  positive    Raw read error rate            2446
      4  98    0     no  online  positive    Start/stop count               2492
      5 253    9     yes online  positive    Reallocated sector count       0
      7 253   51     yes online  positive    Seek error rate                0
      8 253    0     no  offline positive    Seek time performance          0
      9  99    0     no  online  positive    Power-on hours count           1112403
     12  99    0     no  online  positive    Device power cycle count       1418
    194 161    0     no  online  positive    Temperature                    53 Lifetime max/min 0/0
    197 253    9     yes online  positive    Current pending sector         0
    198 253    9     yes offline positive    Offline uncorrectable          0
    199 100    0     no  online  positive    Ultra DMA CRC error count      0
    200 100   51     yes online  positive    Write error rate               0
    201 100   51     yes online  positive    Soft read error rate           0
    

#  smartctl 

Another utility to monitor hard disks is smartctl. This utility is part of the sysutils/smartmontools package. 
    
    
    # cd /usr/pkgsrc/sysutils/smartmontools/
    # make package
    

With smartctl you can show the smart values using following command: 
    
    
    # smartctl -s on /dev/sd0d
    smartctl version 5.36 [i386--netbsdelf] Copyright (C) 2002-6 Bruce Allen
    Home page is http://smartmontools.sourceforge.net/
    
    Informational Exceptions (SMART) enabled
    Temperature warning enabled
    
    # smartctl -a /dev/sd0d
    smartctl version 5.36 [i386--netbsdelf] Copyright (C) 2002-6 Bruce Allen
    Home page is http://smartmontools.sourceforge.net/
    
    Device: MAXTOR   ATLAS10K5_300WLS Version: HPM7
    Serial number: J8033RSK
    Device type: disk
    Transport protocol: Parallel SCSI (SPI-4)
    Local Time is: Sun Nov 18 19:39:10 2007 CET
    Device supports SMART and is Enabled
    Temperature Warning Enabled
    SMART Health Status: OK
    
    Current Drive Temperature:     47 C
    Manufactured in week 05 of year 
    Current start stop count:      1074003968 times
    Recommended maximum start stop count:  1124401151 times
    Elements in grown defect list: 0
    
    Error counter log:
               Errors Corrected by           Total   Correction     Gigabytes    Total
                   ECC          rereads/    errors   algorithm      processed    uncorrected
               fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
    read:          0        0         0         0          0          0.000           0
    write:         0        0         0         0          0          0.000           0
    
    Non-medium error count:     1115
    
    Last n error events log page
    No self-tests have been logged
    Long (extended) Self Test duration: 5760 seconds [96.0 minutes]
    

#  smartd 

Smartd is a SMART Disk Monitoring Daemon (part of the smartmontools). 

  
The data may be useful to detect defective or old hard drives. 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb