Linux下storcli 相关命令管理 RAID

前提条件,准备好storcli工具,我这里用的是storcli64。

1、查看控制器相关信息:

./storcli64 show

其中Ctl是控制器,编号为0

2、若要查看Ctl编号为0的内容,使用如下信息:

./storcli64 /c0 show

查看所有的控制器,使用/call选项:

./storcli64 /call show

>DG为0 ,表示磁盘组。选项就是/d0,查看所有DG就是/dall
>VD为239,表示RAID卷组,选项就是/v239,查看所有RAID卷组就是/vall
>EID为252,表示Enclosure ID。选项就是/e252,查看所有EID就是/eall
>Slt为0, 表示硬盘槽位。查看所有就是 /sall ,查看某一个硬盘就是 /s0 ,/s1 , s2 ,查看一个范围 /s0-2

创建RAID0:

./storcli64 /c0 add vd r0 drives=252:0,4 pdcache=on

创建RAID1:

./storcli64 /c0 add vd r1 drives=252:0,4 pdcache=on

删除执行RAID卷,比如vd=239:

./storcli64 /c0 /v239 del

删除所有RAID:

./storcli64 /c0 /vall del

进行盘片升级:

/opt/automation# ./storcli64 /cx/ex/sx download src=test.fw

    /cx        Controller specific commands
    /ex        Enclosure specific commands
    /sx        Slot/PD specific commands

 

下载前注意,该手册为英文版,以下是部分目录 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 . . . . . . .
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值