台式电脑

汽车诊断电脑vxdiag怎么样(Linux系统下安装 LSI StorCLI64工具查看和管理RAID卡)

OS环境:CentOS6.3/CentOS7.1

Linux系统下安装 LSI StorCLI64工具查看和管理RAID卡

Redhat徽标和红墙上的字母

一.可用如下命令查询服务器raid卡硬件相关信息:

[root@localhost/]#dmesg|grepraidmegaraid_sas0000:04:00.0:PCIINTA->GSI30(level,low)->IRQ30megaraid_sas0000:04:00.0:settinglatencytimerto64megaraid_sas0000:04:00.0:irq49forMSI/MSI-X[root@localhost/]#cat/proc/scsi/scsiAttacheddevices:Host:scsi4Channel:02Id:00Lun:00Vendor:LSIModel:MR9260-8iRev:2.70Type:Direct-AccessANSISCSIrevision:05#可以看出,此为LSIMR9660-8iraid卡

二.去LSI官网下载LatestMegaRAIDStorCLI,Version:1.14.12Size:32.4M:

汽车诊断电脑vxdiag怎么样(Linux系统下安装 LSI StorCLI64工具查看和管理RAID卡)

下载地址:http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/1.14.12_StorCLI.zip

Linux系统下安装 LSI StorCLI64工具查看和管理RAID卡

高性能硬件raid控制器

三.安装StorCLI:

ToinstallStorCLI,performthefollowingsteps:1.UnziptheStorCLIpackage.2.ToinstalltheStorCLIRPM,runtherpm-ivhcommand.3.ToupgradetheStorCLIRPM,runtherpm-Uvhcommand.

说明:安装完毕之后storcli64所在路径为/opt/MegaRAID/storcli/storcli64,在此路径下可以运行storcli64工具,切换到其它路径下则不能执行,此时为了使用方便,可以考虑将/opt/MegaRAID/storcli追加到系统PATH变量,或者像下面这样做(建议):

ln-s/opt/MegaRAID/storcli/storcli64/bin/storcliln-s/opt/MegaRAID/storcli/storcli64/sbin/storcliLinux系统下安装 LSI StorCLI64工具查看和管理RAID卡

Ssh-安全壳

四.StorCLI基本使用:

