storcli工具的使用方法


個人博客:點擊這里進入

常用命令:(c代表Controller e代表Enclosures代表SlotPDv代表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卡上所有邏輯盤詳細信息,也可指定某個邏輯磁盤v0v1

/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號為313的物理盤創建全容量Raid 0,讀寫策略為no read ahead/ always writebackIO策略為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號為231334的物理盤創建10gb容量的raid 10,讀寫策略為read ahead/ writebackIO策略為Direct,條帶大小為64k(注意:LSI SAS3108最多支持64RAID,創建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號為231334的物理盤上創建容量為10gb名為R10-1、容量為11gb名為R10-2的兩個raid10邏輯盤

/opt/MegaRAID/storcli/storcli64 /c0 /v0 del [force] 刪除ID0的邏輯盤

/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    查看第一塊RAIDrebuildrate速度

/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 保存事件日志到指定文件

 

下載地址:

[c-downbtn type="bd" url="https://pan.baidu.com/s/1rk-oBxCT5DgUI810wJQr1w" pwd="c9ig"]storcli工具下載[/c-downbtn]


免責聲明!

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



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