バックアップ取れたので不良セクタ解消へ(至らなかった記録)

Share on:
			<blockquote><p>

Oct 3 09:10:03 shark smartd[3912]: Device: /dev/sda [SAT], 1 Currently unreadable (pending) sectors

こんな感じでまだ pending され続けてるので、ちゃんとスキップするようにしてみよう。


まずはセルフテストで現状確認。

shark:tnal% sudo /usr/sbin/smartctl -l selftest /dev/sda
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.18-371.9.1.el5.centos.plus] (local build)
Copyright (C) 2002-11 by Bruce Allen, 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 Extended offline Completed without error 00% 24 –
# 2 Short offline Completed without error 00% 23 –

あれ、不良セクタ無し?


ググるとセルフテストにもいくつか種類があるらしい。
詳細テスト?の方を試すと「テスト終わるまで58分待ってくれ」とか。

shark:tnal% sudo /usr/sbin/smartctl -t long /dev/sda
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.18-371.9.1.el5.centos.plus] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: “Execute SMART Extended self-test routine immediately in off-line mode”.
Drive command “Execute SMART Extended self-test routine immediately in off-line mode” successful.
Testing has begun.
Please wait 58 minutes for test to complete.
Test will complete after Sat Oct 3 10:39:38 2015

Use smartctl -X to abort test.


1時間待って結果を確認。

shark:tnal% sudo /usr/sbin/smartctl -A -l selftest /dev/sda
smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.18-371.9.1.el5.centos.plus] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
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
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always – 2
3 Spin_Up_Time 0x0027 201 200 021 Pre-fail Always – 950
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always – 43
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always – 0
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always – 0
9 Power_On_Hours 0x0032 034 034 000 Old_age Always – 48230
10 Spin_Retry_Count 0x0032 100 253 000 Old_age Always – 0
11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always – 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always – 42
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always – 24
193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always – 43
194 Temperature_Celsius 0x0022 105 101 000 Old_age Always – 38
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always – 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always – 1
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline – 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always – 0
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline – 0

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 48230 –
# 2 Extended offline Completed without error 00% 24 –
# 3 Short offline Completed without error 00% 23 –

相変わらず「Current_Pending_Sector」が1カ所あるのに、「LBA_of_first_error(不良ブロックのLBA番号)」が出て来ない。えー。昨日のブート領域に破損があったという件が中途半端に残ってるという話なのかな。OS再起動してみたい気もするが、また起動しなくなったらあれなので続きは大学滞在時にやるか。。


<参考>