linux:smartctl

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
linux:smartctl [2024/10/01 06:36] – 削除 - 外部編集 (Unknown date) 非ログインユーザーlinux:smartctl [2024/10/01 06:36] (現在) – ↷ linux:s.m.a.r.t から linux:smartctl へページを名称変更しました。 ともやん
行 1: 行 1:
 +====== Linux でハードディスクの S.M.A.R.T 情報の取得 ======
 +<html>
 +<!-- a8net -->
 +<a href="https://px.a8.net/svt/ejp?a8mat=3YYGEY+FAPZCI+2OYK+5ZU29" rel="nofollow">
 +<img border="0" width="120" height="60" alt="" src="https://www28.a8.net/svt/bgt?aid=240113050925&wid=001&eno=01&mid=s00000012566001007000&mc=1"></a>
 +<img border="0" width="1" height="1" src="https://www12.a8.net/0.gif?a8mat=3YYGEY+FAPZCI+2OYK+5ZU29" alt="">
 +</html>\\
 +<html>
 +<!-- a8net -->
 +<a href="https://px.a8.net/svt/ejp?a8mat=3YYGEY+FAPZCI+2OYK+5YJRM" rel="nofollow">パソコン・スマホ・タブレット設定・IoT家電のお困りごとを解決!全国対応 G・O・G</a>
 +<img border="0" width="1" height="1" src="https://www13.a8.net/0.gif?a8mat=3YYGEY+FAPZCI+2OYK+5YJRM" alt="">
 +</html>
 +
 +===== S.M.A.R.Tとは... =====
 +S.M.A.R.Tは「Self Monitoring, Analysis, and Reporting Technology」の略で、HDDが自身の障害を自己診断して、ユーザに報告するインテリジェントな機能である。\\
 +
 +===== smartmontoolsインストール =====
 +smartctlを利用するためには、smartmontoolsパッケージをインストールする。\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> dnf install smartmontools
 +</pre></html></WRAP>
 +<WRAP color_result_long><html><pre>
 +メタデータの期限切れの最終確認: 2:09:01 時間前の 2022年09月23日 12時04分15秒 に実施しました。
 +依存関係が解決しました。
 +===============================================================================================================
 + パッケージ                         アーキテクチャー    バージョン                  リポジトリー         サイズ
 +===============================================================================================================
 +インストール:
 + <b class=GRN>smartmontools</b>                      x86_64              1:7.3-2.fc36                updates              595 k
 +依存関係のインストール:
 + <b class=GRN>smartmontools-selinux</b>              noarch              1:7.3-2.fc36                updates               23 k
 +
 +トランザクションの概要
 +===============================================================================================================
 +インストール  2 パッケージ
 +
 +ダウンロードサイズの合計: 618 k
 +インストール後のサイズ: 2.0 M
 +これでよろしいですか? [y/N]: y
 +パッケージのダウンロード:
 +(1/2): smartmontools-selinux-7.3-2.fc36.noarch.rpm                              99 kB/s |  23 kB     00:00    
 +(2/2): smartmontools-7.3-2.fc36.x86_64.rpm                                     1.1 MB/s | 595 kB     00:00    
 +---------------------------------------------------------------------------------------------------------------
 +合計                                                                           476 kB/s | 618 kB     00:01     
 +トランザクションの確認を実行中
 +トランザクションの確認に成功しました。
 +トランザクションのテストを実行中
 +トランザクションのテストに成功しました。
 +トランザクションを実行中
 +  準備             :                                                                                       1/
 +  scriptletの実行中: smartmontools-selinux-1:7.3-2.fc36.noarch                                             1/
 +  インストール中   : smartmontools-selinux-1:7.3-2.fc36.noarch                                             1/
 +  scriptletの実行中: smartmontools-selinux-1:7.3-2.fc36.noarch                                             1/
 +libsemanage.semanage_direct_install_info: Overriding smartmon module at lower priority 100 with module at priority 200.
 +Failed to set unit properties on smartd.service: Unit smartd.service not found.
 +
 +  インストール中   : smartmontools-1:7.3-2.fc36.x86_64                                                     2/
 +  scriptletの実行中: smartmontools-1:7.3-2.fc36.x86_64                                                     2/
 +Created symlink /etc/systemd/system/multi-user.target.wants/smartd.service → /usr/lib/systemd/system/smartd.service.
 +
 +  検証             : smartmontools-1:7.3-2.fc36.x86_64                                                     1/
 +  検証             : smartmontools-selinux-1:7.3-2.fc36.noarch                                             2/
 +
 +インストール済み:
 +  smartmontools-1:7.3-2.fc36.x86_64                  smartmontools-selinux-1:7.3-2.fc36.noarch                 
 +
 +完了しました!
 +</pre></html></WRAP>
 +</WRAP>
 +
 +===== S.M.A.R.T 情報の取得 =====
 +S.M.A.R.T 情報を取得するには、以下のコマンドを実行する。\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a /dev/sda
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +</pre></html></WRAP>
 +</WRAP>
 +
 +SATAのRAIDカード経由の場合は、-d ata オプションを追加する。
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d ata /dev/sda
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +</pre></html></WRAP>
 +</WRAP>
 +HighPoint RocketRAID カード経由の場合は、-d hpt,L/M または -d hpt,L/M/N オプションを追加する。\\
 + L = コントローラID(1~4)\\
 + M = チャネル番号(1~8)\\
 + N = PMPort番号(1~5)\\
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/1/1 /dev/sdb
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +</pre></html></WRAP>
 +</WRAP>
 +
 +このとき指定するデバイス名(/dev/sdb)は、RAIDカード配下のものであればどれでもよい。\\
 +デバイス名を調べるには、以下のコマンドを実行する。
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> parted -l
 +</pre></html></WRAP>
 +<WRAP color_result_long><html><pre>
 +モデル: HPT DISK_2_0 (scsi)
 +ディスク /dev/sdb: 128GB
 +セクタサイズ (論理/物理): 512B/512B
 +パーティションテーブル: msdos
 +
 +番号  開始    終了   サイズ  タイプ   ファイルシステム  フラグ
 +    32.3kB  210MB  210MB   primary  ext3              boot
 +    210MB   128GB  128GB   primary                    lvm
 +
 +
 +モデル: HPT DISK_2_1 (scsi)
 +ディスク /dev/sdc: 2872GB
 +セクタサイズ (論理/物理): 512B/512B
 +パーティションテーブル: gpt
 +
 +番号  開始    終了    サイズ  ファイルシステム  名前  フラグ
 +    17.4kB  2872GB  2872GB                          msftres
 +
 +
 +モデル: Linux device-mapper (linear) (dm)
 +ディスク /dev/mapper/vg_monster-lv_swap: 4295MB
 +セクタサイズ (論理/物理): 512B/512B
 +パーティションテーブル: loop
 +
 +番号  開始   終了    サイズ  ファイルシステム  フラグ
 +    0.00B  4295MB  4295MB  linux-swap(v1)
 +
 +
 +モデル: Linux device-mapper (linear) (dm)
 +ディスク /dev/mapper/vg_monster-lv_root: 2996GB
 +セクタサイズ (論理/物理): 512B/512B
 +パーティションテーブル: loop
 +
 +番号  開始   終了    サイズ  ファイルシステム  フラグ
 +    0.00B  2996GB  2996GB  ext4
 +</pre></html></WRAP>
 +</WRAP>
 +/dev/sdb または /dev/sdc が HighPoint RocketRAID のアレイであることが分かる。\\
 +
 +===== RAID 0,1,5 アレイを構成するディスクの S.M.A.R.T 情報の取得 =====
 +1つのコントローラに複数のチャネルが存在しハードウェアRAIDにて RAID0,1,5 などのアレイを構成している場合は、\\
 +Linux上からは1つのアレイを1つデバイスとして認識している。\\
 +\\
 +例えば、物理ディスク1~4を利用してRAID5のアレイを2つ構成している場合、
 +<WRAP color_code><code>
 +RAIDカードのチャネル  物理ディスク        アレイ        Linuxデバイス
 +hpt チャネル1  ---->  Disk1    --+
 +hpt チャネル2  ---->  Disk2      |  -->  RAID5_0  -->  /dev/sdb
 +hpt チャネル3  ---->  Disk3      |  -->  RAID5_1  -->  /dev/sdc
 +hpt チャネル4  ---->  Disk4    --+
 +</code></WRAP>
 +
 +コントローラID,チャネル番号,PMPort番号を指定することで、Linuxデバイス(/dev/sdb または /dev/sdc)を通して、\\
 +物理ディスクの S.M.A.R.T 情報を取得できる。\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/1/1 /dev/sdb<b class=DiYE> --> Disk1の情報を表示</b>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/2/1 /dev/sdb<b class=DiYE> --> Disk2の情報を表示</b>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/3/1 /dev/sdb<b class=DiYE> --> Disk3の情報を表示</b>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/4/1 /dev/sdb<b class=DiYE> --> Disk4の情報を表示</b>
 +</pre></html></WRAP>
 +</WRAP>
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/1/1 /dev/sdc<b class=DiYE> --> Disk1の情報を表示</b>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/2/1 /dev/sdc<b class=DiYE> --> Disk2の情報を表示</b>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/3/1 /dev/sdc<b class=DiYE> --> Disk3の情報を表示</b>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a -d hpt,1/4/1 /dev/sdc<b class=DiYE> --> Disk4の情報を表示</b>
 +</pre></html></WRAP>
 +</WRAP>
 +
 +===== 致命的なエラーを見極める =====
 +以下のサイトの文献が役に立つ。\\
 +<html>
 +<!-- a8net -->
 +<a href="https://px.a8.net/svt/ejp?a8mat=3YYGEY+FAPZCI+2OYK+5YJRM" rel="nofollow">パソコン・スマホ・タブレット設定・IoT家電のお困りごとを解決!全国対応 G・O・G</a>
 +<img border="0" width="1" height="1" src="https://www13.a8.net/0.gif?a8mat=3YYGEY+FAPZCI+2OYK+5YJRM" alt="">
 +</html>\\
 +[[http://smart.jinaka.com/information_list.html|smartmontoolsで取得できるSMART情報一覧]]\\
 +[[https://ja.wikipedia.org/wiki/Self-Monitoring,_Analysis_and_Reporting_Technology|Self-Monitoring, Analysis and Reporting Technology - Wikipedia]]\\
 +
 +==== Vendor Specific SMART Attributes with Thresholds ====
 +注目すべき情報は、
 +^ ID# ^ ATTRIBUTE_NAME ^ 意味 ^
 +|  5|Reallocated_Sector_Ct|ハードディスクが読み・書き・検証エラーを見つけ、代替させた不良セクタ数。通常、代替セクタが発生しても気が付かないが、より多くのセクタが代替されるほど、ディスクの読み書きに影響を及ぼす。|
 +|196|Reallocated_Event_Count|不良セクタから予備領域にデータを移した回数。データ移行に失敗した数も成功した数と同様にカウントアップされる。|
 +|197|Current_Pending_Sector|不安定なセクタ数。代替セクタに再配置されるのを待っているセクタの総数で、正しく読み取りできたばあいは除かれる。但し、エラーが発生する場合は代替セクタに移されて、不良セクタはマークされる。この値がゼロで残るならば、対応する領域の質が低いことを示す。|
 +|198|Offline_Uncorrectable|修復できないセクタの読み書き時のエラーの量を示す。この値が増えることは、ディスクの欠陥・機械的なサブシステムに問題があることを示す。|
 +<WRAP color_code><code>
 +  5 Reallocated_Sector_Ct   0x0033   248   248   063    Pre-fail  Always             55
 +</code></WRAP>
 +<WRAP color_code><code>
 +196 Reallocated_Event_Count 0x0008   253   253   000    Old_age   Offline      -       0
 +197 Current_Pending_Sector  0x0008   253   253   000    Old_age   Offline      -       3
 +198 Offline_Uncorrectable   0x0008   253   253   000    Old_age   Offline      -       0
 +</code></WRAP>
 +
 +<WRAP color_code><code>
 +Vendor Specific SMART Attributes with Thresholds:
 +ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
 +  3 Spin_Up_Time            0x0027   178   177   063    Pre-fail  Always             15807
 +  4 Start_Stop_Count        0x0032   253   253   000    Old_age   Always             701
 +  5 Reallocated_Sector_Ct   0x0033   248   248   063    Pre-fail  Always             55
 +  6 Read_Channel_Margin     0x0001   253   253   100    Pre-fail  Offline      -       0
 +  7 Seek_Error_Rate         0x000a   253   252   000    Old_age   Always             0
 +  8 Seek_Time_Performance   0x0027   253   249   187    Pre-fail  Always             55538
 +  9 Power_On_Minutes        0x0032   245   245   000    Old_age   Always             659h+56m
 + 10 Spin_Retry_Count        0x002b   253   230   157    Pre-fail  Always             0
 + 11 Calibration_Retry_Count 0x002b   253   252   223    Pre-fail  Always             0
 + 12 Power_Cycle_Count       0x0032   252   252   000    Old_age   Always             713
 +192 Power-Off_Retract_Count 0x0032   253   253   000    Old_age   Always             0
 +193 Load_Cycle_Count        0x0032   253   253   000    Old_age   Always             0
 +194 Temperature_Celsius     0x0032   253   253   000    Old_age   Always             28
 +195 Hardware_ECC_Recovered  0x000a   253   252   000    Old_age   Always             2443
 +196 Reallocated_Event_Count 0x0008   253   253   000    Old_age   Offline      -       0
 +197 Current_Pending_Sector  0x0008   253   253   000    Old_age   Offline      -       3
 +198 Offline_Uncorrectable   0x0008   253   253   000    Old_age   Offline      -       0
 +199 UDMA_CRC_Error_Count    0x0008   199   199   000    Old_age   Offline      -       0
 +200 Multi_Zone_Error_Rate   0x000a   253   252   000    Old_age   Always             0
 +201 Soft_Read_Error_Rate    0x000a   253   252   000    Old_age   Always             1
 +202 TA_Increase_Count       0x000a   253   245   000    Old_age   Always             0
 +203 Run_Out_Cancel          0x000b   253   252   180    Pre-fail  Always             0
 +204 Shock_Count_Write_Opern 0x000a   253   252   000    Old_age   Always             0
 +205 Shock_Rate_Write_Opern  0x000a   253   252   000    Old_age   Always             0
 +207 Spin_High_Current       0x002a   253   234   000    Old_age   Always             0
 +208 Spin_Buzz               0x002a   253   249   000    Old_age   Always             0
 +209 Offline_Seek_Performnce 0x0024   190   190   000    Old_age   Offline      -       0
 + 99 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +100 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +101 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +</code></WRAP>
 +
 +===== S.M.A.R.T 情報の出力例 =====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -d ata -a /dev/sda
 +</pre></html></WRAP>
 +<WRAP color_result_long><html><pre>
 +smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
 +Home page is http://smartmontools.sourceforge.net/
 +
 +=== START OF INFORMATION SECTION ===
 +Model Family:     Maxtor MaXLine Plus II
 +Device Model:     Maxtor 7Y250M0
 +Serial Number:    Y69A7TBE
 +Firmware Version: YAR51HW0
 +User Capacity:    251,000,193,024 bytes
 +Device is:        In smartctl database [for details use: -P show]
 +ATA Version is:   7
 +ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 0
 +Local Time is:    Wed Nov 12 21:51:41 2008 JST
 +SMART support is: Available - device has SMART capability.
 +SMART support is: Enabled
 +
 +=== START OF READ SMART DATA SECTION ===
 +SMART overall-health self-assessment test result: PASSED
 +
 +General SMART Values:
 +Offline data collection status:  (0x80) Offline data collection activity
 + was never started.
 + Auto Offline Data Collection: Enabled.
 +Self-test execution status:      (   0) The previous self-test routine completed
 + without error or no self-test has ever 
 + been run.
 +Total time to complete Offline 
 +data collection: ( 363) seconds.
 +Offline data collection
 +capabilities: (0x5b) SMART execute Offline immediate.
 + Auto Offline data collection on/off support.
 + Suspend Offline collection upon new
 + command.
 + Offline surface scan supported.
 + Self-test supported.
 + No Conveyance Self-test supported.
 + Selective Self-test supported.
 +SMART capabilities:            (0x0003) Saves SMART data before entering
 + power-saving mode.
 + Supports SMART auto save timer.
 +Error logging capability:        (0x01) Error logging supported.
 + No General Purpose Logging support.
 +Short self-test routine 
 +recommended polling time: (   2) minutes.
 +Extended self-test routine
 +recommended polling time: ( 106) minutes.
 +
 +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
 +  3 Spin_Up_Time            0x0027   180   178   063    Pre-fail  Always             21971
 +  4 Start_Stop_Count        0x0032   253   253   000    Old_age   Always             623
 +  5 Reallocated_Sector_Ct   0x0033   253   253   063    Pre-fail  Always             0
 +  6 Read_Channel_Margin     0x0001   253   253   100    Pre-fail  Offline      -       0
 +  7 Seek_Error_Rate         0x000a   253   252   000    Old_age   Always             0
 +  8 Seek_Time_Performance   0x0027   251   247   187    Pre-fail  Always             39065
 +  9 Power_On_Minutes        0x0032   247   247   000    Old_age   Always             229h+31m
 + 10 Spin_Retry_Count        0x002b   253   252   157    Pre-fail  Always             0
 + 11 Calibration_Retry_Count 0x002b   253   252   223    Pre-fail  Always             0
 + 12 Power_Cycle_Count       0x0032   252   252   000    Old_age   Always             675
 +192 Power-Off_Retract_Count 0x0032   253   253   000    Old_age   Always             0
 +193 Load_Cycle_Count        0x0032   253   253   000    Old_age   Always             0
 +194 Temperature_Celsius     0x0032   253   253   000    Old_age   Always             31
 +195 Hardware_ECC_Recovered  0x000a   253   252   000    Old_age   Always             1014
 +196 Reallocated_Event_Count 0x0008   253   253   000    Old_age   Offline      -       0
 +197 Current_Pending_Sector  0x0008   253   253   000    Old_age   Offline      -       0
 +198 Offline_Uncorrectable   0x0008   253   253   000    Old_age   Offline      -       0
 +199 UDMA_CRC_Error_Count    0x0008   177   125   000    Old_age   Offline      -       74
 +200 Multi_Zone_Error_Rate   0x000a   253   252   000    Old_age   Always             0
 +201 Soft_Read_Error_Rate    0x000a   253   252   000    Old_age   Always             0
 +202 TA_Increase_Count       0x000a   253   252   000    Old_age   Always             0
 +203 Run_Out_Cancel          0x000b   253   252   180    Pre-fail  Always             0
 +204 Shock_Count_Write_Opern 0x000a   253   252   000    Old_age   Always             0
 +205 Shock_Rate_Write_Opern  0x000a   253   252   000    Old_age   Always             0
 +207 Spin_High_Current       0x002a   253   252   000    Old_age   Always             0
 +208 Spin_Buzz               0x002a   253   252   000    Old_age   Always             0
 +209 Offline_Seek_Performnce 0x0024   147   147   000    Old_age   Offline      -       0
 + 99 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +100 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +101 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +  
 +SMART Error Log Version: 1
 +Warning: ATA error count 77 inconsistent with error log pointer 5
 +
 +ATA Error Count: 77 (device log contains only the most recent five errors)
 + CR = Command Register [HEX]
 + FR = Features Register [HEX]
 + SC = Sector Count Register [HEX]
 + SN = Sector Number Register [HEX]
 + CL = Cylinder Low Register [HEX]
 + CH = Cylinder High Register [HEX]
 + DH = Device/Head Register [HEX]
 + DC = Device Command Register [HEX]
 + ER = Error register [HEX]
 + ST = Status register [HEX]
 +Powered_Up_Time is measured from power on, and printed as
 +DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
 +SS=sec, and sss=millisec. It "wraps" after 49.710 days.
 +
 +Error 77 occurred at disk power-on lifetime: 2026 hours (84 days + 10 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  84 51 00 52 cf fa e2  Error: ICRC, ABRT at LBA = 0x02facf52 = 49991506
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  c8 00 58 52 cf fa e2 00      05:11:43.648  READ DMA
 +  c8 00 40 92 ce fa e2 00      05:11:43.632  READ DMA
 +  c8 00 40 4d a3 0e e0 00      05:11:43.632  READ DMA
 +  c8 00 08 3a 1b f9 e2 00      05:11:43.632  READ DMA
 +  c8 00 08 1a 1b f9 e2 00      05:11:43.616  READ DMA
 +
 +Error 76 occurred at disk power-on lifetime: 439 hours (18 days + 7 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  84 51 00 e2 1f 39 ef  Error: ICRC, ABRT at LBA = 0x0f391fe2 = 255401954
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  c8 00 b0 e2 1f 39 ef 00      01:31:39.248  READ DMA
 +  25 00 50 92 1e 39 e0 00      01:31:39.248  READ DMA EXT
 +  25 00 30 92 16 39 e0 00      01:31:39.200  READ DMA EXT
 +  c8 00 80 d2 0f 39 ef 00      01:31:39.184  READ DMA
 +  25 00 18 92 0e 39 e0 00      01:31:39.184  READ DMA EXT
 +
 +Error 75 occurred at disk power-on lifetime: 439 hours (18 days + 7 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  84 51 d8 62 1d 0d e0  Error: ICRC, ABRT 216 sectors at LBA = 0x000d1d62 = 859490
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  35 00 18 22 1d 0d e0 00      01:30:07.424  WRITE DMA EXT
 +  ca 00 28 f2 1c 0d ed 00      01:30:07.424  WRITE DMA
 +  ca 00 08 b2 90 ff ec 00      01:30:07.424  WRITE DMA
 +  ca 00 18 6a e0 fe ec 00      01:30:07.424  WRITE DMA
 +  ca 00 08 e2 5c fe ec 00      01:30:07.424  WRITE DMA
 +
 +Error 74 occurred at disk power-on lifetime: 438 hours (18 days + 6 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  84 51 08 1a 2f f5 e2  Error: ICRC, ABRT at LBA = 0x02f52f1a = 49622810
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  ca 00 08 1a 2f f5 e2 00      00:13:22.000  WRITE DMA
 +  ca 00 08 0a 2f f5 e2 00      00:13:22.000  WRITE DMA
 +  ca 00 10 d2 2e f5 e2 00      00:13:22.000  WRITE DMA
 +  ca 00 18 a2 2e f5 e2 00      00:13:22.000  WRITE DMA
 +  ca 00 10 8a 2e f5 e2 00      00:13:22.000  WRITE DMA
 +
 +Error 73 occurred at disk power-on lifetime: 438 hours (18 days + 6 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  84 51 00 ca fb 27 ee  Error: ICRC, ABRT at LBA = 0x0e27fbca = 237501386
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  c8 00 18 ca fb 27 ee 00      00:09:08.752  READ DMA
 +  c8 00 08 b2 fb 27 ee 00      00:09:08.752  READ DMA
 +  c8 00 48 62 fb 27 ee 00      00:09:08.752  READ DMA
 +  c8 00 30 22 fb 27 ee 00      00:09:08.752  READ DMA
 +  c8 00 18 fa fa 27 ee 00      00:09:08.752  READ DMA
 +
 +SMART Self-test log structure revision number 1
 +No self-tests have been logged.  [To run self-tests, use: smartctl -t]
 +
 +
 +SMART Selective self-test log data structure revision number 1
 + SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
 +    1        0        0  Not_testing
 +    2        0        0  Not_testing
 +    3        0        0  Not_testing
 +    4        0        0  Not_testing
 +    5        0        0  Not_testing
 +Selective self-test flags (0x0):
 +  After scanning selected spans, do NOT read-scan remainder of disk.
 +If Selective self-test is pending on power-up, resume after 0 minute delay.
 +</pre></html></WRAP>
 +</WRAP>
 +
 +===== クラッシュした HDD の出力例😭 =====
 +
 +==== すべての情報 ====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -a /dev/sdc
 +</pre></html></WRAP>
 +<WRAP color_result_long><html><pre>
 +smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
 +Home page is http://smartmontools.sourceforge.net/
 +
 +=== START OF INFORMATION SECTION ===
 +Model Family:     Maxtor MaXLine Plus II
 +Device Model:     Maxtor 7Y250P0
 +Serial Number:    Y663ALAE
 +Firmware Version: YAR41BW0
 +User Capacity:    251,000,193,024 bytes
 +Device is:        In smartctl database [for details use: -P show]
 +ATA Version is:   7
 +ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 0
 +Local Time is:    Tue Jan  6 23:10:01 2009 JST
 +SMART support is: Available - device has SMART capability.
 +SMART support is: Enabled
 +
 +=== START OF READ SMART DATA SECTION ===
 +SMART overall-health self-assessment test result: PASSED
 +
 +General SMART Values:
 +Offline data collection status:  (0x85) Offline data collection activity
 + was aborted by an interrupting command from host.
 + Auto Offline Data Collection: Enabled.
 +Self-test execution status:      (   0) The previous self-test routine completed
 + without error or no self-test has ever 
 + been run.
 +Total time to complete Offline 
 +data collection: ( 363) seconds.
 +Offline data collection
 +capabilities: (0x5b) SMART execute Offline immediate.
 + Auto Offline data collection on/off support.
 + Suspend Offline collection upon new
 + command.
 + Offline surface scan supported.
 + Self-test supported.
 + No Conveyance Self-test supported.
 + Selective Self-test supported.
 +SMART capabilities:            (0x0003) Saves SMART data before entering
 + power-saving mode.
 + Supports SMART auto save timer.
 +Error logging capability:        (0x01) Error logging supported.
 + No General Purpose Logging support.
 +Short self-test routine 
 +recommended polling time: (   2) minutes.
 +Extended self-test routine
 +recommended polling time: ( 107) minutes.
 +
 +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
 +  3 Spin_Up_Time            0x0027   178   177   063    Pre-fail  Always             15807
 +  4 Start_Stop_Count        0x0032   253   253   000    Old_age   Always             701
 +  5 Reallocated_Sector_Ct   0x0033   248   248   063    Pre-fail  Always             55
 +  6 Read_Channel_Margin     0x0001   253   253   100    Pre-fail  Offline      -       0
 +  7 Seek_Error_Rate         0x000a   253   252   000    Old_age   Always             0
 +  8 Seek_Time_Performance   0x0027   253   249   187    Pre-fail  Always             55538
 +  9 Power_On_Minutes        0x0032   245   245   000    Old_age   Always             659h+56m
 + 10 Spin_Retry_Count        0x002b   253   230   157    Pre-fail  Always             0
 + 11 Calibration_Retry_Count 0x002b   253   252   223    Pre-fail  Always             0
 + 12 Power_Cycle_Count       0x0032   252   252   000    Old_age   Always             713
 +192 Power-Off_Retract_Count 0x0032   253   253   000    Old_age   Always             0
 +193 Load_Cycle_Count        0x0032   253   253   000    Old_age   Always             0
 +194 Temperature_Celsius     0x0032   253   253   000    Old_age   Always             28
 +195 Hardware_ECC_Recovered  0x000a   253   252   000    Old_age   Always             2443
 +196 Reallocated_Event_Count 0x0008   253   253   000    Old_age   Offline      -       0
 +197 Current_Pending_Sector  0x0008   253   253   000    Old_age   Offline      -       3
 +198 Offline_Uncorrectable   0x0008   253   253   000    Old_age   Offline      -       0
 +199 UDMA_CRC_Error_Count    0x0008   199   199   000    Old_age   Offline      -       0
 +200 Multi_Zone_Error_Rate   0x000a   253   252   000    Old_age   Always             0
 +201 Soft_Read_Error_Rate    0x000a   253   252   000    Old_age   Always             1
 +202 TA_Increase_Count       0x000a   253   245   000    Old_age   Always             0
 +203 Run_Out_Cancel          0x000b   253   252   180    Pre-fail  Always             0
 +204 Shock_Count_Write_Opern 0x000a   253   252   000    Old_age   Always             0
 +205 Shock_Rate_Write_Opern  0x000a   253   252   000    Old_age   Always             0
 +207 Spin_High_Current       0x002a   253   234   000    Old_age   Always             0
 +208 Spin_Buzz               0x002a   253   249   000    Old_age   Always             0
 +209 Offline_Seek_Performnce 0x0024   190   190   000    Old_age   Offline      -       0
 + 99 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +100 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +101 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
 +
 +SMART Error Log Version: 1
 +Warning: ATA error count 758 inconsistent with error log pointer 5
 +
 +ATA Error Count: 758 (device log contains only the most recent five errors)
 + CR = Command Register [HEX]
 + FR = Features Register [HEX]
 + SC = Sector Count Register [HEX]
 + SN = Sector Number Register [HEX]
 + CL = Cylinder Low Register [HEX]
 + CH = Cylinder High Register [HEX]
 + DH = Device/Head Register [HEX]
 + DC = Device Command Register [HEX]
 + ER = Error register [HEX]
 + ST = Status register [HEX]
 +Powered_Up_Time is measured from power on, and printed as
 +DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
 +SS=sec, and sss=millisec. It "wraps" after 49.710 days.
 +
 +Error 758 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:54.384  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:54.384  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:54.368  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:54.368  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:54.368  READ NATIVE MAX ADDRESS EXT
 +
 +Error 757 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:53.360  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:53.344  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:53.344  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:53.344  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:53.344  READ NATIVE MAX ADDRESS EXT
 +
 +Error 756 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:52.336  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:52.320  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:52.320  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:52.320  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:52.320  READ NATIVE MAX ADDRESS EXT
 +
 +Error 755 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:51.296  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:51.296  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:51.280  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:51.280  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:51.280  READ NATIVE MAX ADDRESS EXT
 +
 +Error 754 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:50.288  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:50.272  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:50.272  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:50.272  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:50.272  READ NATIVE MAX ADDRESS EXT
 +
 +SMART Self-test log structure revision number 1
 +No self-tests have been logged.  [To run self-tests, use: smartctl -t]
 +
 +
 +SMART Selective self-test log data structure revision number 1
 + SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
 +    1        0        0  Not_testing
 +    2        0        0  Not_testing
 +    3        0        0  Not_testing
 +    4        0        0  Not_testing
 +    5        0        0  Not_testing
 +Selective self-test flags (0x0):
 +  After scanning selected spans, do NOT read-scan remainder of disk.
 +If Selective self-test is pending on power-up, resume after 0 minute delay.
 +</pre></html></WRAP>
 +</WRAP>
 +
 +==== エラーログ ====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=YEL>sudo</b> smartctl -l error /dev/sdc
 +</pre></html></WRAP>
 +<WRAP color_result_long><html><pre>
 +smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
 +Home page is http://smartmontools.sourceforge.net/
 +
 +=== START OF READ SMART DATA SECTION ===
 +SMART Error Log Version: 1
 +Warning: ATA error count 758 inconsistent with error log pointer 5
 +
 +ATA Error Count: 758 (device log contains only the most recent five errors)
 + CR = Command Register [HEX]
 + FR = Features Register [HEX]
 + SC = Sector Count Register [HEX]
 + SN = Sector Number Register [HEX]
 + CL = Cylinder Low Register [HEX]
 + CH = Cylinder High Register [HEX]
 + DH = Device/Head Register [HEX]
 + DC = Device Command Register [HEX]
 + ER = Error register [HEX]
 + ST = Status register [HEX]
 +Powered_Up_Time is measured from power on, and printed as
 +DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
 +SS=sec, and sss=millisec. It "wraps" after 49.710 days.
 +
 +Error 758 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:54.384  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:54.384  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:54.368  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:54.368  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:54.368  READ NATIVE MAX ADDRESS EXT
 +
 +Error 757 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:53.360  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:53.344  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:53.344  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:53.344  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:53.344  READ NATIVE MAX ADDRESS EXT
 +
 +Error 756 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:52.336  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:52.320  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:52.320  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:52.320  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:52.320  READ NATIVE MAX ADDRESS EXT
 +
 +Error 755 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:51.296  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:51.296  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:51.280  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:51.280  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:51.280  READ NATIVE MAX ADDRESS EXT
 +
 +Error 754 occurred at disk power-on lifetime: 2665 hours (111 days + 1 hours)
 +  When the command that caused the error occurred, the device was in an unknown state.
 +
 +  After command completion occurred, registers were:
 +  ER ST SC SN CL CH DH
 +  -- -- -- -- -- -- --
 +  40 59 03 7b 03 31 e0  Error: UNC at LBA = 0x0031037b = 3212155
 +
 +  Commands leading to the command that caused the error were:
 +  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 +  -- -- -- -- -- -- -- --  ----------------  --------------------
 +  24 00 08 77 03 31 e0 0a      03:01:50.288  READ SECTOR(S) EXT
 +  27 00 00 00 00 00 e0 08      03:01:50.272  READ NATIVE MAX ADDRESS EXT
 +  ec 00 00 00 00 00 a0 0a      03:01:50.272  IDENTIFY DEVICE
 +  ef 03 0c 00 00 00 a0 0a      03:01:50.272  SET FEATURES [Set transfer mode]
 +  27 00 00 00 00 00 e0 08      03:01:50.272  READ NATIVE MAX ADDRESS EXT
 +</pre></html></WRAP>
 +</WRAP>