Проект

Общее

Профиль

Recovery-raid-megaraid » История » Версия 3

Рамиль Абдулбяров, 2015-04-29 18:02

1 1 Рамиль Абдулбяров
h1. Восстановление массива
2
3
h3. Скидываем конфигурацию с диска:
4
5
*megacli -CfgForeign -Clear -a0*
6
<pre>
7
Foreign configuration 0 is cleared on controller 0.
8
9
Exit Code: 0x00
10
</pre>
11
12
h3. Смотрим, что изменилось:
13
14
*megacli pdinfo -PhysDrv \[32:16\] -a0 nolog*
15
<pre>
16
 1
17
 2 Enclosure Device ID: 32
18
 3 Slot Number: 16
19
 4 Enclosure position: 1
20
 5 Device Id: 16
21
 6 WWN: 5000C50071CAF938
22
 7 Sequence Number: 1
23
 8 Media Error Count: 0
24
 9 Other Error Count: 0
25
10 Predictive Failure Count: 0
26
11 Last Predictive Failure Event Seq Number: 0
27
12 PD Type: SAS
28
13
29
14 Raw Size: 279.396 GB [0x22ecb25c Sectors]
30
15 Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
31
16 Coerced Size: 278.875 GB [0x22dc0000 Sectors]
32
17 Sector Size:  0
33
18 Firmware state: Unconfigured(good), Spun Up
34
19 Device Firmware Level: YS0A
35
20 Shield Counter: 0
36
21 Successful diagnostics completion on :  N/A
37
22 SAS Address(0): 0x5000c50071caf939
38
23 SAS Address(1): 0x0
39
24 Connected Port Number: 0(path0) 
40
25 Inquiry Data: SEAGATE ST9300653SS     YS0A6XN62C41            
41
26 FDE Capable: Not Capable
42
27 FDE Enable: Disable
43
28 Secured: Unsecured
44
29 Locked: Unlocked
45
30 Needs EKM Attention: No
46
31-Foreign State: Foreign 
47
32-Foreign Secure: Drive is not secured by a foreign lock key
48
33+Foreign State: None 
49
34 Device Speed: 6.0Gb/s 
50
35 Link Speed: 6.0Gb/s 
51
36 Media Type: Hard Disk Device
52
37 Drive Temperature :30C (86.00 F)
53
38 PI Eligibility:  No 
54
39 Drive is formatted for PI information:  No
55
40 PI: No PI
56
41 Port-0 :
57
42 Port status: Active
58
43 Port's Linkspeed: 6.0Gb/s 
59
44 Port-1 :
60
45 Port status: Active
61
46 Port's Linkspeed: Unknown 
62
47 Drive has flagged a S.M.A.R.T alert : No
63
48
64
49 Exit Code: 0x00
65
</pre>
66 2 Рамиль Абдулбяров
67
h2. Смотрим вывод в лог:
68
69
<pre>
70
seqNum: 0x0000188c
71
Time: Mon Nov 24 07:39:16 2014
72
73
Code: 0x000000dc
74
Class: 0
75
Locale: 0x40
76
Event Description: Foreign Configuration Cleared
77
Event Data:
78
===========
79
None
80
81
seqNum: 0x0000188b
82
Time: Mon Nov 24 07:39:16 2014
83
84
Code: 0x000000da
85
Class: 0
86
Locale: 0x40
87
Event Description: Foreign Configuration Detected
88
Event Data:
89
===========
90
None
91
92
seqNum: 0x0000188a
93
Time: Mon Nov 24 07:39:16 2014
94
95
Code: 0x000000da
96
Class: 0
97
Locale: 0x40
98
Event Description: Foreign Configuration Detected
99
Event Data:
100
===========
101
None
102
</pre>
103
104
h2. Добавляем диск к массиву
105
106
h3. Помечаем диск как hot-spare
107
108
*/usr/local/sbin/megacli -PDHSP -Set -PhysDrv \[32:16\] -a0 nolog*
109
<pre>
110
Adapter: 0: Set Physical Drive at EnclId-32 SlotId-16 as Hot Spare Success.
111
112
Exit Code: 0x00
113
</pre>
114
115
h3. Смотрим журнал
116
117
<pre>
118
seqNum: 0x0000188f
119
Time: Mon Nov 24 07:39:59 2014
120
121
Code: 0x00000072
122
Class: 0
123
Locale: 0x02
124
Event Description: State change on PD 10(e0x20/s16) from UNCONFIGURED_GOOD(0) to HOT SPARE(2)
125
Event Data:
126
===========
127
Device ID: 16
128
Enclosure Index: 32
129
Slot Number: 16
130
Previous state: 0
131
New state: 2
132
133
seqNum: 0x0000188e
134
Time: Mon Nov 24 07:39:59 2014
135
136
Code: 0x00000087
137
Class: 0
138
Locale: 0x42
139
Event Description: Global Hot Spare created on PD 10(e0x20/s16) (global,rev)
140
Event Data:
141
===========
142
Device ID: 16
143
Enclosure Index: 32
144
Slot Number: 16
145
Spare Type:  Revertible 
146
Arrays Dedicated to:
147
148
seqNum: 0x0000188d
149
Time: Mon Nov 24 07:39:59 2014
150
151
Code: 0x00000089
152
Class: 1
153
Locale: 0x42
154
Event Description: Global Hot Spare PD 10(e0x20/s16) does not cover all arrays
155
Event Data:
156
===========
157
Device ID: 16
158
Enclosure Index: 32
159
Slot Number: 16
160
</pre>
161
162
h3. Пошло автоматическое перестроение RAID
163
164
<pre>
165
seqNum: 0x00001892
166
Time: Mon Nov 24 07:40:16 2014
167
168
Code: 0x00000067
169
Class: -1
170
Locale: 0x02
171
Event Description: Rebuild progress on PD 10(e0x20/s16) is 0.99%(17s)
172
Event Data:
173
===========
174
175
seqNum: 0x00001891
176
Time: Mon Nov 24 07:39:59 2014
177
178
Code: 0x00000072
179
Class: 0
180
Locale: 0x02
181
Event Description: State change on PD 10(e0x20/s16) from HOT SPARE(2) to REBUILD(14)
182
Event Data:
183
===========
184
Device ID: 16
185
Enclosure Index: 32
186
Slot Number: 16
187
Previous state: 2
188
New state: 20
189
190
seqNum: 0x00001890
191
Time: Mon Nov 24 07:39:59 2014
192
193
Code: 0x0000006a
194
Class: 0
195
Locale: 0x02
196
Event Description: Rebuild automatically started on PD 10(e0x20/s16)
197
Event Data:
198
===========
199
Device ID: 16
200
Enclosure Index: 32
201
Slot Number: 16
202
</pre>
203
204
h3. Смотрим статус диска
205
206
<pre>
207
1
208
 2 Enclosure Device ID: 32
