Как восстановить RAID LSI MegaRAID SAS 9260-4i ?

Здравствуйте!
У меня был зеркальный рэйд.
В smart я увидел что один из дисков сыпет ошибки.
Решил заменить диск.
Развалил рэйд или он из-за диска развалился.
Очень прошу помочь мне собрать рэйд!

Как все было до моих действий:
# megacli -CfgDsply -aALL

==============================================================================
Adapter: 0
Product Name: LSI MegaRAID SAS 9260-4i
Memory: 512MB
BBU: Absent
Serial No: SV22116973
==============================================================================
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                : 2.728 TB
Sector Size         : 512
Mirror Data         : 2.728 TB
State               : Optimal
Strip Size          : 64 KB
Number Of Drives    : 2
Span Depth          : 1
Default Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAhead, Cached, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Disk's Default
Encryption Type     : None
Is VD Cached: Yes
Cache Cade Type : Read Only
Physical Disk Information:
Physical Disk: 0
Enclosure Device ID: 252
Slot Number: 1
Drive's position: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: N/A
Device Id: 4
WWN: 5000c5006035c489
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: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.728 TB [0x15d400000 Sectors]
Sector Size:  0
Firmware state: Online, Spun Up
Device Firmware Level: CC46
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x4433221102000000
Connected Port Number: 0(path0)
Inquiry Data:             W1F2LX05ST3000DM001-1CH166                      CC46
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: Hard Disk 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

Physical Disk: 1
Enclosure Device ID: 252
Slot Number: 0
Drive's position: DiskGroup: 0, Span: 0, Arm: 1
Enclosure position: N/A
Device Id: 5
WWN: 5000c5004d8656ca
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: 2.728 TB [0x15d50a3b0 Sectors]
Non Coerced Size: 2.728 TB [0x15d40a3b0 Sectors]
Coerced Size: 2.728 TB [0x15d400000 Sectors]
Sector Size:  0
Firmware state: Online, Spun Up
Device Firmware Level: CC4B
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x4433221103000000
Connected Port Number: 1(path0)
Inquiry Data:             Z1F0PXKYST3000DM001-9YN166                      CC4B
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: Hard Disk 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


Диск [252:0] выдавал кучу СМАРТ-ошибок.
Я решил инициировать его замену.

Сделал:
root@rescue ~ # megacli -PDOffline -PhysDrv [252:0] -a0

Adapter: 0: EnclId-252 SlotId-0 state changed to OffLine.

Exit Code: 0x00
root@rescue ~ #


В выводе предыдущей команды увидел изменения:

State               : Degraded
...
Firmware state: Offline


Ребутнул я сервер и проверил что сервер загружается в установленную ОС.
Загружается ОК.

Сделал следующие действия:
root@rescue ~ # megacli -PDMarkMissing -PhysDrv [252:0] -a0

EnclId-252 SlotId-0 is marked Missing.

Exit Code: 0x00
root@rescue ~ # megacli -PdPrpRmv -PhysDrv [252:0] -a0


Prepare for removal Success

Exit Code: 0x00
root@rescue ~ #


Заменил диск.
Гружусь. Не грузится!!!

Результат:
root@rescue ~ # megacli -CfgDsply -a0

==============================================================================
Adapter: 0
Product Name: LSI MegaRAID SAS 9260-4i
Memory: 512MB
BBU: Absent
Serial No: SV22116973
==============================================================================
Number of DISK GROUPS: 0


Exit Code: 0x00
root@rescue ~ # megacli -LDInfo -Lall -Aall


Adapter 0 -- Virtual Drive Information:
Adapter 0: No Virtual Drive Configured.

Exit Code: 0x00
root@rescue ~ #


Вставил снова умирающий диск вместо замененного.
Перегрузился.
Та же проблема.

Помогите, пожалуйста восстановить raid.

Спасибо!
  • Вопрос задан
  • 8103 просмотра
Пригласить эксперта
Ответы на вопрос 1
@brutal_lobster
Почему не юзали оф. доку?
Вы уверены, что заменили нужный диск? Очень странно, что vd пропал)
Для начала - сделайте копию диска :)

Покажите:
MegaCli –LDInfo -Lall -aALL
MegaCli --PDList -aALL
MegaCli –CfgForeign –Scan -aALL
MegaCli –CfgForeign –Preview -aALL

Если foreign config похож на правду - импортируйте его и запускайте ребилд по доке.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы