Raid卡常用命令

莫让年华付水流 / 2023-05-03 / 原文

1.raid操作

#点3槽位灯:
/opt/MegaRAID/MegaCli/MegaCli64 -PDLocate -start -physdrv[32:3] -a0
#关3槽位灯:
/opt/MegaRAID/MegaCli/MegaCli64 -PDLocate -stop -physdrv[32:3] -a0

#删除raid
/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L1 -A0
注:L1的1为RIAD组 Target Id 号
#创建raid5
/opt/MegaRAID/MegaCli/MegaCli64 CfgLDAdd -r5 [32:2,32:3,32:4,41:5] -strpsz256 -A0
注:-strpsz 条带大小,raid卡默认即可,DellR730默认是64。华为RH288v3默认是256

 

参考:
https://segmentfault.com/a/1190000008780600
https://zhuanlan.zhihu.com/p/358739776?utm_id=0