Storcli操作指南

安装storcli工具

1、下载对应的vib文件,安装至esxi主机

链接:https://pan.baidu.com/s/1i8C62-SnHdXAwB7G_9xlQQ 
提取码:1234 

2、使用winSCP 拷贝 vib 文件到ESXI主机/var/log/vmware/目录下。
3、安装storcli

esxcli software vib install -v /var/log/vmware/vmware-storcli-007.0706.00.vib -f 

4、创建storcli命令的软链接。

ln -s /opt/lsi/storcli/storcli /bin/storcli 

通过storcli -h 可获取storcli所有命令格式,以下介绍常用操作指令。

查看所有raid控制器信息

storcli show   获取raid卡controller 号以及查看raid卡型号及配置

在这里插入图片描述

查看某一raid控制器详细信息

storcli /c0 show          查看controller号为0的raid卡的详细信息
此处重点列出几项查看内容,包括raid卡型号、固件版本、驱动版本、虚拟驱动器列表、物理驱动器列表。

在这里插入图片描述在这里插入图片描述在这里插入图片描述

清除磁盘Foreign状态

当物理驱动器列表中的物理启动器状态显示为Foreign时,可通过storcli /c0 /fall show命令查看所有Foreign状态的磁盘信息。
在这里插入图片描述
在这里插入图片描述使用storcli /c0 /fall import命令清除所有foreign状态
在这里插入图片描述

若无法清除,执行以下命令:
./storcli /c0 /fall del

将磁盘设置为UGOOD状态

在这里插入图片描述

storcli /c0 /e64 /s7 set good force
设置控制器为0,背板为64,槽位号为7的磁盘为good状态

storcli创建raid

通过storcli -h,查看用storcli命令创建raid的命令格式如下:
在这里插入图片描述
以下以一块盘为例,创建raid0虚拟驱动器:
1、通过storcli /c0 /eall /sall show命令,查看c0物理驱动器列表,创建raid前须确保磁盘状态为UGood,若不是则通过上述方法调整对应磁盘状态。找到对应磁盘的EID及Slt号。
在这里插入图片描述

storcli /c0 add vd r0 drives=62:4 
在控制器0,背板为62,槽位号为4上创建raid0虚拟驱动器,此处的62:4即对应物理驱动器列表里的EID:Slt

2、创建完成后,通过storcli /c0/vall show查看所有虚拟驱动器列表。
在这里插入图片描述

storcli创建jbod

同raid创建时一样,第一步通过storcli /c0 /eall /sall show查看对应磁盘的EID:Slt。

Storcli /c0 add JBOD drives=62:4
在控制器0,背板为62,槽位号为4上创建JBOD虚拟驱动器,此处的62:4即对应物理驱动器列表里的EID:Slt。

创建完成后,通过storcli /c0/vall show可查看所有虚拟驱动器列表。

7、 格式化raid组

storcli /cx[/ex]/sx start initialization
storcli /c0/v4 start init force

附:

raid组删除重做
./storcli /c0/v0 del force
./storcli /c0/vall show
./storcli /c0 add vd r0 drives=252: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 . . . . . . .
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值