raid卡,相关的指令

常用命令:    a表示适配器,aALL所有的适配器

 

/opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -a0  简要信息,可以看到BBU PD、VD 和Target ID

/opt/MegaRAID/MegaCli/MegaCli64 -Version -Pd -a0  显示所有物理磁盘

 

#/opt/MegaRAID/MegaCli/MegaCli64 -adpCount  【显示适配器个数】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –a0 【显示适配器时间】

#/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -a0  查raid卡信息

 

#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0  查看硬盘信息

#/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -a0  查raid级别,查询target ID,单独删除某盘的raid时,需要用到      或者 # /opt/MegaRAID/MegaCli/MegaCli64 -LDpdInfo -a0

Primary-0, Secondary-0, RAID Level Qualifier-0 = RAID-0
Primary-1, Secondary-0, RAID Level Qualifier-0 = RAID-1
Primary-5, Secondary-0, RAID Level Qualifier-3 = RAID-5
Primary-6, Secondary-0, RAID Level Qualifier-3 = RAID-6
Primary-1, Secondary-3, RAID Level Qualifier-0 = RAID-10

 

/opt/MegaRAID/MegaCli/MegaCli64 -Version -Pd -a0     一般是按照 启动盘 SSD HDD 盘顺序来排列

 

/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L9 -a0    单独删除某盘的raid L后面接的就是Target ID 

#/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL    【显示Raid卡型号,Raid设置,Disk相关信息】
 
 
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -a0  查看电池所有信息
#/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -a0  查看raid卡日志
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpEventLog -GetLatest 20 -f /tmp/events.txt -a0     f 指定输出文件
#/opt/MegaRAID/MegaCli/MegaCli64  -AdpAlILog -a0  输出全部日志
 
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -a0【显示BBU容量信息】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -a0 【显示BBU设计参数】
#/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -a0【显示当前BBU属性】
 
另外,发现,不同的RAID卡,对4KN盘的支持,不一样,4KN盘要求的最小条带为512K(猜测,网上没查到相关资料),有些卡,会自动调整4KN盘的条带为512K,而有些需要指定参数,否则会出现奇怪的报错。
/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd -r0[9:4] Direct NoCachedBadBBU -strpsz512 -a0 使用-srtpsz 来指定条带宽度。    r0代表raid0
posted @ 2017-07-25 19:58  你不知道的是  阅读(1920)  评论(0)    收藏  举报