Это вам система мстит за карниз и за жестяка. И заодно за такое обращение с ней.
В WEB Console должна быть возможность импортировать «чужой» (Foreign) диск без потери информации на нём. Вверху, последним пунктом в меню, есть магическая ссылка «Help», после нажатия на которую и при правильном последующем запросе откроется статья, в которой весь процесс должен быть описан весьма подробно (Intel обычно делает именно так).
Это сообщение посчитали полезным следующие участники:
Если же вы забыли свой пароль на форуме, то воспользуйтесь данной ссылкой для восстановления пароля.
Система обнаружила забытую конфу и предложила импортировать
Еще ара вопросов в стиле «. а точноточноточно уверены. » ииии В итоге жестяк нашелся.
Еще раз спасибо — все живы и здоровы. [решено]
——- Русские на войне своих не бросают!
Последний раз редактировалось Grenky, 05-09-2014 в 02:58 . Причина: картинку заменил
Источник
Выполняю установку, настройку, сопровождение серверов. Для уточнения деталей используйте форму обратной связи
Данная утилита от LSI так же позволяет оперировать рейд-контроллерами от Dell. Но замена дисков через такую утилиту — целый hardcore, только для настоящих Tru-админов )).
Тестовый стенд: контроллер PERC 6/i, RAID-1, Linux MegaCli64, выпал 1 диск.
Смотрим состояние RAID’a:
# /usr/local/bin/MegaCli -LDInfo -Lall -aALL | grep State State : Degraded
Какой диск стал причиной этому:
# MegaCli -PDList -aAll | egrep «Enclosure Device ID:|Slot Number:|Inquiry Data:|Error Count:|state» Enclosure Device ID: 32 Slot Number: 0 Media Error Count: 0 Other Error Count: 0 Firmware state: Online, Spun Up Inquiry Data: FUJITSU MBC2073RC D506BV03P9605GU7 Enclosure Device ID: 32 Slot Number: 1 Media Error Count: 16655 Other Error Count: 15 Firmware state: Failed Inquiry Data: SEAGATE ST973452SS 00076TA0EDKH Enclosure Device ID: 32 Slot Number: 2 Media Error Count: 0 Other Error Count: 0 Firmware state: Online, Spun Up Inquiry Data: SEAGATE ST973451SS SM043PD1WB4Z Enclosure Device ID: 32 Slot Number: 3 Media Error Count: 0 Other Error Count: 0 Firmware state: Online, Spun Up Inquiry Data: SEAGATE ST973451SS SM043PD1WBN7 Enclosure Device ID: 32 Slot Number: 4 Media Error Count: 0 Other Error Count: 0 Firmware state: Online, Spun Up Inquiry Data: SEAGATE ST973451SS SM043PD1T7EG Enclosure Device ID: 32 Slot Number: 5 Media Error Count: 0 Other Error Count: 0 Firmware state: Online, Spun Up Inquiry Data: FUJITSU MBC2073RC D506BV03P9605GF0
Как видим, это диск [32:1]. Именно так к нему в дальнейшем нужно обращаться. Что бы заменить диск, нужно его перевести в offline, пометить как «пропавший» и удалить:
Как заменить диск в массиве, если rebuild не начался автоматически (пример взят из http://wiki.hetzner.de)?
Статус нового диска должен быть «Unconfigured (good)«. Это можно проверить с помощью PDList. Если статус диска «Unconfigured (bad)«, то его надо сначала сделать пригодным для использования как показано ниже:
Ещё один момент. Иногда, после того, как вы перевели диск из bad в good, он может оказаться в «не родной» конфигурации:
Foreign State: Foreign
и при попытке что-то с ним сделать получаем ошибку:
# MegaCli -CfgLdAdd -r0[80:17] -a0 The specified physical disk does not have the appropriate attributes to complete the requested command. Exit Code: 0x26
Обнаружить сколько дисков в такой конфигурации можно так:
# MegaCli -CfgForeign -Scan -a0 There are 1 foreign configuration(s) on controller 0. Exit Code: 0x00
Очистить «не родную» конфигурацию:
# MegaCli -CfgForeign -Clear -a0 Foreign configuration 0 is cleared on controller 0. Exit Code: 0x00
Если диск «good«, то им можно заменить отсутствующий диск. Для этого надо указать массив и позицию, где надо произвести замену. Эти значения можно получить, например, из megacli -CfgDsply -a0. Если диск отсутствует в массиве, запись «Physical Disk:» будет показана, но без дополнительно информации. В следующем примере четвёртый диск первого массива (Array0) заменяется диком из Enclosure 245 Slot 3 («PhysDrv[245:3]«):
While replacing a bad drive with a drive that used to be part of another RAID array configuration, the RAID refused to automatically rebuild, thinking that I might want to import the configuration from this disk (or that there’s data on there that I might need).
Simply inserting the drive doesn’t make the controller rebuild the array with that disk. Here’s how to manually make the drive get along with the rest of the new array:
(Note: this is a 64 bit server, so the MegaCli client I’m using is called “MegaCli64”, if you are not running x64, you can simply substitute the commands below with the path to your megacli binary.)
Based on the information obtained above, I now know that the disk drive I just replaced is [32:4] ([enclosureid:slotnumber]) and is currently being reported as ‘Unconfigured(bad)’.
To bring this drive back online run:
# MegaCli64 -PDMakeGood -PhysDrv[32:4] -a0 Adapter: 0: EnclId-32 SlotId-4 state changed to Unconfigured-Good.
The controller will now recognize the disk as being a “foreign” one. This does not mean it was made in Japan (though, it likely was). It means it has detected some RAID configuration/data on it and thus, considers it as a disk being part of an array that may be imported into current controller configuration. Because of this, it will not automatically rebuild until you force it to.
Now you can ask the controller to scan for foreign configurations and remove them:
# MegaCli64 -CfgForeign -Scan -a0 There are 1 foreign configuration(s) on controller 0.
# MegaCli64 -CfgForeign -Clear -a0 Foreign configuration 0 is cleared on controller 0.
The disk should now be available for rebuilding into your new RAID array. To confirm, run this:
Excellent. We have a good, recognized (yet still unconfigured) drive now. Now we have all we need to add the disk back into the new array, and rebuild:
Get the disk [32:4] back into array 1, as disk 4:
# MegaCli64 -PdReplaceMissing -PhysDrv[32:4] -array1 -row4 -a0 Adapter: 0: Missing PD at Array 1, Row 4 is replaced
And finally start rebuilding it:
# megacli -PDRbld -Start -PhysDrv[32:4] -a0 Started rebuild progress on device(Encl-32 Slot-4)
Now, sit back, relax, grab a smoke and wait for it to rebuild itself into your new RAID array. Not so foreign anymore, huh?
Источник
MohanKumar
Wednesday, 27 March 2019
How to make online of unconfigure good disk in Megaraid CLI
MegaRAID — unconfigure good disk in MegaCLI
List the available disk and find out the firmware state.
# /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL
— Then List if any foreign configuration.
[07:26:46] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -CfgForeign -Scan -a0 There are 1 foreign configuration(s) on controller 0. Exit Code: 0x00
— Clear the foreign configuration.
[07:27:43] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -CfgForeign -Clear -a0 Foreign configuration 0 is cleared on controller 0. Exit Code: 0x00
— Confirm the configuration is successfully cleared.
[07:27:45] test:/opt/MegaRAID/MegaCli # ./MegaCli64 -CfgForeign -Scan -a0 There is no foreign configuration on controller 0. Exit Code: 0x00
============================================================================== Adapter: 0 Product Name: ServeRAID M5014 SAS/SATA Controller Memory: 256MB BBU: Absent Serial No: SV33021667 ============================================================================== Number of DISK GROUPS: 1
DISK GROUP: 0 Number of Spans: 1 SPAN: 0 Span Reference: 0x00 Number of PDs: 2 Number of VDs: 1 Number of dedicated Hotspares: 0 Virtual Drive Information: Virtual Drive: 0 (Target Id: 0) Name : RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 Size : 135.972 GB Mirror Data : 135.972 GB State : Degraded Strip Size : 128 KB Number Of Drives : 2 Span Depth : 1 Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disabled Encryption Type : None Is VD Cached: No Physical Disk Information: Physical Disk: 0
Physical Disk: 1 Enclosure Device ID: 252 Slot Number: 1 Drive’s postion: DiskGroup: 0, Span: 0, Arm: 1 Enclosure position: 0 Device Id: 9 WWN: 500003950809D34D Sequence Number: 2 Media Error Count: 132 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS Raw Size: 136.731 GB [0x11176d60 Sectors] Non Coerced Size: 136.231 GB [0x11076d60 Sectors] Coerced Size: 135.972 GB [0x10ff2000 Sectors] Firmware state: Online, Spun Up Device Firmware Level: SC29 Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x500003950809d34e SAS Address(1): 0x0 Connected Port Number: 0(path0) Inquiry Data: IBM-ESXSMK1401GRRB SC2993706J93SC29SC29SC29 IBM FRU/CRU: 42D0678 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: Hard Disk Device Drive Temperature :27C (80.60 F) PI Eligibility: No Drive is formatted for PI information: No PI: No PI Drive’s write cache : Disabled Port-0 : Port status: Active Port’s Linkspeed: 6.0Gb/s Port-1 : Port status: Active Port’s Linkspeed: Unknown Drive has flagged a S.M.A.R.T alert : No Exit Code: 0x00