1.查看raid控制器,所有信息
/opt/MegaRAID/storcli/storcli64 /c0 show
2.查看raid信息
/opt/MegaRAID/storcli/storcli64 /c0 /vall show
3.查看raid信息
/opt/MegaRAID/storcli/storcli64 /c0 /vall show
4.删除raid信息
/opt/MegaRAID/storcli/storcli64 /c0 /v0 delete force
#v0是raid卡中raid组的ID
5.查看所有磁盘信息
/opt/MegaRAID/storcli/storcli64 /c0 /eall /sall show
6.查看磁盘信息
/opt/MegaRAID/storcli/storcli64 /c0 /eall /sall show
7.删除硬盘
/opt/MegaRAID/storcli/storcli64 /c0/e8 /s4 set offline
/opt/MegaRAID/storcli/storcli64 /c0/e8 /s4 set missing
8.创建raid
/opt/MegaRAID/storcli/storcli64 /c0 add vd r5 Size=all name=disk drives=8:4-7
#4-7为槽位
#r5为raid5
#name为名称
9.将磁盘设置jbod和raid切换
/opt/MegaRAID/storcli/storcli64 /c0 /eall /s01 set jbod
/opt/MegaRAID/storcli/storcli64 /c0 /eall /s01 set good force
10.查看磁盘rebuild时间
/opt/MegaRAID/storcli/storcli64 /c0 /eall /s01 show rebuild
11.磁盘点亮
#点亮
/opt/MegaRAID/storcli/storcli64 /c0 /eall /s1 start locate
#变暗
/opt/MegaRAID/storcli/storcli64 /c0 /eall /s1 stop locate
12.raid卡清理缓存
#使用命令查看raid卡的preserved cache,CX对应具体的raid卡number:
/opt/MegaRAID/storcli/storcli64 /cx show preservedcache
#使用指令清除raid卡的preserved cache,CX对应具体的raid卡number,vx为对应的逻辑阵列:
/opt/MegaRAID/storcli/storcli64 /cx /vx delete preservedcache