#Raid数量及当前状态[root@localhostLinux]#storclishowctrlcountStatusCode=0Status=SuccessDescription=NoneControllerCount=1#查询虚拟磁盘大小,raid结构等[root@localhostLinux]#storcli/c0/v0showController=0Status=SuccessDescription=NoneVirtualDrives:==============----------------------------------------------------------DG/VDTYPEStateAccessConsistCachesCCSizeName----------------------------------------------------------0/0RAID10OptlRWNoRWTD-1.089TB----------------------------------------------------------Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=PartiallyDegraded|dgrd=DegradedOptl=Optimal|RO=ReadOnly|RW=ReadWrite|HD=Hidden|B=Blocked|Consist=Consistent|R=ReadAheadAlways|NR=NoReadAhead|WB=WriteBack|AWB=AlwaysWriteBack|WT=WriteThrough|C=CachedIO|D=DirectIO|sCC=ScheduledCheckConsistency#可以看出此为RAID10,一个虚拟磁盘,大小为1.089TB#查看物理硬盘[root@localhostLinux]#storcli/c0/eall/sallshowController=0Status=SuccessDescription=ShowDriveInformationSucceeded.DriveInformation:=================-------------------------------------------------------------------------EID:SltDIDStateDGSizeIntfMedSEDPISeSzModelSp-------------------------------------------------------------------------252:412Onln0558.406GBSASHDDNN512BST3600057SSU252:513Onln0558.406GBSASHDDNN512BST3600057SSU252:614Onln0558.406GBSASHDDNN512BST3600057SSU252:715Onln0558.406GBSASHDDNN512BST3600057SSU-------------------------------------------------------------------------EID-EnclosureDeviceID|Slt-SlotNo.|DID-DeviceID|DG-DriveGroupDHS-DedicatedHotSpare|UGood-UnconfiguredGood|GHS-GlobalHotspareUBad-UnconfiguredBad|Onln-Online|Offln-Offline|Intf-InterfaceMed-MediaType|SED-SelfEncryptiveDrive|PI-ProtectionInfoSeSz-SectorSize|Sp-Spun|U-Up|D-Down|T-Transition|F-ForeignUGUnsp-Unsupported|UGShld-UnConfiguredshielded|HSPShld-HotspareshieldedCFShld-Configuredshielded#可以看到总计有四颗硬盘,每一颗大小448.406GB,是否在线等#查看StorCLI帮助信息[root@localhostLinux]#storcli-hStorageCommandLineToolVer1.14.12Nov25,2014(c)Copyright2014,LSICorporation,AllRightsReserved.storcli-vstorcli-h|-help|?storcli-h|-help|?legacystorclishowstorclishowallstorclishowctrlcountstorclishowfile=storcli/cxaddvdr[0|1|5|6|00|10|50|60][Size=,,..|all][name=,..]drives=e:s|e:s-x|e:s-x,y,e:s-x,y,z[PDperArray=x][SED][pdcache=on|off|default][pi][DimmerSwitch(ds)=default|automatic(auto)|none|maximum(max)|MaximumWithoutCaching(maxnocache)][WT|WB|AWB][nora|ra][direct|cached][cachevd][Strip=<8|16|32|64|128|256|512|1024>][AfterVd=X][EmulationType=0|1|2][Spares=[e:]s|[e:]s-x|[e:]s-x,y][force][ExclusiveAccess][Cbsize=0|1|2Cbmode=0|1|2|3|4|7]storcli/cxaddvdeachr0[name=,..][drives=e:s|e:s-x|e:s-x,y][SED][pdcache=on|off|default][pi][DimmerSwitch(ds)=default|automatic(auto)|none|maximum(max)|MaximumWithoutCaching(maxnocache)][WT|WB|AWB][nora|ra][direct|cached][EmulationType=0|1|2][Strip=<8|16|32|64|128|256|512|1024>][ExclusiveAccess][Cbsize=0|1|2Cbmode=0|1|2|3|4|7]storcli/cxaddVDcachecade|nytrocacher[aid][0,1,10,1EC]drives=[e:]s|[e:]s-x|[e:]s-x,y[WT|WB][assignvds=0,1,2][BOOTVOLSIZE=x]storcli/cxaddVDcachecade|nytrocacheslicer[aid][0,1]size=[name=]drives=[e:]s|[e:]s-x|[e:]s-x,y[WT|WB][assignvds=0,1,2]size=[,,..][name=,..][WT|WB][nora|ra][direct|cached][CachedBadBBU|NoCachedBadBBU][Strip=<8|16|32|64|128|256|512|1024>][AfterVd=X][Spares=[e:]s|[e:]s-x|[e:]s-x,y][force]storcli/cx/exshowstorcli/cx/exshowallstorcli/cx/exshowstatusstorcli/cx/exshowphyerrorcountersstorcli/cx/vxdel[cachecade][discardcache][force]storcli/cxdeleteeventsstorcli/cxshowevents[[type=]filter=<[info],[warning],[critical],[fatal]>file=storcli/cxshoweventloginfostorcli/cxshowhealth[all]storcli/cxdeletesecuritykeystorcli/cxsetsecuritykey=xxxxxxxx{passphrase=xxxx}{keyid=xxx}storcli/cxstartDiagDuration=storcli/cxsetsecuritykeykeyid=xxxstorcli/cxcomparesecuritykey=xxxxxxxxxxstorcli/cxsettermlog[=on|off|offthisboot]storcli/cxshowtermlog[type=config|contents]storcli/cxdeletetermlogstorcli/cxsetsecuritykey=xxxxxxxxoldsecuritykey=xxxxxxxx{passphrase=xxxx}{keyid=xxx}storcli/cxsetsesmonitoring[=on|off]storcli/cxshowsesmonitoringstorcli/cx/dxshowstorcli/cx/dallshowcachecadestorcli/cx/dxshowallstorcli/cx/dallshowmirrorstorcli/cx/dallsplitmirrorstorcli/cx/dalladdmirrorsrc=[force]storcli/cxshowfreespacestorcli/cx/fallshow[all][securityKey=xxx]storcli/cx/falldel|delete[securityKey=xxx]storcli/cx/fallimport[preview][securityKey=xxx]storcli/cx/vxsetssdcaching=on|offstorcli/cx/vxsethidden=on|offstorcli/cx/dxsethidden=on|offstorcli/cx/dxsetsecurity=onstorcli/cx/vxshowexpansionstorcli/cxshowfshintingstorcli/cx/vxsetfshinting=storcli/cx/vxexpandSize=[expandarray]storcli/cx[/ex]/sxshowstorcli/cx[/ex]/sxshowallstorcli/cx[/ex]/sxstartrebuildstorcli/cx[/ex]/sxstoprebuildstorcli/cx[/ex]/sxpauserebuildstorcli/cx[/ex]/sxresumerebuildstorcli/cx[/ex]/sxshowrebuildstorcli/cx[/ex]/sxshowhealthstorcli/cx[/ex]/sxshowsmartstorcli/cx[/ex]/sxstartcopybacktarget=e:sstorcli/cx[/ex]/sxstopcopybackstorcli/cx[/ex]/sxpausecopybackstorcli/cx[/ex]/sxresumecopybackstorcli/cx[/ex]/sxresetphyerrorcountersstorcli/cx[/ex]/sxshowcopybackstorcli/cx[/ex]/sxshowphyerrorcountersstorcli/cx[/ex]/sxstartinitializationstorcli/cx[/ex]/sxstopinitializationstorcli/cx[/ex]/sxshowinitializationstorcli/cx[/ex]/sxstartlocatestorcli/cx[/ex]/sxstoplocatestorcli/cx[/ex]/sxshowsecuritykeykeyidstorcli/cx[/ex]/sxaddhotsparedrive[DGs=][enclaffinity][nonrevertible]storcli/cx[/ex]/sxdeletehotsparedrivestorcli/cx[/ex]/sxspinupstorcli/cx[/ex]/sxspindownstorcli/cx[/ex]/sxsetonlinestorcli/cx[/ex]/sxsetofflinestorcli/cx[/ex]/sxsetmissingstorcli/cx[/ex]/sxsetjbodstorcli/cx[/ex]/sxsetsecurity=onstorcli/cx[/ex]/sxsetgood[force]storcli/cx[/ex]/sxinsertdg=Aarray=Brow=Cstorcli/cx/vxsetemulationType=0|1|2storcli/cx/vxsetcbsize=0|1|2cbmode=0|1|2|3|4|7storcli/cx/vxsetwrcache=WT|WB|AWBstorcli/cx/vxsetrdcache=RA|NoRAstorcli/cx/vxsetiopolicy=Cached|Directstorcli/cx/vxsetaccesspolicy=RW|RO|Blocked|RmvBlkdstorcli/cx/vxsetpdcache=On|Off|Defaultstorcli/cx/vxsetname=storcli/cx/vxsetHostAccess=ExclusiveAccess|SharedAccessstorcli/cx/vxsetds=Default|Auto|None|Max|MaxNoCachestorcli/cx/vxsetautobgi=On|Offstorcli/cx/vxsetpi=Offstorcli/cx/vxshowstorcli/cx/vxshowallstorcli/cx/vxshowinitstorcli/cx/vxshowccstorcli/cx/vxshowerasestorcli/cx/vxshowmigratestorcli/cx/vxshowbgistorcli/cx/vxshowautobgistorcli/cx/vxshowtrimstorcli/cxsetconsistencycheck|cc=[off|seq|conc][delay=value]starttime=yyyy/mm/ddhh][excludevd=x-y,z]storcli/cxshowcc|consistencycheckstorcli/cxshowocrstorcli/cxsetocr=storcli/cx/vxstartinit[Full][Force]storcli/cx/vxstarterase[simple|normal|thorough|standard][patternA=][patternB=]storcli/cx/vxstartcc[Force]storcli/cx/vxstartmigratetype=raidx[option=add|removedrives=[e:]s|[e:]s-x|[e:]s-x,y][Force]storcli/cx/vxstopinitstorcli/cx/vxstoperasestorcli/cx/vxstopccstorcli/cx/vxstopbgistorcli/cx/vxpauseccstorcli/cx/vxpausebgistorcli/cx/vxresumeccstorcli/cx/vxresumebgistorcli/cxshowstorcli/cxshowallstorcli/cxshowpreservedcachestorcli/cx/vxdeletepreservedcache[force]storcli/cx[/ex]/sxdownloadsrc=[satabridge][mode=5|7]storcli/cx/exdownloadsrc=[forceActivate]storcli/cx[/ex]/sxsecureerase[force]storcli/cx[/ex]/sxstarterase[simple|normal|thorough|standard|threepass][patternA=][patternB=]storcli/cx[/ex]/sxstoperasestorcli/cx[/ex]/sxshowerasestorcli/cx[/ex]/sxshowrawdatapageaddr=file=storcli/cx[/ex]/sxsetbootdrive=storcli/cx/vxsetbootdrive=storcli/cxshowbootdrivestorcli/cxshowbootwithpinnedcachestorcli/cxsetbootwithpinnedcache=storcli/cxshowactivityforlocatestorcli/cxsetactivityforlocate=storcli/cxshowcopybackstorcli/cxsetcopyback=type=smartssd|smarthdd|allstorcli/cxshowjbodstorcli/cxsetjbod=storcli/cxsetautorebuild=storcli/cxsetldlimit=storcli/cxshowautorebuildstorcli/cxsetautopdcache=[immediate]storcli/cxshowautopdcachestorcli/cxshowcachebypassstorcli/cxsetcachebypass=storcli/cxshowusefdeonlyencryptstorcli/cxsetusefdeonlyencrypt=storcli/cxshowprcorrectunconfiguredareasstorcli/cxsetprcorrectunconfiguredareas=storcli/cxshowbatterywarningstorcli/cxsetbatterywarning=storcli/cxshowabortcconerrorstorcli/cxsetabortcconerror=storcli/cxshowncqstorcli/cxshowconfigautobalancestorcli/cxsetncq=storcli/cxsetconfigautobalance=storcli/cxshowmaintainpdfailhistorystorcli/cxsetmaintainpdfailhistory=storcli/cxshowrestorehotsparestorcli/cxsetrestorehotspare=storcli/cxsetbios[state=][Mode=][abs=][DeviceExposure=]storcli/cxshowbiosstorcli/cxshowalarmstorcli/cxsetalarm=storcli/cxshowforeignautoimportstorcli/cxsetforeignautoimport=storcli/cxshowdirectpdmappingstorcli/cxsetdirectpdmapping=storcli/cxshowrebuildratestorcli/cxsetrebuildrate=storcli/cxshowloadbalancemodestorcli/cxsetloadbalancemode=storcli/cxshoweghsstorcli/cxseteghs[state=][eug=][smarter=]storcli/cxshowcacheflushintstorcli/cxsetcacheflushint=storcli/cxshowprratestorcli/cxsetprrate=storcli/cxshowccratestorcli/cxsetccrate=storcli/cxshowbgiratestorcli/cxsetbgirate=storcli/cxshowdpmstorcli/cxsetdpm=storcli/cxshowsgpioforcestorcli/cxsetsgpioforce=storcli/cxsetsupportssdpatrolread=storcli/cxshowmigrateratestorcli/cxsetmigraterate=storcli/cxshowspinupdrivecountstorcli/cxshowwbsupportstorcli/cxsetspinupdrivecount=storcli/cxshowspinupdelaystorcli/cxsetspinupdelay=storcli/cxshowcoercionstorcli/cxsetcoercion=storcli/cxshowlimitMaxRateSATAstorcli/cxsetlimitMaxRateSATA=on|offstorcli/cxshowHDDThermalPollIntervalstorcli/cxsetHDDThermalPollInterval=storcli/cxshowSSDThermalPollIntervalstorcli/cxsetSSDThermalPollInterval=storcli/cxshowsmartpollintervalstorcli/cxsetsmartpollinterval=storcli/cxshoweccbucketsizestorcli/cxseteccbucketsize=storcli/cxshoweccbucketleakratestorcli/cxseteccbucketleakrate=storcli/cxshowbackplanestorcli/cxsetbackplanemode=expose=storcli/cxshowperfmodestorcli/cxsetperfmode=[maxflushlines=numiostoorder=]storcli/cxshowperfmodevaluesstorcli/cxshowpistorcli/cxsetpi[state=][import=]storcli/cxshowtimestorcli/cxsettime=storcli/cxshowdsstorcli/cxsetds=OFFtype=1|2|3|4storcli/cxsetds=ONtype=1|2[properties]storcli/cxsetds=ONtype=3|4DefaultLdType=[properties]storcli/cxsetds[properties]storcli/cxshowsafeidstorcli/cxshowrehostinfostorcli/cxshowpcistorcli/cxshowASOstorcli/cxsetasokey=previewstorcli/cxsetasokey=storcli/cxsetasotransfertovaultstorcli/cxsetasorehostcompletestorcli/cxsetasodeactivatetrialkeystorcli/cxsetfactorydefaultsstorcli/cxdownloadfile=[fwtype=][ResetNow][nosigchk][noverchk][force]storcli/cxflush|flushcachestorcli/cx[start]flush|flushcache[cachecade|nytrocache|ALL]storcli/cxstopflush|flushcachecachecade|nytrocachestorcli/cxshowflush|flushcachecachecade|nytrocachestorcli/cx/pxshowstorcli/cx/pxshowallstorcli/cx/pxsetlinkspeed=0|1.5|3|6|12storcli/cx/bbushowstorcli/cx/bbushowallstorcli/cx/bbushowstatusstorcli/cx/bbushowpropertiesstorcli/cx/bbushowlearnstorcli/cx/bbushowgasgaugeOffset=xxxxNumbytes=nstorcli/cx/bbustartlearnstorcli/cx/bbushowmodesstorcli/cx/bbuset[learnDelayInterval=|bbuMode=|learnStartTime=[DDDHH|off]|autolearnmode=|powermode=sleep|writeaccess=sealed]storcli/cx/cvsetSCAPVPDfile=VPDPage=storcli/cx/cvshowstorcli/cx/cvshowallstorcli/cx/cvshowstatusstorcli/cx/cvshowlearnstorcli/cx/cvshowSCAPVPDfile=VPDPage=storcli/cx/cvstartlearnstorcli/cxshowsecuritykeykeyidstorcli/cxstartpatrolreadstorcli/cxstoppatrolreadstorcli/cxpausepatrolreadstorcli/cxresumepatrolreadstorcli/cxshowpatrolReadstorcli/cxshowpowermonitoringinfostorcli/cxshowldlimitstorcli/cxsetpatrolread={{onmode=}|{off}}storcli/cxsetpatrolread[starttime=< yyyy/mm/dd hh>][maxconcurrentpd=][includessds=][uncfgareas=on|off]storcli/cxsetpatrolreaddelay=storcli/cx[/ex]/sxshowdiagpaniclog[Query]|[ExtractSlot=x]|[EraseSlot=x][file=filepath]storcli/cx[/ex]/sxshowdiagsmartlog[file=filepath]storcli/cx[/ex]/sxshowdiagerrorlog[file=filepath]storcli/cxdelNytrocache[force]storcli/cxshowbadblocksstorcli/cxflasherasestorcli/cxshutdownstorcli/cx/mxsetmode=storcli/cx/mxshowstorcli/cxtransformiMRstorcli/cxrestartstorcli/cx/vxshowBBMTstorcli/cx/vxdeleteBBMTstorcli/cx[/ex]/sxstartformat[thorough]storcli/cxshowdequeuelogfile=storcli/cxshowmaintenancestorcli/cxsetmaintenancemode=normal|nodevicesstorcli/cxshowpersonalitystorcli/cxsetpersonality=RAID|HBAstorcli/cxshowimmediateiostorcli/cxshowdriveactivityledstorcli/cxsetimmediateio=storcli/cxsetdriveactivityled=Note:Use'page=[x]'asthelastoptioninallthecommandstosetthepagebreak.X=linesperpage.E.g.'storclihelppage=10'

总结:StorCLI功能强大,可以安装在多个平台下,具体安装以及使用方法,可参阅官网文档。

文档转载于http://blog.51cto.com/hsuehwee/1633515

相关新闻

返回顶部