S.M.A.R.T.(スマート:Self-Monitoring, Analysis and Reporting Technology System)は、多くのハードディスクが持っている自己診断機能だ。S.M.A.R.T.から得られる情報を監視することによって、ハードディスクの故障を未然に防げる可能性もある。
Red Hat Linux 9やTurbolinux 8 Workstationでは、smartctlコマンドでS.M.A.R.T.の情報を表示させることができる。rootでログインして、調べたいデバイスを指定する。なお、オプション指定は必須だ。smartctlコマンドでよく使用するオプションは以下のとおりだ。
オプション
意味
-a
すべての情報を表示する
-i
ハードディスクのS.M.A.R.T.サポート状況を表示する
-l
エラーのログを表示する
-v
温度やシークエラーなどの状況を表示する
# smartctl -a /dev/hda
Device: ST380021A Supports ATA Version 5
Drive supports S.M.A.R.T. and is enabled
Check S.M.A.R.T. Passed.
General Smart Values:
Off-line data collection status: (0x82) Offline data collection
activity
completed without error
Self-test execution status: ( 36) The self-test routine was
interrupted
by the host with a hard or
soft reset
Total time to complete off-line
data collection: ( 422) Seconds
Offline data collection
Capabilities: (0x1b)SMART EXECUTE OFF-LINE
IMMEDIATE
Automatic timer ON/OFF
support
Suspend Offline Collection
upon new
command
Offline surface scan
supported
Self-test supported
Smart Capablilities: (0x0003) Saves SMART data before
entering
power-saving mode
Supports SMART auto save
timer
# rpm -ihv smartmontools-5.23-1.i386.rpm
Note that you can use a configuration file /etc/smartd.conf to control
the
startup behavior of the smartd daemon. See man 8 smartd for details.
smartmontools #############################################
Run "/etc/rc.d/init.d/smartd start" to start smartd service now.
smartd will continue to start up on system boot
を実行すると表示される(英文)。また、smartdデーモンの説明も、manコマンドで表示可能だ。ただし、smartmontoolsのsmartctlコマンドはRed Hat Linuxのsmartctlとは別の作者が開発したもので、使用可能なオプションが一部異なっているし、表示される情報の形式も違う。
特に、Red Hat LinuxやTurbolinuxのsmartctlコマンドの-vオプションは、smartmontoolsでは-Aオプションになるので注意が必要だ。Vine Linuxで-Aオプションを付けてsmartctlコマンドを実行すると、以下のような結果になる。行が折り返しているため、少々見にくい。
# smartctl -A /dev/hda
smartctl version 5.23 Copyright (C) 2002-3 Bruce Allen
Home page is http://smartmontools.sourceforge.net/