6

Megacli用来重建不知道正确槽位的Raid

 8 months ago
source link: https://bajie.dev/posts/20231227-megacli_rebuild/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Megacli用来重建不知道正确槽位的Raid

2023-12-27 1 分钟阅读

192.168.85.7上面有两个Raid

一个Raid1, 500G,应该是两块盘,现在丢了一块,正确的槽位不知道是哪一个 另一个是Raid0,4TB,运行正常

现在在一个新槽位上插了一块硬盘,但是槽位不对,没有自动rebuild,状态是unconfiged good.

首先查一下丢失的盘

/opt/MegaRAID/MegaCli/MegaCli64 -Pdgetmissing -a0
2021-07-08_112751.png

得到参数Array 0,Row 1

首先进行替换,新盘的id是32:2,替换掉Array0 Row1的盘

/opt/MegaRAID/MegaCli/MegaCli64 -PdReplaceMissing -PhysDrv [32:2] -Array0 -row1 -a0

2021-07-08_113110.png

然后强制这块新盘开始重建

/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [32:2] -a0

2021-07-08_113250.png

随时查看一下进度

/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv [32:2] -a0

2021-07-08_113429.png

上面已经走了5%了,走完就ok了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK