MegaCli命令使用指南

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

MegaCli命令使用指南1.命令使用:2.#/opt/MegaRAID/MegaCli/MegaCli64-LDInfo-Lall-aALL查raid级别3.#/opt/MegaRAID/MegaCli/MegaCli64-AdpAllInfo-aALL查raid卡信息4.#/opt/MegaRAID/MegaCli/MegaCli64-PDList-aALL查看硬盘信息5.#/opt/MegaRAID/MegaCli/MegaCli64-AdpBbuCmd-aAll查看电池信息6.#/opt/MegaRAID/MegaCli/MegaCli64-FwTermLog-Dsply-aALL查看raid卡日志7.#/opt/MegaRAID/MegaCli/MegaCli64-adpCount【显示适配器个数】8.#/opt/MegaRAID/MegaCli/MegaCli64-AdpGetTime–aALL【显示适配器时间】9.#/opt/MegaRAID/MegaCli/MegaCli64-AdpAllInfo-aAll【显示所有适配器信息】10.#/opt/MegaRAID/MegaCli/MegaCli64-LDInfo-LALL-aAll【显示所有逻辑磁盘组信息】11.#/opt/MegaRAID/MegaCli/MegaCli64-PDList-aAll【显示所有的物理信息】12.#/opt/MegaRAID/MegaCli/MegaCli64-AdpBbuCmd-GetBbuStatus-aALL|grep'ChargerStatus'【查看充电状态】13.#/opt/MegaRAID/MegaCli/MegaCli64-AdpBbuCmd-GetBbuStatus-aALL【显示BBU状态信息】14.#/opt/MegaRAID/MegaCli/MegaCli64-AdpBbuCmd-GetBbuCapacityInfo-aALL【显示BBU容量信息】15.#/opt/MegaRAID/MegaCli/MegaCli64-AdpBbuCmd-GetBbuDesignInfo-aALL【显示BBU设计参数】16.#/opt/MegaRAID/MegaCli/MegaCli64-AdpBbuCmd-GetBbuProperties-aALL【显示当前BBU属性】17.#/opt/MegaRAID/MegaCli/MegaCli64-cfgdsply-aALL【显示Raid卡型号,Raid设置,Disk相关信息】18.3.磁带状态的变化,从拔盘,到插盘的过程中。19.Device|Normal|Damage|Rebuild|Normal20.VirtualDrive|Optimal|Degraded|Degraded|Optimal21.PhysicalDrive|Online|Failed–Unconfigured|Rebuild|Online22.4.查看磁盘缓存策略23.#/opt/MegaRAID/MegaCli/MegaCli64-LDGetProp-Cache-L0-a024.or25.#/opt/MegaRAID/MegaCli/MegaCli64-LDGetProp-Cache-L1-a026.or27.#/opt/MegaRAID/MegaCli/MegaCli64-LDGetProp-Cache-LALL-a028.ro29.#/opt/MegaRAID/MegaCli/MegaCli64-LDGetProp-Cache-LALL-aALL30.ro31.#/opt/MegaRAID/MegaCli/MegaCli64-LDGetProp-DskCache-LALL-aALL32.5.设置磁盘缓存策略33.缓存策略解释:34.35.WT(Writethrough36.WB(Writeback)37.NORA(Noreadahead)38.RA(Readahead)39.ADRA(Adaptivereadahead)40.Cached41.Direct42.例子:43.#/opt/MegaRAID/MegaCli/MegaCli64-LDSetPropWT|WB|NORA|RA|ADRA-L0-a044.or45.#/opt/MegaRAID/MegaCli/MegaCli64-LDSetProp-Cached|-Direct-L0-a046.or47.enable/disablediskcache48.#/opt/MegaRAID/MegaCli/MegaCli64-LDSetProp-EnDskCache|-DisDskCache-L0-a049.6.创建一个raid5阵列,由物理盘2,3,4构成,该阵列的热备盘是物理盘550.#/opt/MegaRAID/MegaCli/MegaCli64-CfgLdAdd-r5[1:2,1:3,1:4]WBDirect-Hsp[1:5]-a051.7.创建阵列,不指定热备52.#/opt/MegaRAID/MegaCli/MegaCli64-CfgLdAdd-r5[1:2,1:3,1:4]WBDirect-a053.8.删除阵列54.#/opt/MegaRAID/MegaCli/MegaCli64-CfgLdDel-L1-a055.9.在线添加磁盘56.#/opt/MegaRAID/MegaCli/MegaCli64-LDRecon-Start-r5-Add-PhysDrv[1:4]-L1-a057.10.阵列创建完后,会有一个初始化同步块的过程,可以看看其进度。58.#/opt/MegaRAID/MegaCli/MegaCli64-LDInit-ShowProg-LALL-aALL59.或者以动态可视化文字界面显示60.#/opt/MegaRAID/MegaCli/MegaCli64-LDInit-ProgDsply-LALL-aALL61.11.查看阵列后台初始化进度62.#/opt/MegaRAID/MegaCli/MegaCli64-LDBI-ShowProg-LALL-aALL63.或者以动态可视化文字界面显示64.#/opt/MegaRAID/MegaCli/MegaCli64-LDBI-ProgDsply-LALL-aALL65.12.指定第5块盘作为全局热备66.#/opt/MegaRAID/MegaCli/MegaCli64-PDHSP-Set[-EnclAffinity][-nonRevertible]-PhysDrv[1:5]-a067.13.指定为某个阵列的专用热备68.#/opt/MegaRAID/MegaCli/MegaCli64-PDHSP-Set[-Dedicated[-Array1]][-EnclAffinity][-nonRevertible]-PhysDrv[1:5]-a069.14.删除全局热备70.#/opt/MegaRAID/MegaCli/MegaCli64-PDHSP-Rmv-PhysDrv[1:5]-a071.15.将某块物理盘下线/上线72.#/opt/MegaRAID/MegaCli/MegaCli64-PDOffline-PhysDrv[1:4]-a073.#/opt/MegaRAID/MegaCli/MegaCli64-PDOnline-PhysDrv[1:4]-a074.16.查看物理磁盘重建进度75.#/opt/MegaRAID/MegaCli/MegaCli64-PDRbld-ShowProg-PhysDrv[1:5]-a076.或者以动态可视化文字界面显示77.#/opt/MegaRAID/MegaCli/MegaCli64-PDRbld-ProgDsply-PhysDrv[1:5]-a078.79.磁带状态的变化,从拔盘,到插盘的过程中:80.Device|Normal|Damage|Rebuild|Normal81.VirtualDrive|Optimal|Degraded|Degraded|Optimal82.PhysicalDrive|Online|Failed–Unconfigured|Rebuild|Online83.1、查看RAID级别84.85.2、查看RAID卡信息,主要输出RAID卡的一些配置信息86.87.88.RAIDLevel:Primary-1,Secondary-0,RAIDLevelQualifier-0Size:1.086TBState:OptimalStripSize:128KBNumberOfDrivesperspan:4//表示每4个物理盘做成一个RAID1盘组SpanDepth:2//表示共2个RAID1盘组做成了RAID1089.90.3、查看所有硬盘的信息91./opt/MegaCli64-pdlist–aALL92.93.4、查看当前raid缓存状态,raid缓存状态设置为wb的话要注意电池放电事宜,设置电池放电模式为自动学习模式94./opt/MegaRAID/MegaCli/MegaCli64-ldgetprop-dskcache-lall-aall95.96.5、raid电池设置相关97.查看电池状态信息(DisplayBBUStatusInformation)MegaCli-AdpBbuCmd-GetBbuStatus-aN|-a0,1,2|-aALLMegaCli-AdpBbuCmd-GetBbuStatus-aALL98.查看电池容量(DisplayBBUCapacityInformation)MegaCli-AdpBbuCmd-GetBbuCapacityInfo-aN|-a0,1,2|-aALLMegaCli-AdpBbuCmd-GetBbuCapacityInfo–aALL99.查看电池设计参数(DisplayBBUDesignParameters)MegaCli-AdpBbuCmd-GetBbuDesignInfo-aN|-a0,1,2|-aALLMegaCli-AdpBbuCmd-GetBbuDesignInfo–aALL100.查看电池属性(DisplayCurrentBBUProperties)MegaCli-AdpBbuCmd-GetBbuProperties-aN|-a0,1,2|-aALLMegaCli-AdpBbuCmd-GetBbuProperties–aALL101.设置电池为学习模式为循环模式(StartBBULearningCycle)DescriptionStartsthelearningcycleontheBBU.Noparameterisneededforthisoption.MegaCli-AdpBbuCmd-BbuLearn-aN|-a0,1,2|-aALL102.设置磁盘的缓存模式和访问方式(ChangeVirtualDiskCacheandAccessParameters)DescriptionAllowsyoutochangethefollowingvirtualdiskparameters:-WT(Writethrough),WB(Writeback):Selectswritepolicy.-NORA(Noreadahead),RA(Readahead),ADRA(Adaptivereadahead):Selectsreadpolicy.-Cached,-Direct:Selectscachepolicy.-RW,-RO,Blocked:Selectsaccesspolicy.-EnDskCache:Enablesdiskcache.-DisDskCache:Disablesdiskcache.MegaCli-LDSetProp{WT|WB|NORA|RA|ADRA|-Cached|Direct}|{-RW|RO|Blocked}|{-Name[string]}|{-

1 / 8
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功