トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS


ソフトウェア:smartmontools 5.33

OS(作業日):VineLinux2.6 Kernel 2.2.17 (2004-11-01)


ソフトウエア解説

HDDのS.M.A.R.T.をコントロールするツール群です。


  • 用意したもの

http://smartmontools.sourceforge.net/

  • 必要なもの

特になし

  • インストール ()
# ./configure
# make
# make install
  • 使い方

# smartctl -i /dev/hda

smartctl version 5.33 [i686-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     IC35L060AVV207-0
Serial Number:    VNVB01G2R0RV5D
Firmware Version: V22OA63A
User Capacity:    61,492,838,400 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   6
ATA Standard is:  ATA/ATAPI-6 T13 1410D revision 3a
Local Time is:    Mon Oct 11 17:15:57 2004 JST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

# smartctl -H /dev/hda

smartctl version 5.33 [i686-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/  

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

# smartctl -A /dev/hda

smartctl version 5.33 [i686-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/ 

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED   WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   060    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   100   100   024    Pre-fail  Always       -       159 (Average 169)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       37
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   020    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   098   098   000    Old_age   Always       -       16317
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       37
192 Power-Off_Retract_Count 0x0032   100   100   050    Old_age   Always       -       715
193 Load_Cycle_Count        0x0012   100   100   050    Old_age   Always       -       715
194 Temperature_Celsius     0x0002   134   134   000    Old_age   Always       -       41 (Lifetime Min/Max 15/49)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
  • デーモンの設定

hdaを監視し問題発生時に指定のアドレスにメールを送信する

# cat /usr/local/etc/smrtd.conf

/dev/hda -a -m tnmori@asagiri.dyndns.biz,root@localhost

デーモンの起動

/usr/local/sbin/smartd

参考文献

[0] http://www.sgtpepper.net/hyspro/diary/20040309.html

[1] http://www.atmarkit.co.jp/flinux/rensai/linuxtips/521smartinfo.html

[2] http://smartmontools.sourceforge.net/

[3] http://sourceforge.net/project/showfiles.php?group_id=64297

Counter: 6643, today: 1, yesterday: 0