LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 815|回复: 3

Linux 下的硬盘监测软件 smartmontools

[复制链接]
发表于 2005-1-7 15:09:36 | 显示全部楼层 |阅读模式
hua:/home/hua/kid# acs smartmontools
smartmontools - control and monitor storage systems using S.M.A.R.T.
hua:/home/hua/kid# acw smartmontools
Package: smartmontools
Priority: optional
Section: utils
Installed-Size: 560
Maintainer: Guido Guenther <agx@debian.org>
Architecture: i386
Version: 5.32-2
Depends: libc6 (>= 2.3.2.ds1-4)
Recommends: mailx | mailutils
Conflicts: smartsuite, ucsc-smartsuite
Filename: pool/main/s/smartmontools/smartmontools_5.32-2_i386.deb
Size: 221682
MD5sum: 33f28e8befbe00c750f3df1b779d2fa6
Description: control and monitor storage systems using S.M.A.R.T.
The smartmontools package contains two utility programs (smartctl and smartd)
to control and monitor storage systems using the Self-Monitoring, Analysis and
Reporting Technology System (S.M.A.R.T.) built into most modern ATA and SCSI
hard disks. It is derived from the smartsuite package, and includes support
for ATA/ATAPI-5 disks. It should run on any modern Linux system.
 楼主| 发表于 2005-1-7 15:13:11 | 显示全部楼层
下面是我机器上的监测结果


  1. hua:/home/hua/kid# smartctl -i /dev/hda1
  2. smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
  3. Home page is http://smartmontools.sourceforge.net/

  4. === START OF INFORMATION SECTION ===
  5. Device Model:     Maxtor 6Y080L0
  6. Serial Number:    Y2L93VTE
  7. Firmware Version: YAR41BW0
  8. Device is:        In smartctl database [for details use: -P show]
  9. ATA Version is:   7
  10. ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 0
  11. Local Time is:    Fri Jan  7 15:09:29 2005 CST
  12. SMART support is: Available - device has SMART capability.
  13. SMART support is: Enabled


  14. hua:/home/hua/kid# smartctl -A /dev/hda1
  15. smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
  16. Home page is http://smartmontools.sourceforge.net/

  17. === START OF READ SMART DATA SECTION ===
  18. SMART Attributes Data Structure revision number: 16
  19. Vendor Specific SMART Attributes with Thresholds:
  20. ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  21.   3 Spin_Up_Time            0x0027   252   252   063    Pre-fail  Always       -       113
  22.   4 Start_Stop_Count        0x0032   253   253   000    Old_age   Always       -       1
  23.   5 Reallocated_Sector_Ct   0x0033   253   253   063    Pre-fail  Always       -       0
  24.   6 Read_Channel_Margin     0x0001   253   253   100    Pre-fail  Offline      -       0
  25.   7 Seek_Error_Rate         0x000a   253   252   000    Old_age   Always       -       0
  26.   8 Seek_Time_Performance   0x0027   253   252   187    Pre-fail  Always       -       40534
  27.   9 Power_On_Minutes        0x0032   253   253   000    Old_age   Always       -       61h+14m
  28. 10 Spin_Retry_Count        0x002b   252   252   157    Pre-fail  Always       -       0
  29. 11 Calibration_Retry_Count 0x002b   252   252   223    Pre-fail  Always       -       0
  30. 12 Power_Cycle_Count       0x0032   253   253   000    Old_age   Always       -       37
  31. 192 Power-Off_Retract_Count 0x0032   253   253   000    Old_age   Always       -       0
  32. 193 Load_Cycle_Count        0x0032   253   253   000    Old_age   Always       -       0
  33. 194 Temperature_Celsius     0x0032   253   253   000    Old_age   Always       -       30
  34. 195 Hardware_ECC_Recovered  0x000a   253   252   000    Old_age   Always       -       675
  35. 196 Reallocated_Event_Count 0x0008   253   253   000    Old_age   Offline      -       0
  36. 197 Current_Pending_Sector  0x0008   253   253   000    Old_age   Offline      -       0
  37. 198 Offline_Uncorrectable   0x0008   253   253   000    Old_age   Offline      -       0
  38. 199 UDMA_CRC_Error_Count    0x0008   199   199   000    Old_age   Offline      -       0
  39. 200 Multi_Zone_Error_Rate   0x000a   253   252   000    Old_age   Always       -       0
  40. 201 Soft_Read_Error_Rate    0x000a   253   252   000    Old_age   Always       -       0
  41. 202 TA_Increase_Count       0x000a   253   252   000    Old_age   Always       -       0
  42. 203 Run_Out_Cancel          0x000b   253   252   180    Pre-fail  Always       -       6
  43. 204 Shock_Count_Write_Opern 0x000a   253   252   000    Old_age   Always       -       0
  44. 205 Shock_Rate_Write_Opern  0x000a   253   252   000    Old_age   Always       -       0
  45. 207 Spin_High_Current       0x002a   252   252   000    Old_age   Always       -       0
  46. 208 Spin_Buzz               0x002a   252   252   000    Old_age   Always       -       0
  47. 209 Offline_Seek_Performnce 0x0024   253   253   000    Old_age   Offline      -       0
  48. 99 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
  49. 100 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
  50. 101 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0

复制代码
 楼主| 发表于 2005-1-7 15:26:52 | 显示全部楼层
检测到的硬盘信息,其显示的信息根据你的硬盘厂商不同而不同,其中1-202行代表硬盘的不同物理性能,纵列代表硬盘的逻辑状态。

FLAG是标记,标准数值(VALUE)应当小于或等於关键值(THRESH)。WHEN_FAILED 代表错误信息,图3中的WHEN_FAILED纵行是空行,说明硬盘没有故障。如果WHEN_FAILED显示数字,表明硬盘磁道可能有比较大的坏道。

Smartctl有十几个参数,详细情况可以下面的命令查看:
smartctl --help  
发表于 2005-1-7 15:45:47 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表