Recovery-raid-megaraid » История » Версия 2
Рамиль Абдулбяров, 2015-04-29 17:58
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> |