storcli工具的使用方法

常用命令:(c代表Controller, e代表Enclosure,s代表Slot或PD,v代表ld)

/opt/MegaRAID/storcli/storcli64 -v 显示软件版本信息

/opt/MegaRAID/storcli/storcli64 -h 查看帮助信息

/opt/MegaRAID/storcli/storcli64 show 查看RAID卡、系统内核、主机名等信息

/opt/MegaRAID/storcli/storcli64 /c0 show 查看RAID卡、物理盘、逻辑盘等详细信息

/opt/MegaRAID/storcli/storcli64 /c0 /ex /sx set jbod 设置slot x物理盘状态为JBOD

/opt/MegaRAID/storcli/storcli64 /c0 /ex /sx set good force 设置slot x物理盘状态为UGood

/opt/MegaRAID/storcli/storcli64 /c0 /eall /sall show all 查看RAID卡上所有物理磁盘详细信息

/opt/MegaRAID/storcli/storcli64 /c0 /vall show all查看RAID卡上所有逻辑盘详细信息,也可指定某个逻辑磁盘v0,v1等

/opt/MegaRAID/storcli/storcli64 /c0 /v0 show 显示第一块RAID卡上第一个逻辑磁盘信息

/opt/MegaRAID/storcli/storcli64 /c0 /e252 /s0 start locate 定位第一块RAID上某块物理磁盘,物理磁盘的绿色的定位灯会被点亮。

/opt/MegaRAID/storcli/storcli64 /c0 /ex /sx stop locate 停止定位,定位灯停止闪烁。

/opt/MegaRAID/storcli/storcli64 /c0 download file=mr3108fw.rom 升级第一块RAID卡固件

/opt/MegaRAID/storcli/storcli64 /c0 restart 升级固件后重启RAID卡以便新固件及时生效

/opt/MegaRAID/storcli/storcli64 /c0 add vd r0 size=all name=R0 drives=217:3,13 awb nora cached strip=256 用Slot号为3和13的物理盘创建全容量Raid 0,读写策略为no read ahead/ always writeback,IO策略为Cached,条带大小为256k(详细参数可以使用storcli64 /c0 add vd help查看及使用)

/opt/MegaRAID/storcli/storcli64 /c0 add vd r10 size=10gb name=R10 drives=217:2-3,13,34 pdperarray=2 wb direct strip=64 用Slot号为2、3、13、34的物理盘创建10gb容量的raid 10,读写策略为read ahead/ writeback,IO策略为Direct,条带大小为64k(注意:LSI SAS3108最多支持64个RAID,创建10/50/60时,必须指定pdperarray参数。如果没有这个参数,是创建不成功的。)

/opt/MegaRAID/storcli/storcli64 /c0 add vd r10 size=10gb,11gb name=R10-1,R10-2 drives=217:2-3,13,34 pdperarray=2 wb direct strip=64 一次性在Slot号为2、3、13、34的物理盘上创建容量为10gb名为R10-1、容量为11gb名为R10-2的两个raid10逻辑盘

/opt/MegaRAID/storcli/storcli64 /c0 /v0 del [force] 删除ID为0的逻辑盘

/opt/MegaRAID/storcli/storcli64 /c0 /ex /sx add hotsparedrive dgs=0 设置某块物理磁盘为磁盘组0的热备盘,如果不指定dgs,则为该RAID卡上全局热备盘。

/opt/MegaRAID/storcli/storcli64 /c0 /ex /sx delete hotsparedrive 删除热备磁盘

/opt/MegaRAID/storcli/storcli64 /c0 /vx set wrcache=wt/wb/awb 设置Vx逻辑盘写策略

/opt/MegaRAID/storcli/storcli64 /c0 /vx set rdcache=ra/nora 设置Vx逻辑盘读策略

/opt/MegaRAID/storcli/storcli64 /c0 /vx set accesspolicy=rw/ro/blocked 设置访问权限

/opt/MegaRAID/storcli/storcli64 /c0 /vx set iopolicy=cached/direct 设置IO策略

