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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM