CentOS下使用smartmontools查看硬盘使用时间
时间:2015-04-28 16:48 来源:linux.it.net.cn 作者:IT
首先安装:
[python] view plaincopy
01.[arm@acer ~]$ sudo yum -y install smartmontools
执行:
[python] view plaincopy
01.[arm@acer ~]$ sudo smartctl -A /dev/sda
可以看到如下结果:
01.smartctl 5.43 2012-06-30 r3573 [i686-linux-2.6.32-358.23.2.el6.i686] (local build)
02.Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
03.=== START OF READ SMART DATA SECTION ===
04.SMART Attributes Data Structure revision number: 16
05.Vendor Specific SMART Attributes with Thresholds:
06.ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
07. 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
08. 3 Spin_Up_Time 0x0027 186 166 021 Pre-fail Always - 1666
09. 4 Start_Stop_Count 0x0032 092 092 000 Old_age Always - 8708
10. 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
11. 7 Seek_Error_Rate 0x002e 100 253 000 Old_age Always - 0
12. 9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 6137
13. 10 Spin_Retry_Count 0x0032 100 100 051 Old_age Always - 0
14. 11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
15. 12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 2652
16.191 G-Sense_Error_Rate 0x0032 001 001 000 Old_age Always - 958
17.192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 111
18.193 Load_Cycle_Count 0x0032 099 099 000 Old_age Always - 304147
19.194 Temperature_Celsius 0x0022 106 095 000 Old_age Always - 41
20.196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
21.197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
22.198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0
23.199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
24.200 Multi_Zone_Error_Rate 0x0008 200 200 051
(责任编辑:IT)
首先安装: [python] view plaincopy 01.[arm@acer ~]$ sudo yum -y install smartmontools 执行: [python] view plaincopy 01.[arm@acer ~]$ sudo smartctl -A /dev/sda 可以看到如下结果: 01.smartctl 5.43 2012-06-30 r3573 [i686-linux-2.6.32-358.23.2.el6.i686] (local build) 02.Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net 03.=== START OF READ SMART DATA SECTION === 04.SMART Attributes Data Structure revision number: 16 05.Vendor Specific SMART Attributes with Thresholds: 06.ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 07. 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 08. 3 Spin_Up_Time 0x0027 186 166 021 Pre-fail Always - 1666 09. 4 Start_Stop_Count 0x0032 092 092 000 Old_age Always - 8708 10. 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 11. 7 Seek_Error_Rate 0x002e 100 253 000 Old_age Always - 0 12. 9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 6137 13. 10 Spin_Retry_Count 0x0032 100 100 051 Old_age Always - 0 14. 11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0 15. 12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 2652 16.191 G-Sense_Error_Rate 0x0032 001 001 000 Old_age Always - 958 17.192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 111 18.193 Load_Cycle_Count 0x0032 099 099 000 Old_age Always - 304147 19.194 Temperature_Celsius 0x0022 106 095 000 Old_age Always - 41 20.196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 21.197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0 22.198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0 23.199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 24.200 Multi_Zone_Error_Rate 0x0008 200 200 051 (责任编辑:IT) |