smartctl でドライブ情報の取得2012年02月05日 12時55分55秒

Self-Monitoring, Analysis and Reporting Technology System、通称 S.M.A.R.T の使い方。

まずはディスクの情報を取得。


# smartctl -i /dev/ad4
smartctl 5.39 2009-12-09 r2995 [FreeBSD 8.3-RELEASE i386] (local build)
Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:     TOSHIBA MK1637GSX
Serial Number:    57LJF0CMS
Firmware Version: DL032C
User Capacity:    160,041,885,696 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Thu Jul 19 03:49:40 2012 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled


-a で全ての S.M.A.R.T. の情報が得られる。


# smartctl -a /dev/ad4
smartctl 5.39 2009-12-09 r2995 [FreeBSD 8.3-RELEASE i386] (local build)
Copyright (C) 2002-9 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:     TOSHIBA MK1637GSX
Serial Number:    57LJF0CMS
Firmware Version: DL032C
User Capacity:    160,041,885,696 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Thu Jul 19 03:57:22 2012 EDT
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
See vendor-specific Attribute list for marginal Attributes.

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:                 ( 120) seconds.
Offline data collection
capabilities:                    (0x51) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.

これ以降も続く。