汽车诊断电脑vxdiag怎么样(Linux系统下安装 LSI StorCLI64工具查看和管理RAID卡)
OS环境:CentOS6.3/CentOS7.1
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:
下载地址:http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/1.14.12_StorCLI.zip
高性能硬件raid控制器
三.安装StorCLI:
ToinstallStorCLI,performthefollowingsteps:1.UnziptheStorCLIpackage.2.ToinstalltheStorCLIRPM,runtherpm-ivh
说明:安装完毕之后storcli64所在路径为/opt/MegaRAID/storcli/storcli64,在此路径下可以运行storcli64工具,切换到其它路径下则不能执行,此时为了使用方便,可以考虑将/opt/MegaRAID/storcli追加到系统PATH变量,或者像下面这样做(建议):
ln-s/opt/MegaRAID/storcli/storcli64/bin/storcliln-s/opt/MegaRAID/storcli/storcli64/sbin/storcli
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功能强大,可以安装在多个平台下,具体安装以及使用方法,可参阅官网文档。
文档转载于http://blog.51cto.com/hsuehwee/1633515