209
 3 Slot Number: 16
210
 4+Drive's position: DiskGroup: 2, Span: 1, Arm: 0
211
 5 Enclosure position: 1
212
 6 Device Id: 16
213
 7 WWN: 5000C50071CAF938
214
 8-Sequence Number: 1
215
 9+Sequence Number: 3
216
10 Media Error Count: 0
217
11 Other Error Count: 0
218
12 Predictive Failure Count: 0
219
13 Last Predictive Failure Event Seq Number: 0
220
14 PD Type: SAS
221
15
222
16 Raw Size: 279.396 GB [0x22ecb25c Sectors]
223
17 Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
224
18 Coerced Size: 278.875 GB [0x22dc0000 Sectors]
225
19 Sector Size:  0
226
20-Firmware state: Unconfigured(good), Spun Up
227
21+Firmware state: Rebuild
228
22 Device Firmware Level: YS0A
229
23 Shield Counter: 0
230
24 Successful diagnostics completion on :  N/A
231
25 SAS Address(0): 0x5000c50071caf939
232
26 SAS Address(1): 0x0
233
27 Connected Port Number: 0(path0) 
234
28 Inquiry Data: SEAGATE ST9300653SS     YS0A6XN62C41            
235
29 FDE Capable: Not Capable
236
30 FDE Enable: Disable
237
31 Secured: Unsecured
238
32 Locked: Unlocked
239
33 Needs EKM Attention: No
240
34 Foreign State: None 
241
35 Device Speed: 6.0Gb/s 
242
36 Link Speed: 6.0Gb/s 
243
37 Media Type: Hard Disk Device
244
38 Drive Temperature :30C (86.00 F)
245
39 PI Eligibility:  No 
246
40 Drive is formatted for PI information:  No
247
41 PI: No PI
248
42 Port-0 :
249
43 Port status: Active
250
44 Port's Linkspeed: 6.0Gb/s 
251
45 Port-1 :
252
46 Port status: Active
253
47 Port's Linkspeed: Unknown 
254
48 Drive has flagged a S.M.A.R.T alert : No
255
49
256
50 Exit Code: 0x00
257
</pre>
258 3 Рамиль Абдулбяров
259
h2. Готово
260
261
h3. Смотрим журнал
262
263
<pre>
264
seqNum: 0x000018fa
265
Time: Mon Nov 24 08:12:18 2014
266
267
Code: 0x000000f9
268
Class: 0
269
Locale: 0x01
270
Event Description: VD 02/2 is now OPTIMAL
271
Event Data:
272
===========
273
Target Id: 2
274
275
seqNum: 0x000018f9
276
Time: Mon Nov 24 08:12:18 2014
277
278
Code: 0x00000051
279
Class: 0
280
Locale: 0x01
281
Event Description: State change on VD 02/2 from DEGRADED(2) to OPTIMAL(3)
282
Event Data:
283
===========
284
Target Id: 2
285
Previous state: 2
286
New state: 3
287
288
seqNum: 0x000018f8
289
Time: Mon Nov 24 08:12:18 2014
290
291
Code: 0x00000072
292
Class: 0
293
Locale: 0x02
294
Event Description: State change on PD 10(e0x20/s16) from REBUILD(14) to ONLINE(18)
295
Event Data:
296
===========
297
Device ID: 16
298
Enclosure Index: 32
299
Slot Number: 16
300
Previous state: 20
301
New state: 24
302
303
seqNum: 0x000018f7
304
Time: Mon Nov 24 08:12:18 2014
305
306
Code: 0x00000064
307
Class: 0
308
Locale: 0x02
309
Event Description: Rebuild complete on PD 10(e0x20/s16)
310
Event Data:
311
===========
312
Device ID: 16
313
Enclosure Index: 32
314
Slot Number: 16
315
316
seqNum: 0x000018f6
317
Time: Mon Nov 24 08:12:18 2014
318
319
Code: 0x00000063
320
Class: 0
321
Locale: 0x02
322
Event Description: Rebuild complete on VD 02/2
323
Event Data:
324
===========
325
Target Id: 2
326
327
seqNum: 0x000018f5
328
Time: Mon Nov 24 08:12:17 2014
329
330
Code: 0x00000067
331
Class: -1
332
Locale: 0x02
333
Event Description: Rebuild progress on PD 10(e0x20/s16) is 99.94%(1938s)
334
Event Data:
335
===========
336
</pre>
337
338
h3. Смотрим изменения по итогу:
339
340
*megacli -LDInfo -LALL -a0 -nolog*
341
*megacli -LDInfo -L2 -a0 -nolog*
342
343
<pre>
344
 1
