strocli64 源码_Linux系统下安装 LSI StorCLI64工具查看和管理raid卡

OS环境:CentOS 6.3/CentOS 7.1

一.可用如下命令查询服务器raid卡硬件相关信息:[root@localhost /]# dmesg | grep raid

megaraid_sas 0000:04:00.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30

megaraid_sas 0000:04:00.0: setting latency timer to 64

megaraid_sas 0000:04:00.0: irq 49 for MSI/MSI-X

[root@localhost /]# cat /proc/scsi/scsi

Attached devices:

Host: scsi4 Channel: 02 Id: 00 Lun: 00

Vendor: LSI      Model: MR9260-8i        Rev: 2.70

Type:   Direct-Access                    ANSI  SCSI revision: 05

#可以看出,此为LSI MR9660-8i raid卡

二.去LSI官网下载Latest MegaRAID StorCLI,Version: 1.14.12 Size: 32.4M:

三.安装StorCLI:To install StorCLI, perform the following steps:

1. Unzip the StorCLI package.

2. To install the StorCLI RPM, run the rpm -ivh  command.

3. To upgrade the StorCLI RPM, run the rpm -Uvh  command.

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

ln -s /opt/MegaRAID/storcli/storcli64 /sbin/storcli

四.StorCLI基本使用:#Raid数量及当前状态

[root@localhost Linux]# storcli show ctrlcount

Status Code = 0

Status = Success

Description = None

Controller Count = 1#查询虚拟磁盘大小,raid结构等

[root@localhost Linux]# storcli /c0 /v0 show

Controller = 0

Status = Success

Description = None

Virtual Drives :

==============

----------------------------------------------------------

DG/VD TYPE   State Access Consist Cache sCC     Size Name

----------------------------------------------------------

0/0   RAID10 Optl  RW     No      RWTD  -   1.089 TB

----------------------------------------------------------

Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded

Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|B=Blocked|Consist=Consistent|

R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|

AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled

Check Consistency

#可以看出此为RAID10,一个虚拟磁盘,大小为1.089 TB#查看物理硬盘

[root@localhost Linux]# storcli /c0 /eall /sall show

Controller = 0

Status = Success

Description = Show Drive Information Succeeded.

Drive Information :

=================

-------------------------------------------------------------------------

EID:Slt DID State DG       Size Intf Med SED PI SeSz Model            Sp

-------------------------------------------------------------------------

252:4    12 Onln   0 558.406 GB SAS  HDD N   N  512B ST3600057SS      U

252:5    13 Onln   0 558.406 GB SAS  HDD N   N  512B ST3600057SS      U

252:6    14 Onln   0 558.406 GB SAS  HDD N   N  512B ST3600057SS      U

252:7    15 Onln   0 558.406 GB SAS  HDD N   N  512B ST3600057SS      U

-------------------------------------------------------------------------

EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup

DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare

UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface

Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info

SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transit

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
下载前注意,该手册为英文版,以下是部分目录 Chapter 1: Supported Controllers and Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 Supported Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2 Supported Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Chapter 2: Installing StorCLI on MegaRAID Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.1 Installing the StorCLI Tool on Microsoft Windows Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.2 Installing the StorCLI Tool on the UEFI Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3 Installing the StorCLI Tool on Linux Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3.1 Uninstalling the StorCLI Tool on Linux Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.4 Installing the StorCLI Tool on VMware Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.4.1 Uninstalling the StorCLI Tool on VMware Operating Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.5 StorCLI Tool Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.6 StorCLI Default Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.7 StorCLI Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.7.1 System Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.7.1.1 System Show Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.7.2 Controller Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.7.2.1 Show and Set Controller Properties Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.7.2.2 Controller Show Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 2.7.2.3 Controller Debug Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.7.2.4 Controller Background Task Operation Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 2.7.2.5 Premium Feature Key Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.7.2.6 Controller Security Commands . . . . . . .

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值