/opt/MegaRAID/storcli/storcli64 /c0 show rebuildrate 查看第一块RAID卡rebuildrate速度

/opt/MegaRAID/storcli/storcli64 /c0 flushcache 清除第一块RAID卡缓存

/opt/MegaRAID/storcli/storcli64 /c0 /e217 /sall show rebuild 查看磁盘重建进度

/opt/MegaRAID/storcli/storcli64 /c0 /ex /sx start rebuild 开始重建

/opt/MegaRAID/storcli/storcli64 /c0 /ex /sx stop rebuild 停止重建

/opt/MegaRAID/storcli/storcli64 /c0 /bbu show all 显示bbu信息

/opt/MegaRAID/storcli/storcli64 /c0 show alarm 查看报警器信息

/opt/MegaRAID/storcli/storcli64 /c0 set alarm=silence 暂时关闭报警器鸣叫

/opt/MegaRAID/storcli/storcli64 /c0 set alarm=off 始终关闭报警器鸣叫

/opt/MegaRAID/storcli/storcli64 /c0 /e252 /s3 start initialization 初始化某个物理磁盘

/opt/MegaRAID/storcli/storcli64 /c0 /e252 /s3 show initialization 查看某个初始化的物理磁盘进度

/opt/MegaRAID/storcli/storcli64 /c0 set eghs state=on eug=off smarter=on 设置紧急策略生效类型,state=on代表热配盘生效,eug=on代表UGood盘生效,smarter代表回拷

/opt/MegaRAID/storcli/storcli64 /c0 /fall show 查看foreign信息

/opt/MegaRAID/storcli/storcli64 /c0 /fall import 导入foreign

/opt/MegaRAID/storcli/storcli64 /c0 /fall del 清除foreign

/opt/MegaRAID/storcli/storcli64 /c0 show termlog type=contents 在线查看日志

/opt/MegaRAID/storcli/storcli64 /c0 show termlog type=contents | grep "rebuild" 在线查看日志抽取关键字

/opt/MegaRAID/storcli/storcli64 /c0 show termlog >filename.txt 保存FW日志到指定文件

/opt/MegaRAID/storcli/storcli64 /c0 show events >filename.txt 保存事件日志到指定文件

转自:storcli工具的使用方法_服务器_吴某人啊.-华为云开发者联盟

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 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 . . . . . . .
storcli是一种用于管理LSI / Avago RAID控制器的命令行实用程序。以下是storcli使用的基本方法: 1. 下载和安装storcli实用程序:你可以从LSI / Avago官方网站上下载storcli实用程序,并根据所支持的操作系统进行安装。 2. 启动storcli:在命令行界面中,输入storcli命令即可启动storcli实用程序。 3. 查看控制器信息:输入show ctrl all命令,可以查看系统中所有的RAID控制器的详细信息,包括控制器编号、型号、固件版本等。 4. 创建和管理虚拟磁盘:使用create vd命令可以创建新的虚拟磁盘,在创建过程中指定RAID级别、磁盘数量、热备份等参数。使用show vd命令可以查看虚拟磁盘的详细信息。 5. 创建和管理磁盘组:使用create dg命令可以创建新的磁盘组,磁盘组是一个逻辑集合,包含一组物理磁盘。使用show dg命令可以查看磁盘组的详细信息。 6. 创建和管理全局热备份:使用add hotspare命令可以将一个物理磁盘指定为全局热备份,以备用于故障转移。使用show hotspare命令可以查看全局热备份的详细信息。 7. 监控磁盘状态:使用show pd all命令可以查看系统中所有物理磁盘的状态信息,包括磁盘编号、容量、健康状态等。 8. 执行其他管理操作:storcli还提供了其他管理操作,如重新插入物理磁盘、重建虚拟磁盘、策略设置等。通过在storcli中输入help命令,可以查看所有可用的命令和选项。 总结:storcli是一个功能强大的RAID控制器管理工具,可以通过命令行界面对RAID控制器进行配置、管理和监控。通过掌握基本的storcli使用方法,可以更好地管理和维护系统中的RAID存储。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值