345
 2 Adapter 0 -- Virtual Drive Information:
346
 3 Virtual Drive: 2 (Target Id: 2)
347
 4 Name                :r10-3-sas
348
 5 RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
349
 6 Size                : 557.75 GB
350
 7 Sector Size         : 512
351
 8 Mirror Data         : 557.75 GB
352
 9-State               : Degraded
353
10+State               : Optimal
354
11 Strip Size          : 64 KB
355
12 Number Of Drives per span:2
356
13 Span Depth          : 2
357
14 Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
358
15 Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
359
16 Default Access Policy: Read/Write
360
17 Current Access Policy: Read/Write
361
18 Disk Cache Policy   : Disk's Default
362
19 Encryption Type     : None
363
20 Default Power Savings Policy: Controller Defined
364
21 Current Power Savings Policy: None
365
22 Can spin up in 1 minute: Yes
366
23 LD has drives that support T10 power conditions: Yes
367
24 LD's IO profile supports MAX power savings with cached writes: No
368
25 Bad Blocks Exist: No
369
26 Is VD Cached: Yes
370
27 Cache Cade Type : Read Only
371
28
372
29 Exit Code: 0x00
373
</pre>
374
375
h3. Смотрим состояние диска
376
377
<pre>
378
1
379
 2 Enclosure Device ID: 32
380
 3 Slot Number: 16
381
 4 Drive's position: DiskGroup: 2, Span: 1, Arm: 0
382
 5 Enclosure position: 1
383
 6 Device Id: 16
384
 7 WWN: 5000C50071CAF938
385
 8-Sequence Number: 3
386
 9+Sequence Number: 4
387
10 Media Error Count: 0
388
11 Other Error Count: 0
389
12 Predictive Failure Count: 0
390
13 Last Predictive Failure Event Seq Number: 0
391
14 PD Type: SAS
392
15
393
16 Raw Size: 279.396 GB [0x22ecb25c Sectors]
394
17 Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
395
18 Coerced Size: 278.875 GB [0x22dc0000 Sectors]
396
19 Sector Size:  0
397
20-Firmware state: Rebuild
398
21+Firmware state: Online, Spun Up
399
22 Device Firmware Level: YS0A
400
23 Shield Counter: 0
401
24 Successful diagnostics completion on :  N/A
402
25 SAS Address(0): 0x5000c50071caf939
403
26 SAS Address(1): 0x0
404
27 Connected Port Number: 0(path0) 
405
28 Inquiry Data: SEAGATE ST9300653SS     YS0A6XN62C41            
406
29 FDE Capable: Not Capable
407
30 FDE Enable: Disable
408
31 Secured: Unsecured
409
32 Locked: Unlocked
410
33 Needs EKM Attention: No
411
34 Foreign State: None 
412
35 Device Speed: 6.0Gb/s 
413
36 Link Speed: 6.0Gb/s 
414
37 Media Type: Hard Disk Device
415
38 Drive Temperature :30C (86.00 F)
416
39 PI Eligibility:  No 
417
40 Drive is formatted for PI information:  No
418
41 PI: No PI
419
42 Port-0 :
420
43 Port status: Active
421
44 Port's Linkspeed: 6.0Gb/s 
422
45 Port-1 :
423
46 Port status: Active
424
47 Port's Linkspeed: Unknown 
425
48 Drive has flagged a S.M.A.R.T alert : No
426
49
427
50 Exit Code: 0x00
428
</pre>