LSI SAS RAID卡支持多个操作系统下刷新BIOS/FW,至少有以下几种:DOS,Linux,Windows.刷新的工具都可以使用LSI提供的MegaCLI,其中在Linux和Windows下也可以使用MegaRAID SAS RAID 卡的管理软件MSM(MegaRAID Storage Manager)来刷新。
本文重点介绍MegaCLI的刷新方法。
MegaCLI不纯粹是一个刷新BIOS/FW的工具,实际上,MegaCLI是一款功能十分强大、基于命令提示符的管理软件。
MegaCLI的所有命令参数如下:C:\>MegaCLI -?MegaCLI SAS RAID Management Tool Ver 1.01.27 February 15, 2007(c)Copyright 2007, LSI Logic Corporation, All Rights Reserved.MegaCli -vMegaCli -help|-h|?MegaCli -adpCountMegaCli -AdpSetProp {CacheFlushInterval -val}|{ RebuildRate -val}|{PatrolReadRate -val}|{BgiRate -val}|{CCRate -val}|{ReconRate -val}|{SpinupDriveCount -val}|{SpinupDelay -val}|{CoercionMode -val}|{ClusterEnable -val}|{PredFailPollInterval -val}|{BatWarnDsbl -val} |{EccBucketSize -val} | {EccBucketLeakRate -val}| AlarmEnbl | AlarmDsbl | AlarmSilence -aN|-a0,1,2|-aALLMegaCli -AdpGetProp CacheFlushInterval | RebuildRate | PatrolReadRate | BgiRate| CCRate | ReconRate | SpinupDriveCount | SpinupDelay | CoercionMode| PredFailPollInterval | EccBucketSize | EccBucketLeakRate | EccBucketCount| ClusterEnable | BatWarnDsbl | AlarmDsply -aN|-a0,1,2|-aALLMegaCli -AdpAllInfo -aN|-a0,1,2|-aALLMegaCli -AdpGetTime -aN|-a0,1,2|-aALLMegaCli -AdpSetTime yyyymmdd hh:mm:ss -aNMegaCli -AdpSetVerify -f fileName -aN|-a0,1,2|-aALLMegaCli -AdpBIOS -Enbl |-Dsbl | -SOE | -BE | -Dsply -aN|-a0,1,2|-aALLMegaCli -AdpBootDrive {-Set -Lx}|-Get -aN|-a0,1,2|-aALLMegaCli -AdpAutoRbld -Enbl|-Dsbl|-Dsply -aN|-a0,1,2|-aALLMegaCli -AdpCacheFlush -aN|-a0,1,2|-aALLMegaCli -AdpPR -Dsbl|EnblAuto|EnblMan|Start|Stop|Info|{SetDelay Val}-aN|-a0,1,2|-aALLMegaCli -FwTermLog -BBUoff|BBUoffTemp|BBUon|BBUGet|Dsply|Clear -aN|-a0,1,2|-aALLMegaCli -AdpDiag [val] -aN|-a0,1,2|-aALLval - Time in second.MegaCli -AdpBatTest -aN|-a0,1,2|-aALLMegaCli -AdpShutDown -aN|-a0,1,2|-aALLMegaCli -PDList -aN|-a0,1,2|-aALLMegaCli -PDGetNum -aN|-a0,1,2|-aALLMegaCli -pdInfo -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PDOnline -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PDOffline -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PDMakeGood -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PDHSP {-Set [-Dedicated [-ArrayN|-Array0,1,2...]] [-EnclAffinity] [-non Revertible]}|-Rmv -PhysDrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PDRbld -Start|-Stop|-ShowProg |-ProgDsply-PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PDClear -Start|-Stop|-ShowProg |-ProgDsply-PhysDrv [E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PdLocate {[-start] | -stop} -physdrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PdMarkMissing -physdrv[E0:S0,E1:S1,...] -aN|-a0,1,2|-aALLMegaCli -PdGetMissing -aN|-a0,1,2|-aALLMegaCli -PdReplaceMissing -physdrv[E0:S0] -arrayA, -rowB -aNMegaCli -PdPrpRmv [-UnDo] -physdrv[E0:S0] -aN|-a0,1,2|-aALLMegaCli -EncInfo -aN|-a0,1,2|-aALLMegaCli -PhyInfo -phyM -aN|-a0,1,2|-aALLMegaCli -LDInfo -Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALLMegaCli -LDSetProp {-Name LdNamestring} | -RW|RO|Blocked | WT|WB|RA|NORA|ADRA | Cached|Direct | -EnDskCache|DisDskCache | CachedBadBBU|NoCachedBadBBU-Lx|-L0,1,2|-Lall -aN|-a0,1,2|-aALLMegaCli -LDGetProp -Cache | -Access | -Name | -DskCache -Lx|-L0,1,2|-LALL-aN|-a0,1,2|-aALLMegaCli -LDInit {-Start [-full]}|-Abort|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALLMegaCli -LDCC -Start|-Abort|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALLMegaCli -LDBI -Enbl|-Dsbl|-getSetting|-Abort|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALLMegaCli -LDRecon {-Start -rX [{-Add | -Rmv} -Physdrv[E0:S0,...]]}|-ShowProg|-Pro gDsply-Lx -aNMegaCli -LdPdInfo -aN|-a0,1,2|-aALLMegaCli -LDGetNum -aN|-a0,1,2|-aALLMegaCli -CfgLdAdd -rX[E0:S0,E1:S1,...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached][CachedBadBBU|NoCachedBadBBU] [-szXXX [-szYYY ...]][-strpszM] [-Hsp[E0:S0,...]] [-AfterLdX] -aNMegaCli -CfgEachDskRaid0 [WT|WB] [NORA|RA|ADRA] [Direct|Cached][CachedBadBBU|NoCachedBadBBU] [-strpszM] -aN|-a0,1,2|-aALLMegaCli -CfgClr -aN|-a0,1,2|-aALLMegaCli -CfgDsply -aN|-a0,1,2|-aALLMegaCli -CfgLdDel -LX|-L0,2,5...|-LALL -aN|-a0,1,2|-aALLMegaCli -CfgFreeSpaceinfo -aN|-a0,1,2|-aALLMegaCli -CfgSpanAdd -r10 -Array0[E0:S0,E1:S1] -Array1[E0:S0,E1:S1] [-ArrayX[E0:S0,E1:S1] ...][WT|WB] [NORA|RA|ADRA] [Direct|Cached] [CachedBadBBU|NoCachedBadBBU][-szXXX[-szYYY ...]][-strpszM][-AfterLdX] -aNMegaCli -CfgSpanAdd -r50 -Array0[E0:S0,E1:S1,E2:S2,...] -Array1[E0:S0,E1:S1,E2:S2,...][-ArrayX[E0:S0,E1:S1,E2:S2,...] ...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached][CachedBadBBU|NoCachedBadBBU][-szXXX[-szYYY ...]][-strpszM][-AfterLdX] -aNMegaCli -CfgSave -f filename -aNMegaCli -CfgRestore -f filename -aNMegaCli -CfgForeign -Scan -aN|-a0,1,2|-aALLMegaCli -CfgForeign -Dsply [x] -aN|-a0,1,2|-aALLMegaCli -CfgForeign -Preview [x] -aN|-a0,1,2|-aALLMegaCli -CfgForeign -Import [x] -aN|-a0,1,2|-aALLMegaCli -CfgForeign -Clear [x] -aN|-a0,1,2|-aALLx - index of foreign configurations. Optional. All by default.MegaCli -AdpEventLog -GetEventLogInfo -aN|-a0,1,2|-aALLMegaCli -AdpEventLog -GetEvents -f <fileName> -aN|-a0,1,2|-aALLMegaCli -AdpEventLog -GetSinceShutdown -f <fileName> -aN|-a0,1,2|-aALLMegaCli -AdpEventLog -GetSinceReboot -f <fileName> -aN|-a0,1,2|-aALLMegaCli -AdpEventLog -IncludeDeleted -f <fileName> -aN|-a0,1,2|-aALLMegaCli -AdpEventLog -GetLatest n -f <fileName> -aN|-a0,1,2|-aALLMegaCli -AdpEventLog -Clear -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -GetBbuStatus -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -GetBbuCapacityInfo -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -GetBbuDesignInfo -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -GetBbuProperties -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -BbuLearn -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -BbuMfgSleep -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -BbuMfgSeal -aN|-a0,1,2|-aALLMegaCli -AdpBbuCmd -SetBbuProperties -f <fileName> -aN|-a0,1,2|-aALLMegaCli -AdpFacDefSet -aNMegaCli -AdpFwFlash -f filename [-NoSigChk] [-NoVerChk] -aN|-a0,1,2|-aALLMegaCli -AdpGetConnectorMode -ConnectorN|-Connector0,1|-ConnectorAll -aN|-a0,1,2|-aALLMegaCli -AdpSetConnectorMode -Internal|-External -ConnectorN|-Connector0,1|-ConnectorAll -aN|-a0,1,2|-aALLNote: The directly connected drives can be specified as [:S]The following options may be given at the end of any command above:[-Silent] [-AppLogFile filename] [-NoLog]MegaCli -PhyErrorCounters -aN|-a0,1,2|-aALL其中用红色标记出来的命令就是刷新BIOS/FW的命令,MegaCli -AdpFwFlash -f filename [-NoSigChk] [-NoVerChk] -aN|-a0,1,2|-aALL具体含义如下:MegaCli -AdpFwFlash -f (固定参数)filename(FW文件的名称,一般情况下是.rom文件)[NoSigChk][NoVerChk] (当需要刷新的FW比RAID卡本身的FW要低的时候,需用使用这两个参数来屏蔽卡本身对于FW版本设计的检测,否则,SASCRAID不支持刷新比卡本身FW低的版本)-aN|-a0,1,2| -aALL(代表机器上卡的编号,比如说机器上有两片卡,按照PCI-E槽的编号,刷新槽0上的卡使用-a0,刷新槽1上的卡使用参数a-2,全部刷新的话使用命令-a0,1或者-aALL).MegaCli –Adpm0Flash -f filename [-NoSigChk] [-NoVerChk]。