3,951 views
この記事は最終更新から 2619日 が経過しています。
smartctlコマンドでHDDをモニタリング
(1) 接続されているHDDを知る。
[root@ ~]# smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
[root@ ~]#
(2) SMART情報を見る。
[root@ ~]# smartctl -A /dev/sda smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-514.el7.x86_64] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 107 099 006 Pre-fail Always - 12831426 3 Spin_Up_Time 0x0003 100 089 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 096 096 020 Old_age Always - 4212 5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 5 7 Seek_Error_Rate 0x000f 084 060 030 Pre-fail Always - 289569152 9 Power_On_Hours 0x0032 082 082 000 Old_age Always - 16638 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 8 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 925 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0 187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0 188 Command_Timeout 0x0032 100 099 000 Old_age Always - 8 189 High_Fly_Writes 0x003a 001 001 000 Old_age Always - 702 190 Airflow_Temperature_Cel 0x0022 069 056 045 Old_age Always - 31 (Min/Max 23/32) 194 Temperature_Celsius 0x0022 031 044 000 Old_age Always - 31 (0 10 0 0 0) 195 Hardware_ECC_Recovered 0x001a 053 023 000 Old_age Always - 12831426 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 220013994721511 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 234881928 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 2137418225 [root@ ~]#
/dev/sdaの温度は31度だ。
その他の属性の意味は wiki で確認する。