Проект

Общее

Профиль

Recovery-raid-megaraid » История » Редакция 2

Редакция 1 (Рамиль Абдулбяров, 2015-04-29 17:55) → Редакция 2/3 (Рамиль Абдулбяров, 2015-04-29 17:58)

h1. Восстановление массива 

 h3. Скидываем конфигурацию с диска: 

 *megacli -CfgForeign -Clear -a0* 
 <pre> 
 Foreign configuration 0 is cleared on controller 0. 

 Exit Code: 0x00 
 </pre> 

 h3. Смотрим, что изменилось: 

 *megacli pdinfo -PhysDrv \[32:16\] -a0 nolog* 
 <pre> 
  1 
  2 Enclosure Device ID: 32 
  3 Slot Number: 16 
  4 Enclosure position: 1 
  5 Device Id: 16 
  6 WWN: 5000C50071CAF938 
  7 Sequence Number: 1 
  8 Media Error Count: 0 
  9 Other Error Count: 0 
 10 Predictive Failure Count: 0 
 11 Last Predictive Failure Event Seq Number: 0 
 12 PD Type: SAS 
 13 
 14 Raw Size: 279.396 GB [0x22ecb25c Sectors] 
 15 Non Coerced Size: 278.896 GB [0x22dcb25c Sectors] 
 16 Coerced Size: 278.875 GB [0x22dc0000 Sectors] 
 17 Sector Size:    0 
 18 Firmware state: Unconfigured(good), Spun Up 
 19 Device Firmware Level: YS0A 
 20 Shield Counter: 0 
 21 Successful diagnostics completion on :    N/A 
 22 SAS Address(0): 0x5000c50071caf939 
 23 SAS Address(1): 0x0 
 24 Connected Port Number: 0(path0)  
 25 Inquiry Data: SEAGATE ST9300653SS       YS0A6XN62C41             
 26 FDE Capable: Not Capable 
 27 FDE Enable: Disable 
 28 Secured: Unsecured 
 29 Locked: Unlocked 
 30 Needs EKM Attention: No 
 31-Foreign State: Foreign  
 32-Foreign Secure: Drive is not secured by a foreign lock key 
 33+Foreign State: None  
 34 Device Speed: 6.0Gb/s  
 35 Link Speed: 6.0Gb/s  
 36 Media Type: Hard Disk Device 
 37 Drive Temperature :30C (86.00 F) 
 38 PI Eligibility:    No  
 39 Drive is formatted for PI information:    No 
 40 PI: No PI 
 41 Port-0 : 
 42 Port status: Active 
 43 Port's Linkspeed: 6.0Gb/s  
 44 Port-1 : 
 45 Port status: Active 
 46 Port's Linkspeed: Unknown  
 47 Drive has flagged a S.M.A.R.T alert : No 
 48 
 49 Exit Code: 0x00 
 </pre> 

 h2. Смотрим вывод в лог: 

 <pre> 
 seqNum: 0x0000188c 
 Time: Mon Nov 24 07:39:16 2014 

 Code: 0x000000dc 
 Class: 0 
 Locale: 0x40 
 Event Description: Foreign Configuration Cleared 
 Event Data: 
 =========== 
 None 

 seqNum: 0x0000188b 
 Time: Mon Nov 24 07:39:16 2014 

 Code: 0x000000da 
 Class: 0 
 Locale: 0x40 
 Event Description: Foreign Configuration Detected 
 Event Data: 
 =========== 
 None 

 seqNum: 0x0000188a 
 Time: Mon Nov 24 07:39:16 2014 

 Code: 0x000000da 
 Class: 0 
 Locale: 0x40 
 Event Description: Foreign Configuration Detected 
 Event Data: 
 =========== 
 None 
 </pre> 

 h2. Добавляем диск к массиву 

 h3. Помечаем диск как hot-spare 

 */usr/local/sbin/megacli -PDHSP -Set -PhysDrv \[32:16\] -a0 nolog* 
 <pre> 
 Adapter: 0: Set Physical Drive at EnclId-32 SlotId-16 as Hot Spare Success. 

 Exit Code: 0x00 
 </pre> 

 h3. Смотрим журнал 

 <pre> 
 seqNum: 0x0000188f 
 Time: Mon Nov 24 07:39:59 2014 

 Code: 0x00000072 
 Class: 0 
 Locale: 0x02 
 Event Description: State change on PD 10(e0x20/s16) from UNCONFIGURED_GOOD(0) to HOT SPARE(2) 
 Event Data: 
 =========== 
 Device ID: 16 
 Enclosure Index: 32 
 Slot Number: 16 
 Previous state: 0 
 New state: 2 

 seqNum: 0x0000188e 
 Time: Mon Nov 24 07:39:59 2014 

 Code: 0x00000087 
 Class: 0 
 Locale: 0x42 
 Event Description: Global Hot Spare created on PD 10(e0x20/s16) (global,rev) 
 Event Data: 
 =========== 
 Device ID: 16 
 Enclosure Index: 32 
 Slot Number: 16 
 Spare Type:    Revertible  
 Arrays Dedicated to: 

 seqNum: 0x0000188d 
 Time: Mon Nov 24 07:39:59 2014 

 Code: 0x00000089 
 Class: 1 
 Locale: 0x42 
 Event Description: Global Hot Spare PD 10(e0x20/s16) does not cover all arrays 
 Event Data: 
 =========== 
 Device ID: 16 
 Enclosure Index: 32 
 Slot Number: 16 
 </pre> 

 h3. Пошло автоматическое перестроение RAID 

 <pre> 
 seqNum: 0x00001892 
 Time: Mon Nov 24 07:40:16 2014 

 Code: 0x00000067 
 Class: -1 
 Locale: 0x02 
 Event Description: Rebuild progress on PD 10(e0x20/s16) is 0.99%(17s) 
 Event Data: 
 =========== 

 seqNum: 0x00001891 
 Time: Mon Nov 24 07:39:59 2014 

 Code: 0x00000072 
 Class: 0 
 Locale: 0x02 
 Event Description: State change on PD 10(e0x20/s16) from HOT SPARE(2) to REBUILD(14) 
 Event Data: 
 =========== 
 Device ID: 16 
 Enclosure Index: 32 
 Slot Number: 16 
 Previous state: 2 
 New state: 20 

 seqNum: 0x00001890 
 Time: Mon Nov 24 07:39:59 2014 

 Code: 0x0000006a 
 Class: 0 
 Locale: 0x02 
 Event Description: Rebuild automatically started on PD 10(e0x20/s16) 
 Event Data: 
 =========== 
 Device ID: 16 
 Enclosure Index: 32 
 Slot Number: 16 
 </pre> 

 h3. Смотрим статус диска 

 <pre> 
 1 
  2 Enclosure Device ID: 32 
  3 Slot Number: 16 
  4+Drive's position: DiskGroup: 2, Span: 1, Arm: 0 
  5 Enclosure position: 1 
  6 Device Id: 16 
  7 WWN: 5000C50071CAF938 
  8-Sequence Number: 1 
  9+Sequence Number: 3 
 10 Media Error Count: 0 
 11 Other Error Count: 0 
 12 Predictive Failure Count: 0 
 13 Last Predictive Failure Event Seq Number: 0 
 14 PD Type: SAS 
 15 
 16 Raw Size: 279.396 GB [0x22ecb25c Sectors] 
 17 Non Coerced Size: 278.896 GB [0x22dcb25c Sectors] 
 18 Coerced Size: 278.875 GB [0x22dc0000 Sectors] 
 19 Sector Size:    0 
 20-Firmware state: Unconfigured(good), Spun Up 
 21+Firmware state: Rebuild 
 22 Device Firmware Level: YS0A 
 23 Shield Counter: 0 
 24 Successful diagnostics completion on :    N/A 
 25 SAS Address(0): 0x5000c50071caf939 
 26 SAS Address(1): 0x0 
 27 Connected Port Number: 0(path0)  
 28 Inquiry Data: SEAGATE ST9300653SS       YS0A6XN62C41             
 29 FDE Capable: Not Capable 
 30 FDE Enable: Disable 
 31 Secured: Unsecured 
 32 Locked: Unlocked 
 33 Needs EKM Attention: No 
 34 Foreign State: None  
 35 Device Speed: 6.0Gb/s  
 36 Link Speed: 6.0Gb/s  
 37 Media Type: Hard Disk Device 
 38 Drive Temperature :30C (86.00 F) 
 39 PI Eligibility:    No  
 40 Drive is formatted for PI information:    No 
 41 PI: No PI 
 42 Port-0 : 
 43 Port status: Active 
 44 Port's Linkspeed: 6.0Gb/s  
 45 Port-1 : 
 46 Port status: Active 
 47 Port's Linkspeed: Unknown  
 48 Drive has flagged a S.M.A.R.T alert : No 
 49 
 50 Exit Code: 0x00 
 </pre>