storcli 命令(更新Ing)

  • help
 1 [root@centos7]# storcli -h
 2 Storage Command Line Tool Ver 007.0606.0000.0000 Mar 20, 2018
 3 
 4 (c)Copyright 2018, AVAGO Technologies, All Rights Reserved.
 5 
 6 
 7 storcli -v 
 8 storcli -h| -help| ? 
 9 storcli -h| -help| ? legacy
10 storcli show 
11 storcli show all
12 storcli show ctrlcount

 

  • 控制器数量(阵列卡)
1 [root@centos7]# storcli show ctrlcount
2 CLI Version = 007.0606.0000.0000 Mar 20, 2018
3 Operating system = Linux 3.10.0-862.el7.x86_64
4 Status Code = 0
5 Status = Success
6 Description = None
7 
8 Controller Count = 1

存在一个控制器,也就对应为/c0

  • JBOD

在线设置硬盘为直通(jbod)模式

1.确认raid卡支持jbod模式并开启jbod模式:

storcli64 /c0 show all |grep -i jbod

[root@centos7]# storcli /c0 show all |grep -i jbod
Support JBOD = Yes
Support SecurityonJBOD = Yes
Support JBOD Write cache = No
Enable JBOD = Yes

 

support JBOD = Yes , 说明阵列卡支持jbod模式

Enable JBOD = Yes , 说明当前开启jbod模式,关闭则 storcli64 /c0 set jbod=off

 

2.把指定设备设置成jbod模式:

storcli64 /c0/ex/sx set jbod

3.修改jbod模式为UGOOD模式:

如果要将该设备的jbod模式撤销掉 storcli64 /c0/ex/sx set good force

[root@centos7]# storcli /c0/e9/s15 set good force
CLI Version = 007.0606.0000.0000 Mar 20, 2018
Operating system = Linux 3.10.0-862.el7.x86_64
Controller = 0
Status = Success
Description = Set Drive Good Succeeded.

 

查阅:

https://www.cnblogs.com/wangl-blog/p/10839694.html

https://www.cnblogs.com/luxiaodai/p/9878747.html

https://www.cnblogs.com/chong93/p/10470032.html

后续更新ing

你可能感兴趣的:(storcli 命令(更新Ing))