1 |
Volker Armin Hemmann <volkerarmin@××××××××××.com> [14-07-26 14:08]: |
2 |
> Am 26.07.2014 12:26, schrieb meino.cramer@×××.de: |
3 |
> > Mick <michaelkintzios@×××××.com> [14-07-26 11:28]: |
4 |
> >> On Saturday 26 Jul 2014 02:49:15 meino.cramer@×××.de wrote: |
5 |
> >>> Hi, |
6 |
> >>> |
7 |
> >>> After running smartctl for an extended offline test I got |
8 |
> >>> a badblock (information extracted from the report): |
9 |
> >>> |
10 |
> >>> SMART Self-test log structure revision number 1 |
11 |
> >>> Num Test_Description Status Remaining LifeTime(hours) |
12 |
> >>> LBA_of_first_error # 1 Extended offline Completed: read failure |
13 |
> >>> 90% 14460 4288352511 197 Current_Pending_Sector 0x0032 200 |
14 |
> >>> 200 000 Old_age Always - 1 |
15 |
> >>> |
16 |
> >>> I found a explanation to map the LBA to a partition here: |
17 |
> >>> http://smartmontools.sourceforge.net/badblockhowto.html |
18 |
> >>> |
19 |
> >>> My partition layout is: |
20 |
> >>> #> sudo fdisk -lu /dev/sda |
21 |
> >>> |
22 |
> >>> Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors |
23 |
> >>> Units: sectors of 1 * 512 = 512 bytes |
24 |
> >>> Sector size (logical/physical): 512 bytes / 512 bytes |
25 |
> >>> I/O size (minimum/optimal): 512 bytes / 512 bytes |
26 |
> >>> Disklabel type: dos |
27 |
> >>> Disk identifier: 0x07ec16a2 |
28 |
> >>> |
29 |
> >>> Device Boot Start End Blocks Id System |
30 |
> >>> /dev/sda1 * 2048 104447 51200 83 Linux |
31 |
> >>> /dev/sda2 104448 12687359 6291456 82 Linux swap / Solaris |
32 |
> >>> /dev/sda3 12687360 222402559 104857600 83 Linux |
33 |
> >>> /dev/sda4 222402560 1953525167 865561304 5 Extended |
34 |
> >>> /dev/sda5 222404608 232890367 5242880 83 Linux |
35 |
> >>> /dev/sda6 232892416 442607615 104857600 83 Linux |
36 |
> >>> /dev/sda7 442609664 652324863 104857600 83 Linux |
37 |
> >>> /dev/sda8 652326912 862042111 104857600 83 Linux |
38 |
> >>> /dev/sda9 862044160 1071759359 104857600 83 Linux |
39 |
> >>> /dev/sda10 1071761408 1281476607 104857600 83 Linux |
40 |
> >>> /dev/sda11 1281478656 1491193855 104857600 83 Linux |
41 |
> >>> /dev/sda12 1491195904 1953525167 231164632 83 Linux |
42 |
> >>> 4288352511 <<< The number reported by smartctl |
43 |
> >>> |
44 |
> >>> |
45 |
> >>> Following the linked document... |
46 |
> >>> It seems the bad LBA is not on the checked harddisk. |
47 |
> >>> |
48 |
> >>> Or (more obvious) I did something wrong... |
49 |
> >> You are probably comparing different units. The Start and End of fdisk are |
50 |
> >> reporting sectors, each sector being 512 bytes. Therefore if the LBA is |
51 |
> >> reported by smartctl in bytes, you have: |
52 |
> >> |
53 |
> >> 4,288,352,511 ÷ 512 = 8,375,688.5 |
54 |
> >> |
55 |
> >> which would place it within your swap partition. |
56 |
> >> |
57 |
> >> I would do this: |
58 |
> >> |
59 |
> >> swapoff /dev/sda2 |
60 |
> >> |
61 |
> >> dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc |
62 |
> >> |
63 |
> >> mkswap -L swap -c /dev/sda2 |
64 |
> >> |
65 |
> >> swapon /dev/sda2 |
66 |
> >> |
67 |
> >> and hopefully the problem will be gone when you run the next smartctl test. |
68 |
> >> |
69 |
> >> -- |
70 |
> >> Regards, |
71 |
> >> Mick |
72 |
> > |
73 |
> > Sorry for stuutering postings...overlocked this one: |
74 |
> > #>dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc |
75 |
> > dd: error writing ‘/dev/sda2’: Input/output error |
76 |
> > |
77 |
> > Hrrrmpfff... |
78 |
> > |
79 |
> > Why does it nt remap those ones? |
80 |
> > |
81 |
> > Best regards, |
82 |
> > mcc |
83 |
> > |
84 |
> > |
85 |
> > |
86 |
> > |
87 |
> > |
88 |
> > |
89 |
> > |
90 |
> smartctl -a /dev/sda |
91 |
> |
92 |
> without those information: crystal ball. |
93 |
> |
94 |
> that said: it is swap. You shouldn't have to do anything. Don't touch dd. |
95 |
> |
96 |
> |
97 |
> |
98 |
|
99 |
|
100 |
Hi Volker, |
101 |
|
102 |
what happens if swapped is used and the write access tapped on the |
103 |
bad area? |
104 |
|
105 |
Here is the output of smartctl: |
106 |
|
107 |
|
108 |
smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.13-RT] (local build) |
109 |
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org |
110 |
|
111 |
=== START OF INFORMATION SECTION === |
112 |
Model Family: Western Digital Caviar Green (AF) |
113 |
Device Model: WDC WD10EARS-00Y5B1 |
114 |
Serial Number: WD-WMAV51276611 |
115 |
LU WWN Device Id: 5 0014ee 001f5fb47 |
116 |
Firmware Version: 80.00A80 |
117 |
User Capacity: 1,000,204,886,016 bytes [1.00 TB] |
118 |
Sector Size: 512 bytes logical/physical |
119 |
Device is: In smartctl database [for details use: -P show] |
120 |
ATA Version is: ATA8-ACS (minor revision not indicated) |
121 |
SATA Version is: SATA 2.6, 3.0 Gb/s |
122 |
Local Time is: Sat Jul 26 14:16:19 2014 CEST |
123 |
SMART support is: Available - device has SMART capability. |
124 |
SMART support is: Enabled |
125 |
|
126 |
=== START OF READ SMART DATA SECTION === |
127 |
SMART overall-health self-assessment test result: PASSED |
128 |
|
129 |
General SMART Values: |
130 |
Offline data collection status: (0x84) Offline data collection activity |
131 |
was suspended by an interrupting command from host. |
132 |
Auto Offline Data Collection: Enabled. |
133 |
Self-test execution status: ( 121) The previous self-test completed having |
134 |
the read element of the test failed. |
135 |
Total time to complete Offline |
136 |
data collection: (19380) seconds. |
137 |
Offline data collection |
138 |
capabilities: (0x7b) SMART execute Offline immediate. |
139 |
Auto Offline data collection on/off support. |
140 |
Suspend Offline collection upon new |
141 |
command. |
142 |
Offline surface scan supported. |
143 |
Self-test supported. |
144 |
Conveyance Self-test supported. |
145 |
Selective Self-test supported. |
146 |
SMART capabilities: (0x0003) Saves SMART data before entering |
147 |
power-saving mode. |
148 |
Supports SMART auto save timer. |
149 |
Error logging capability: (0x01) Error logging supported. |
150 |
General Purpose Logging supported. |
151 |
Short self-test routine |
152 |
recommended polling time: ( 2) minutes. |
153 |
Extended self-test routine |
154 |
recommended polling time: ( 223) minutes. |
155 |
Conveyance self-test routine |
156 |
recommended polling time: ( 5) minutes. |
157 |
SCT capabilities: (0x3031) SCT Status supported. |
158 |
SCT Feature Control supported. |
159 |
SCT Data Table supported. |
160 |
|
161 |
SMART Attributes Data Structure revision number: 16 |
162 |
Vendor Specific SMART Attributes with Thresholds: |
163 |
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE |
164 |
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 |
165 |
3 Spin_Up_Time 0x0027 129 113 021 Pre-fail Always - 6508 |
166 |
4 Start_Stop_Count 0x0032 097 097 000 Old_age Always - 3957 |
167 |
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 |
168 |
7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0 |
169 |
9 Power_On_Hours 0x0032 081 081 000 Old_age Always - 14476 |
170 |
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0 |
171 |
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0 |
172 |
12 Power_Cycle_Count 0x0032 097 097 000 Old_age Always - 3808 |
173 |
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 324 |
174 |
193 Load_Cycle_Count 0x0032 196 196 000 Old_age Always - 14602 |
175 |
194 Temperature_Celsius 0x0022 115 101 000 Old_age Always - 32 |
176 |
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 |
177 |
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 1 |
178 |
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 1 |
179 |
199 UDMA_CRC_Error_Count 0x0032 200 197 000 Old_age Always - 13300 |
180 |
200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 1 |
181 |
|
182 |
SMART Error Log Version: 1 |
183 |
No Errors Logged |
184 |
|
185 |
SMART Self-test log structure revision number 1 |
186 |
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error |
187 |
# 1 Conveyance offline Completed: read failure 90% 14472 4288352511 |
188 |
# 2 Extended offline Completed: read failure 90% 14460 4288352511 |
189 |
# 3 Extended offline Completed without error 00% 13954 - |
190 |
# 4 Short offline Completed without error 00% 13935 - |
191 |
# 5 Extended offline Completed without error 00% 7051 - |
192 |
# 6 Extended offline Completed without error 00% 2205 - |
193 |
# 7 Short offline Completed without error 00% 463 - |
194 |
|
195 |
SMART Selective self-test log data structure revision number 1 |
196 |
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS |
197 |
1 0 0 Not_testing |
198 |
2 0 0 Not_testing |
199 |
3 0 0 Not_testing |
200 |
4 0 0 Not_testing |
201 |
5 0 0 Not_testing |
202 |
Selective self-test flags (0x0): |
203 |
After scanning selected spans, do NOT read-scan remainder of disk. |
204 |
If Selective self-test is pending on power-up, resume after 0 minute delay. |
205 |
|
206 |
|
207 |
Best regards, |
208 |
mcc |