1 |
megacli -pdlist -aALL |
-
Chapter 1. INFO
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
Enclosure Device ID: 252 Slot Number: 5 Enclosure position: N/A Device Id: 5 WWN: 500a075120e19163 Sequence Number: 10 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SATA Raw Size: 1.746 TB [0xdf8fe2b0 Sectors] Non Coerced Size: 1.745 TB [0xdf7fe2b0 Sectors] Coerced Size: 1.745 TB [0xdf7f0000 Sectors] Sector Size: 0 Logical Sector Size: 0 Physical Sector Size: 0 Firmware state: Unconfigured(bad) Device Firmware Level: U004 Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x4433221105000000 Connected Port Number: 1(path0) Inquiry Data: 190620E19163Micron_5200_MTFDDAK1T9TDD D1MU004 FDE Capable: Not Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Solid State Device Drive: Not Certified Drive Temperature : N/A PI Eligibility: No Drive is formatted for PI information: No PI: No PI Drive's NCQ setting : N/A Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No |
1 |
megacli -LDInfo -LAll -a0 –NoLog |
View
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
Adapter 0 -- Virtual Drive Information: Virtual Drive: 0 (Target Id: 0) Name : RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 Size : 1.745 TB Sector Size : 512 Is VD emulated : Yes Mirror Data : 1.745 TB State : Degraded Strip Size : 64 KB Number Of Drives : 2 Span Depth : 1 Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteThrough, ReadAhead, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disabled Encryption Type : None Bad Blocks Exist: No Is VD Cached: No Exit Code: 0x00 |
1 |
megacli -pdlist -aALL |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
Adapter #0 Enclosure Device ID: 252 Slot Number: 0 Drive's position: DiskGroup: 0, Span: 0, Arm: 0 Enclosure position: N/A Device Id: 0 WWN: 50026b7256018085 Sequence Number: 2 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SATA Raw Size: 111.790 GB [0xdf94bb0 Sectors] Non Coerced Size: 111.290 GB [0xde94bb0 Sectors] Coerced Size: 111.281 GB [0xde90000 Sectors] Sector Size: 0 Logical Sector Size: 0 Physical Sector Size: 0 Firmware state: Online, Spun Up Commissioned Spare : No Emergency Spare : No Device Firmware Level: BBF0 Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x4433221103000000 Connected Port Number: 1(path0) Inquiry Data: 50026B7256018085 KINGSTON SV300S37A120G 603ABBF0 FDE Capable: Not Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Solid State Device Drive: Not Certified Drive Temperature : N/A PI Eligibility: No Drive is formatted for PI information: No PI: No PI Drive's NCQ setting : N/A Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No Enclosure Device ID: 252 Slot Number: 1 Enclosure position: N/A Device Id: 1 WWN: 502b2a201d1c1b1a Sequence Number: 6 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SATA Raw Size: 111.790 GB [0xdf94bb0 Sectors] Non Coerced Size: 111.290 GB [0xde94bb0 Sectors] Coerced Size: 111.281 GB [0xde90000 Sectors] Sector Size: 0 Logical Sector Size: 0 Physical Sector Size: 0 Firmware state: Unconfigured(bad) Device Firmware Level: 3A Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x4433221102000000 Connected Port Number: 0(path0) Inquiry Data: J020102F00992 120GB SSD S0103A FDE Capable: Not Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Solid State Device Drive: Not Certified Drive Temperature : N/A PI Eligibility: No Drive is formatted for PI information: No PI: No PI Drive's NCQ setting : N/A Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No Exit Code: 0x00 |
1 |
megacli -PDList -aAll | egrep "Enclosure Device ID:|Slot Number:|Inquiry Data:|Error" |
1 2 3 4 5 6 7 8 9 10 |
Enclosure Device ID: 252 Slot Number: 0 Media Error Count: 0 Other Error Count: 0 Inquiry Data: 50026B7256018085 KINGSTON SV300S37A120G 603ABBF0 Enclosure Device ID: 252 Slot Number: 1 Media Error Count: 0 Other Error Count: 0 Inquiry Data: J020102F00992 120GB SSD S0103A |
1 |
megacli -PdReplaceMissing -PhysDrv [252:1] -Array0 -row1 -a0 |
—
Chapter 2. Второй вариант решения:
1) Сначала найдем замененный (переткнутый) диск:
1 |
megacli -PDlist -aALL | less |
…
Эта команда отобразить детальную информацию по всем подключенным физическим дискам ко всем присутствующим контроллерам. Ищем среди вывалившегося списка что-то вроде такого:
1 2 3 4 5 6 7 |
... Enclosure Device ID: 252 Slot Number: 5 ... Firmware state: Unconfigured(Bad), Spun Up ... |
Нам нужно запомнить 3 параметра:
* Adapter #0 : номер адаптера, он будет написан в самой первой строчке всего листинга. В этом примере – номер 0;
* Enclosure Device ID: Номер хранилища, в нашем примере =252;
* Slot Number: Номер корзины в хранилище, в нашем примере =5.
Заметка: Если вместо “Unconfigured(Bad)” у Вас светится “Unconfigured(Good)” – переходите к п.4.
2) Если статус устройства “Unconfigured(Bad)”, то нам сначала нужно поднять статус до Good:
1 |
megacli -PDMakeGood -PhysDrv[252:5] -a0 |
Adapter: 0: EnclId-8 SlotId-3 state changed to Unconfigured-Good.
Заметьте форму записи здесь:
* [252:5] – это Enclosure Device ID:Slot number [E:S],
* -a0 – это номер адаптера #0.
3) Стираем информацию об инородных конфигурациях:
1 |
megacli -CfgForeign -Clear -a0 |
Foreign configuration 0 is cleared on controller 0.
4) Теперь подоткнем диск в существующий RAID.
Для этого нам нужно сначала найти выпавший диск – его Array и Row:
1 |
megacli -PdGetMissing -a0 |
Adapter 0 – Missing Physical drives
No. Array Row Size Expected
0 0 1 952720 MB
Exit Code: 0x00
Т.е., из примера выше, выпавший диск имеет Array=0 и Row=1. Что-ж, подтыкаем диск обратно в RAID:
1 |
megacli -PdReplaceMissing -PhysDrv[252:5] -array1 -row1 -a0 |
Adapter: 0: Missing PD at Array 1, Row 1 is replaced.
Exit Code: 0x00
И запускаем пересборку (синхронизацию) диска:
1 |
megacli -PDRbld -Start -PhysDrv[252:5] -a0 |
Started rebuild progress on device(Encl-8 Slot-3)
Exit Code: 0x00
Посмотреть текущий прогресс ребилда можно командой:
1 |
megacli -PDRbld -ShowProg -PhysDrv[252:5] -a0 |
[root@ ~]# megacli -PDRbld -ShowProg -PhysDrv[252:5] -a0
Rebuild Progress on Device at Enclosure 252, Slot 5 Completed 0% in 0 Minutes.
Exit Code: 0x00
[root@ ~]# megacli -PDRbld -ShowProg -PhysDrv[252:5] -a0
Rebuild Progress on Device at Enclosure 252, Slot 5 Completed 1% in 4 Minutes