Archive for the ‘smartd’ tag
smartd での sector error 復活作業
家鯖で、Sector Read Error がでていて OS が立ち上がらなかったので、新規に Logical Volume 作って、一旦余っている領域から Logical Volume つくって rsync で同期後立ち上げなおした。
で、復旧後、smartd.log を見ると、家鯖の HDD で smard から↓のような悲鳴があがってた。
smartd[2684]: Device: /dev/sda, 1 Currently unreadable (pending) sectors
smartd[2684]: Device: /dev/sda, 1 Offline uncorrectable sectors
エラー箇所を調べるため、smartctl を実行
# smartctl –test=short /dev/sda
smartctl version 5.38 [i386-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: “Execute SMART Short self-test routine immediately in off-line mode”.
Drive command “Execute SMART Short self-test routine immediately in off-line mode” successful.
Testing has begun.
Please wait 1 minutes for test to complete.
Test will complete after Sun Oct 19 01:30:18 2008
んで、状況をみるために、smartctrl -l /dev/sda をやってみる。
# smartctl -l /dev/sda
smartctl version 5.38 [i386-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed: read failure 90% 261 98652487
デテキターーーーーーーーーー。
ということで、早速このセクタを直す作業にはいってみる。
