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

转载于:https://www.cnblogs.com/betterman-hine/p/7236167.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值