查看RAID卡ID
命令功能
查看LSI SAS3108RAID卡的ID。
命令格式
storcli64 show
使用實例
# 查看LSI SAS3108RAID卡的ID。
[root@localhost ~]# ./storcli64 show
CLI Version = 007.0409.0000.0000 Nov 06, 2017
Operating system = Linux3.10.0-693.el7.x86_64
Status Code = 0
Status = Success
Description = None
Number of Controllers = 1
Host Name = localhost.localdomain
Operating System = Linux3.10.0-693.el7.x86_64
StoreLib IT Version = 07.0500.0200.0300
StoreLib IR3 Version = 15.02-0
System Overview :
===============
--------------------------------------------------------------------
Ctl Model Ports PDs DGs DNOpt VDs VNOpt BBU sPR DS EHS ASOs Hlth
--------------------------------------------------------------------
0 SAS3108 8 3 0 0 0 0 Msng Off - Y 3 Opt
--------------------------------------------------------------------
Ctl=Controller Index|DGs=Drive groups|VDs=Virtual drives|Fld=Failed
PDs=Physical drives|DNOpt=DG NotOptimal|VNOpt=VD NotOptimal|Opt=Optimal
Msng=Missing|Dgd=Degraded|NdAtn=Need Attention|Unkwn=Unknown
sPR=Scheduled Patrol Read|DS=DimmerSwitch|EHS=Emergency Hot Spare
Y=Yes|N=No|ASOs=Advanced Software Options|BBU=Battery backup unit
Hlth=Health|Safe=Safe-mode boot

回顯信息中的“Ctl”一列所對應的數字即為RAID卡的ID,如上述回顯信息中表明該RAID卡的ID為“0”。
查詢和設置Spinup參數
命令功能
查詢和設置每組起轉硬盤間的時間間隔以及上電時允許同時起轉的硬盤數量。
命令格式
storcli64 /ccontroller_id show spinupdelay
storcli64 /ccontroller_id show spinupdrivecount
storcli64 /ccontroller_id set spinupdelay=time
storcli64 /ccontroller_id set spinupdrivecount=count
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
time |
每組起轉硬盤間的時間間隔 |
默認為2,單位為s。 |
count |
上電時允許同時起轉的硬盤數量 |
默認為4。 |
使用指南
建議保持默認配置。
使用實例
# 查詢RAID卡Spinup參數。
domino:~# ./storcli64 /c0 show spinupdelay Controller = 0 Status = Success Description = None Controller Properties: ===================== -------------------------- Ctrl_Prop Value -------------------------- Spin Up Delay 2 second(s) -------------------------- domino:~# ./storcli64 /c0 show spinupdrivecount Controller = 0 Status = Success Description = None Controller Properties: ===================== -------------------------- Ctrl_Prop Value -------------------------- Spin Up Drive Count 4 --------------------------
# 設置RAID卡“spinupdelay”為“20s”,設置“spinupdrivecount”為“5”。
domino:~# ./storcli64 /c0 set spinupdelay=20 Controller = 0 Status = Success Description = None Controller Properties: ===================== -------------------------- Ctrl_Prop Value -------------------------- Spin Up Delay 20 second(s) -------------------------- domino:~# ./storcli64 /c0 set spinupdrivecount=5 Controller = 0 Status = Success Description = None Controller Properties: ===================== -------------------------- Ctrl_Prop Value -------------------------- Spin Up Drive Count 5 --------------------------
設置硬盤PowerSave功能
命令功能
設置空閑硬盤和熱備盤的省電模式。
命令格式
storcli64 /ccontroller_id set ds= state type= disktype spindowntime= time
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID。 |
– |
state |
省電模式的啟用狀態。 |
|
disktype |
硬盤類型。 |
|
time |
等待時間,硬盤經過等待時間沒有IO,則停轉進入休眠狀態。 |
單位為minutes。 |
使用指南
無
使用實例
# 設置空閑硬盤的省電模式。
domino:~# ./storcli64 /c0 set ds=on type=1 spindowntime=30
Controller = 0
Status = Success
Description = None
Controller Properties:
=====================
--------------------------
Ctrl_Prop Value
--------------------------
SpnDwnUncDrv Enable
SpnDwnTm 30 minutes
--------------------------
查詢和設置物理硬盤初始化功能
命令功能
設置物理硬盤初始化功能,查詢初始化進度。
命令格式
storcli64 /ccontroller_id/eenclosure_id/sslot_id action initialization
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
– |
action |
要執行的操作 |
|
使用指南
無
使用實例
# 初始化slot3硬盤,並查詢初始化進度。
domino:~# ./storcli64 /c0/e252/s3 start initialization Controller = 0 Status = Success Description = Start Drive Initialization Succeeded. domino:~# ./storcli64 /c0/e252/s3 show initialization Controller = 0 Status = Success Description = Show Drive Initialization Status Succeeded. ------------------------------------------------------ Drive-ID Progress% Status Estimated Time Left ------------------------------------------------------ /c0/e252/s3 0 In progress 0 Seconds ------------------------------------------------------
查詢和設置硬盤數據擦除功能
命令功能
設置物理硬盤數據擦除模式,查詢擦除進度。
命令格式
storcli64 /ccontroller_id/eenclosure_id/sslot_id show erase
storcli64 /ccontroller_id/eenclosure_id/sslot_id stop erase
storcli64 /ccontroller_id/eenclosure_id/sslot_id start erase mode
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
– |
mode |
數據擦除模式 |
|
使用指南
無
使用實例
# 對slot 3硬盤進行simple數據擦除,並查詢擦除進度。
domino:~# ./storcli64 /c0/e252/s3 start erase simple Controller = 0 Status = Success Description = Start Drive Erase Succeeded. domino:~# ./storcli64 /c0/e252/s3 show erase Controller = 0 Status = Success Description = Show Drive Erse Status Succeeded. ------------------------------------------------------ Drive-ID Progress% Status Estimated Time Left ------------------------------------------------------ /c0/e252/s3 0 In progress 0 Seconds ------------------------------------------------------ domino:~# ./storcli64 /c0/e252/s3 stop erase Controller = 0 Status = Success Description = Stop Drive Erase Succeeded.
設置后台資源占用率
命令功能
設置后台初始化速率、一致性檢查速率、硬盤巡檢速率、RAID重構速率、RAID擴容和遷移速率等。
命令格式
storcli64 /ccontroller_id set action=value
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
action |
要設置的項目 |
|
value |
后台任務資源占用率 |
1~100 |
使用指南
無
使用實例
# 設置硬盤巡檢速率為“30%”。
domino:~# ./storcli64 /c0 set prrate=30
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
-----------------------
Ctrl_Prop Value
-----------------------
Patrol Read Rate 30%
-----------------------
設置BIOS Stop on Error功能
命令功能
設置控制器BIOS在檢測到異常時停止繼續啟動的功能。
命令格式
storcli64 /ccontroller_id set bios mode=action
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
action |
要執行的操作 |
|
使用指南
無
使用實例
# 開啟Stop on error功能。
domino:~# ./storcli64 /c0 set bios mode=soe
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
----------------
Ctrl_Prop Value
----------------
BIOS Mode SOE
----------------
創建和刪除RAID
命令功能
創建、刪除RAID。
命令格式
storcli64 /ccontroller_id add vd rlevel size=capacity drives=enclosure_id:startid-endid
storcli64 /ccontroller_id/vraid_id del
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
level |
要配置的RAID級別 |
可為0、1、5、6、10、50、60,數字分別代表對應的RAID級別。 |
capacity |
要配置的RAID容量 |
– |
capacity |
要配置的RAID容量 |
– |
startid-endid |
要加入RAID的硬盤的起始和結束ID |
– |
raid_id |
要刪除的RAID的ID |
– |
使用指南
無
使用實例
# 創建RAID 0。
domino:~# ./storcli64 /c0 add vd r0 size=100GB drives=252:0-3
Controller = 0
Status = Success
Description = Add VD Succeeded
# 刪除RAID。
domino:~# ./storcli64 /c0/v0 del
Controller = 0
Status = Success
Description = Delete VD Succeeded
相關操作
查看RAID卡ID的方法請參見查看RAID卡ID。
設置RAID組的Cache讀寫屬性
命令功能
設置RAID組的Cache讀寫屬性。
命令格式
storcli64 /ccontroller_id/vraid_id set wrcache=mode
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
RAID卡的ID |
– |
raid_id |
待設置的RAID的ID |
– |
mode |
Cache讀寫模式 |
|
使用指南
無
使用實例
# 設置Cache讀寫模式為“wt”。
domino:~# ./storcli64 /c0/v0 set wrcache=wt
Controller = 0
Status = Success
Description = None
Details Status :
==============
---------------------------------------
VD Property Value Status ErrCd ErrMsg
---------------------------------------
0 wrCache WT Success 0 -
---------------------------------------
設置RAID訪問策略
命令功能
設置RAID的讀寫策略。
命令格式
storcli64 /ccontroller_id/vraid_id set accesspolicy=mode
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
RAID卡的ID |
– |
raid_id |
待設置的RAID的ID |
– |
mode |
RAID讀寫策略 |
|
使用指南
無
使用實例
# 設置RAID讀寫策略為“rw”。
domino:~# ./storcli64 /c0/v0 set accesspolicy=rw
Controller = 0
Status = Success
Description = None
Details Status :
==============
---------------------------------------
VD Property Value Status ErrCd ErrMsg
---------------------------------------
0 AccPolicy RW Success 0 -
---------------------------------------
設置RAID前台初始化
命令功能
設置RAID前台初始化模式。
命令格式
storcli64 /ccontroller_id/vraid_id start mode
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
RAID卡的ID |
– |
raid_id |
待設置的RAID的ID |
– |
mode |
前台初始化模式 |
|
使用指南
無
使用實例
# 快速初始化RAID。
domino:~# ./storcli64 /c0/v0 start init
Controller = 0
Status = Success
Description = Start INIT Operation Success
查詢和設置RAID后台初始化
命令功能
暫停、繼續和停止RAID后台初始化,以及查看后台初始化進度。
命令格式
storcli64 /ccontroller_id/vraid_id action bgi
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
RAID卡的ID |
– |
raid_id |
待設置的RAID的ID |
– |
action |
后台初始化的操作 |
|
使用指南
無
使用實例
# 查看后台初始化進度。
domino:~# ./storcli64 /c0/v0 show bgi
Controller = 0
Status = Success
Description = Noe
VD Operation Status :
===================
------------------------------------------------------
VD Operation Progress% Staus Estimated Time Left
------------------------------------------------------
0 BGI 3 In progress 53 Minutes
------------------------------------------------------
設置啟動項
命令功能
設置虛擬磁盤或物理硬盤為啟動項。
命令格式
storcli64 /ccontroller_id/vvd_id set bootdrive=on
storcli64 /ccontroller_id/eenclosure_id/sslot_id set bootdrive=on
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
RAID卡的ID |
– |
vd_id |
待設置的虛擬磁盤的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
– |
使用指南
無
使用實例
# 設置VD0為啟動項。
domino:~# ./storcli64 /c0/v0 set bootdrive=on
Controller = 0
Status = Success
Description = Noe
Detailed Status :
===============
----------------------------------------
VD Property Value Staus ErrCd ErrMsg
----------------------------------------
0 Boot Drive On Success 0 -
----------------------------------------
# 設置slot 7硬盤為啟動項。
domino:~# ./storcli64 /c0/e252/s7 set bootdrive=on
Controller = 0
Status = Success
Description = Noe
Controller Properties :
=====================
-------------------
Ctrl_Prop Value
-------------------
BootDrive PD:252_7
-------------------
設置緊急熱備功能
命令功能
設置是否啟用緊急熱備功能,並設置SMART Error時是否啟動緊急熱備功能。
命令格式
storcli64 /ccontroller_id set eghs eug=state
storcli64 /ccontroller_id set eghs smarter=state
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
RAID卡的ID |
– |
state |
緊急熱備功能的啟用狀態 |
|
使用指南
無
使用實例
# 開啟緊急熱備功能,並允許硬盤在SMART Error時使用緊急熱備功能。
domino:~# ./storcli64 /c0 set eghs eug=on Controller = 0 Status = Success Description = None Controller Properties : ===================== ------------------ Ctrl_Prop Value ------------------ EmergencyUG ON ------------------ domino:~# ./storcli64 /c0 set eghs smarter=on Controller = 0 Status = Success Description = None Controller Properties : ===================== ----------------------- Ctrl_Prop Value ----------------------- EmergencySmarter ON -----------------------
設置熱備盤
命令功能
設置全局熱備盤和局部熱備盤。
命令格式
storcli64 /ccontroller_id/eenclosure_id/sslot_id add hotsparedrive [dgs=vd_id]
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
– |
vd_id |
局部熱備盤所屬虛擬磁盤的ID |
– |
使用指南
無
使用實例
# 設置slot 3硬盤為全局熱備盤。
domino:~# ./storcli64 /c0/e252/s3 add hotsparedrive
Controller = 0
Status = Success
Description = Add Hot Spare Succeeded.
# 設置slot 3硬盤為vd0的局部熱備盤。
domino:~# ./storcli64 /c0/e252/s3 add hotsparedrive dgs=0
Controller = 0
Status = Success
Description = Add Hot Spare Succeeded.
查詢和設置RAID重構/回拷/系統巡檢功能
命令功能
暫停、繼續、停止RAID重構/回拷/系統巡檢,並查詢進度。
命令格式
storcli64 /ccontroller_id/eenclosure_id/sslot_id action function
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
– |
action |
要執行的操作 |
|
function |
要處理的進程 |
|
使用指南
無
使用實例
# 查看RAID重構進度。
domino:~# ./storcli64 /c0/e252/s4 show rebuild
Controller = 0
Status = Success
Description = Show Drive Rebuild Status Succeeded.
------------------------------------------------------
Drive-ID Progress% Staus Estimated Time Left
------------------------------------------------------
/c0/e252/s4 9 In progress 12 Minutes
------------------------------------------------------
# 暫停RAID重構。
domino:~# ./storcli64 /c0/e252/s4 pause rebuild
Controller = 0
Status = Success
Description = Pause Drive Rebuild Status Succeeded.
設置Smart掃描周期
命令功能
設置Smart掃描周期。
命令格式
storcli64 /ccontroller_id set smartpollinterval=value
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
value |
Smart掃描周期 |
單位為s。 |
使用指南
無
使用實例
# 設置Smart掃描周期為“60s”。
domino:~# ./storcli64 /c0 set smartpollinterval=60
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
-------------------------------
Ctrl_Prop Value
-------------------------------
SmartPollInterval 60 second(s)
-------------------------------
通過增加成員盤可用容量擴容RAID
命令功能
在RAID未占用成員硬盤全部容量時,可通過調整RAID的可用空間,擴大RAID容量。
命令格式
storcli64 /ccontroller_id/vvd_id expand size=capacity
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
vd_id |
要擴容的RAID的ID |
– |
capacity |
擴容后的容量 |
– |
使用指南
無
使用實例
# 將VD0的容量擴大至“200GB”。
domino:~# ./storcli64 /c0/v0 expand size=200GB
Controller = 0
Status = Success
Description = expansion operation succeeded.
EXPANSION RESULT :
================
--------------------------------------------------------------------------------
VD Size FreSpc ReqSize AbsUsrSz %FreSpc NewSize Statsu NoArrExp
--------------------------------------------------------------------------------
0 100.0 GB 457.861 GB 200.0 GB 201.458 GB 44 301.458 GB - 457.861 GB
--------------------------------------------------------------------------------
Size - Current VD size|FreSpc - Freespace available before expansion
%FreSpc - Requested expansion size in % of available free space
AbsUsrSz - User size rounded to nearest %
通過增加新盤擴容或擴容后遷移RAID
命令功能
在已存在的RAID中添加新硬盤,擴大RAID容量。
當增加新盤后,可進行RAID級別遷移。
命令格式
storcli64 /ccontroller_id/vvd_id start migrate type=rlevel option=add drives=enclosure_id:slot_id
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
vd_id |
要操作的RAID的ID |
– |
slot_id |
要加入RAID的新硬盤的槽位號 |
– |
level |
增加硬盤后RAID的級別 |
|
使用指南
無
使用實例
# 在RAID 0中增加slot 2硬盤擴容。
domino:~# ./storcli64 /c0/v0 start migrate type=r0 option=add drives=252:2 Controller = 0 Status = Success Description = Start MIGRATE Operation Success. domino:~# ./storcli64 /c0/v0 show migrate Controller = 0 Status = Success Description = None VD Operation Status : =================== ------------------------------------------------------- VD Operation Progress% Status Estimated Time Left ------------------------------------------------------- 0 Migrate 1 In progress 13 Minutes -------------------------------------------------------
# 單盤RAID 0加盤遷移至RAID 1。
domino:~# ./storcli64 /c0/v0 start migrate type=r1 option=add drives=252:3 Controller = 0 Status = Success Description = Start MIGRATE Operation Success. domino:~# ./storcli64 /c0/v0 show migrate Controller = 0 Status = Success Description = None VD Operation Status : =================== ------------------------------------------------------- VD Operation Progress% Status Estimated Time Left ------------------------------------------------------- 0 Migrate 1 In progress 14 Minutes -------------------------------------------------------
查詢和清除PreservedCache數據
命令功能
查詢和清除PreservedCache數據。
命令格式
storcli64 /ccontroller_id show preservedcache
storcli64 /ccontroller_id/vvd_id delete preservedcache force
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
vd_id |
要操作的RAID的ID |
– |
使用指南
無
使用實例
# 查詢PreservedCache。
domino:~# ./storcli64 /c0 show preservedcache
Controller = 0
Status = Success
Description = No Virtual Drive has Preserved Cache Data.
設置一致性檢查參數
命令功能
設置一致性檢查參數。
命令格式
storcli64 /ccontroller_id[/vvd_id]show cc
storcli64 /ccontroller_id/vvd_id start cc force
storcli64 /ccontroller_id/vvd_id action cc
storcli64 /ccontroller_id set cc=comc delay=value starttime=time excludevd=evd_id
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
vd_id |
要操作的RAID的ID |
– |
action |
要執行的操作 |
|
value |
一致性檢查周期 |
– |
time |
一致性檢查起始時間 |
例如:2016/07/14 22:00:00 |
evd_id |
不進行一致性檢查的虛擬磁盤ID |
– |
使用指南
show命令中不帶/vvd_id時,表示查詢自動CC參數。
show命令中帶/vvd_id時,表示查詢CC進度。
使用實例
# 設置一致性自動檢查參數。
domino:~# ./storcli64 /c0 set cc=conc delay=1 starttime=2016/07/14 22:00:00 excludevd=0
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
------------------------------------
Ctrl_Prop Value
------------------------------------
CC Mode CONC
CC delay 1
CC Starttime 2016/07/14 22:00:00
CC ExcludeVD(0) Success
------------------------------------
# 查詢CC進度。
domino:~# ./storcli64 /c0/v1 show cc
Controller = 0
Status = Success
Description = None
VD Operation Status :
===================
-----------------------------------------------------------
VD Operation Progress% Status Estimited Time Left
-----------------------------------------------------------
0 CC - Not in progress -
查詢和設置Patrolread參數
命令功能
查詢和設置系統巡檢的相關參數。
命令格式
storcli64 /ccontroller_id set patrolread starttime=time maxconcurrentpd=number
storcli64 /ccontroller_id set patrolread delay=delaytime
storcli64 /ccontroller_id show patrolread
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
time |
系統巡檢起始時間 |
例如:2016/07/15 23:00:00 |
number |
可同時巡檢的硬盤數量 |
– |
delaytime |
系統巡檢周期 |
單位為hour。 |
使用指南
無
使用實例
# 設置patrolread的起始時間為“2016/07/15 23:00:00”,同時巡檢的硬盤數為“2”。
domino:~# ./storcli64 /c0 set patrolread starttime=2016/07/15 23:00:00 maxconcurrentpd=2
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
---------------------------------------
Ctrl_Prop Value
---------------------------------------
PR Starttime 2016/07/15 23:00:00
PR MaxConcurrentPd 2
---------------------------------------
# 查詢patrolread信息。
domino:~# ./storcli64 /c0 show patrolread
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
--------------------------------------------
Ctrl_Prop Value
--------------------------------------------
PR Mode 2016/07/15 23:00:00
PR Execution Delay
PR iterations completed 0
PR Next Start time 07/16/2016,00:00:00
PR on SSD Disabled
PR Current State Stopped
--------------------------------------------
查詢和設置CacheFlush參數
命令功能
查詢和設置Cache的刷新周期。
命令格式
storcli64 /ccontroller_id show cacheflushint
storcli64 /ccontroller_id set cacheflushint time
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
time |
Cache的刷新周期 |
單位為s |
使用指南
無
使用實例
# 設置Cache的刷新周期為“10”。
domino:~# ./storcli64 /c0 set cacheflushint=10
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
---------------------------
Ctrl_Prop Value
---------------------------
Cache Flush Interval 10 sec
---------------------------
# 查詢Cache的刷新周期。
domino:~# ./storcli64 /c0 show cacheflushint
Controller = 0
Status = Success
Description = None
Controller Properties :
=====================
---------------------------
Ctrl_Prop Value
---------------------------
Cache Flush Interval 10
---------------------------
設置硬盤直通功能
命令功能
設置RAID卡的硬盤直通功能的使能情況,並指定直通硬盤。
命令格式
storcli64 /ccontroller_id set jbod=state
storcli64 /ccontroller_id/eenclosure_id/sslot_id set JBOD
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
– |
state |
RAID卡JBOD功能的使能情況 |
|
使用指南
無
使用實例
# 使能RAID卡的硬盤直通功能,並設置slot 7硬盤為直通盤。
domino:~# ./storcli64 /c0 set jbod=on Controller = 0 Status = Success Description = None Controller Properties : ===================== ---------------- Ctrl_Prop Value ---------------- JBOD ON ---------------- domino:~# ./storcli64 /c0/e252/s7 set JBOD Controller = 0 Status = Success Description = Set Drive JBOD Succeeded.
設置硬盤狀態
命令功能
強制設置硬盤狀態。
命令格式
storcli64 /ccontroller_id/eenclosure_id/sslot_id set state
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
– |
state |
要設置的硬盤狀態 |
|
使用指南
無
使用實例
# 將“Unconfigured Bad”狀態下的slot 1硬盤設置為“Unconfigured Good”狀態。
domino:~# ./storcli64 /c0/e0/s1 set good force
Controller = 0
Status = Success
Description = Set Drive Good Succeeded.
設置硬盤定位指示燈狀態
命令功能
點亮和熄滅指定硬盤的定位指示燈。
命令格式
storcli64 /ccontroller_id/eenclosure_id/sslot_id action locate
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
可以為all,表示點亮所有Enclosure下屬的硬盤的定位指示燈。 |
slot_id |
硬盤槽位號 |
可以為all,表示點亮Enclosure下屬的所有硬盤的定位指示燈。 |
action |
要執行的操作 |
|
使用指南
無
使用實例
# 點亮slot 7硬盤的定位指示燈。
domino:~# ./storcli64 /c0/e252/s7 start locate
Controller = 0
Status = Success
Description = Start Drive Locate Succeeded.
查詢RAID卡/RAID組/物理硬盤信息
命令功能
查詢RAID卡、虛擬磁盤、物理硬盤的詳細信息。
命令格式
storcli64 /ccontroller_id show
storcli64 /ccontroller_id/eenclosure_id/sslot_id show all
storcli64 /ccontroller_id/vvd_id show all
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
可以為all,表示查詢所有硬盤信息。 |
vd_id |
虛擬磁盤ID |
可以為all,表示查詢所有虛擬磁盤信息。 |
使用指南
回顯中主要字段的含義如表8-74所示。
命令格式 |
字段 |
含義 |
舉例 |
---|---|---|---|
storcli64 /ccontroller_id show |
Product Name |
RAID卡的型號 |
sas3108 |
FW Version |
RAID卡的FW版本 |
4.660.00-8140 |
|
Driver Name |
RAID卡的驅動名稱 |
megaraid_sas |
|
Driver Version |
RAID卡的驅動版本 |
06.811.02.00-rh1 |
|
Current Personality |
RAID卡的工作模式 |
RAID-Mode |
|
storcli64 /ccontroller_id/eenclosure_id/sslot_id showall |
SN |
物理硬盤的序列號 |
PHWL517601YR800RGN |
Manufacturer Id |
物理硬盤的供應商ID |
ATA |
|
Model Number |
物理硬盤的模塊序號 |
INTEL SSDSC2BB800G4 |
|
Firmware Revision |
物理硬盤的FW版本 |
D2010370 |
|
Raw size |
物理硬盤的容量 |
745.211 GB [0x5d26ceb0 Sectors] |
|
Logical Sector Size |
物理硬盤邏輯分區大小 |
512B |
|
Physical Sector Size |
物理扇區大小 |
4 KB |
|
storcli64 /ccontroller_id/vvd_id show all
|
TYPE |
RAID組的級別 |
RAID1 |
State |
RAID組的狀態 |
Optl |
|
Access |
RAID組數據的訪問策略 |
RW |
|
Cache |
RAID組當前的讀寫策略與IO Policy |
RWTD |
|
Size |
RAID組的大小 |
100.0 GB |
|
PDs for VD0 |
RAID組下的物理硬盤 |
- |
|
Strip Size |
RAID組的條帶大小 |
256KB |
|
Write Cache(initial setting) |
RAID組Cache的寫策略 |
Write Through |
|
Disk Cache Policy |
RAID組成員盤的Cache策略 |
Disk's Default |
使用實例
#查詢RAID卡的詳細信息。
[root@localhost ~]# ./storcli64 /c0 show
Generating detailed summary of the adapter, it may take a while to complete.
CLI Version = 007.0409.0000.0000 Nov 06, 2017
Operating system = Linux3.10.0-514.el7.x86_64
Controller = 0
Status = Success
Description = None
Product Name = SAS3108
Serial Number =
SAS Address = 50030130f0900000
PCI Address = 00:01:00:00
System Time = 07/07/2018 22:06:42
Mfg. Date = 00/00/00
Controller Time = 07/07/2018 14:06:41
FW Package Build = 24.16.0-0093
BIOS Version = 6.32.02.0_4.17.08.00_0x06150500
FW Version = 4.660.00-8140
Driver Name = megaraid_sas
Driver Version = 06.811.02.00-rh1
Current Personality = RAID-Mode
Vendor Id = 0x1000
Device Id = 0x5D
SubVendor Id = 0x19E5
SubDevice Id = 0xD207
Host Interface = PCI-E
Device Interface = SAS-12G
Bus Number = 1
Device Number = 0
Function Number = 0
Drive Groups = 1
TOPOLOGY :
========
-----------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type State BT Size PDC PI SED DS3 FSpace TR
-----------------------------------------------------------------------------
0 - - - - RAID1 Optl N 744.125 GB dflt N N none N N
0 0 - - - RAID1 Optl N 744.125 GB dflt N N none N N
0 0 0 252:1 18 DRIVE Onln N 744.125 GB dflt N N none - N
0 0 1 252:0 48 DRIVE Onln N 744.125 GB dflt N N none - N
-----------------------------------------------------------------------------
DG=Disk Group Index|Arr=Array Index|Row=Row Index|EID=Enclosure Device ID
DID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=Degraded
Pdgd=Partially degraded|Offln=Offline|BT=Background Task Active
PDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=Foreign
DS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present
TR=Transport Ready
Virtual Drives = 1
VD LIST :
=======
---------------------------------------------------------------
DG/VD TYPE State Access Consist Cache Cac sCC Size Name
---------------------------------------------------------------
0/0 RAID1 Optl RW Yes RWBD - ON 744.125 GB
---------------------------------------------------------------
Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|Dgrd=Degraded
Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|TRANS=TransportReady|B=Blocked|
Consist=Consistent|R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency
Physical Drives = 6
PD LIST :
=======
---------------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type
---------------------------------------------------------------------------------
252:0 48 Onln 0 744.125 GB SATA SSD N N 512B INTEL SSDSC2BB800G4 U -
252:1 18 Onln 0 744.125 GB SATA SSD N N 512B INTEL SSDSC2BB800G4 U -
252:2 19 UGood - 744.125 GB SATA SSD N N 512B INTEL SSDSC2BA800G4 U -
252:3 20 UGood - 744.125 GB SATA SSD N N 512B INTEL SSDSC2BA800G4 U -
252:4 49 UGood - 744.125 GB SATA SSD N N 512B INTEL SSDSC2BB800G4 U -
252:5 47 UGood - 744.125 GB SATA SSD N N 512B INTEL SSDSC2BB800G4 U -
---------------------------------------------------------------------------------
EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down/PowerSave|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded
Cachevault_Info :
===============
------------------------------------
Model State Temp Mode MfgDate
------------------------------------
CVPM02 Optimal 28C - 2016/11/04
------------------------------------
#查詢slot0的物理硬盤的信息。
[root@localhost ~]# ./storcli64 /c0/e252/s0 show all
CLI Version = 007.0409.0000.0000 Nov 06, 2017
Operating system = Linux3.10.0-514.el7.x86_64
Controller = 0
Status = Success
Description = Show Drive Information Succeeded.
Drive /c0/e252/s0 :
=================
---------------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type
---------------------------------------------------------------------------------
252:0 48 Onln 0 744.125 GB SATA SSD N N 512B INTEL SSDSC2BB800G4 U -
---------------------------------------------------------------------------------
EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down/PowerSave|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded
Drive /c0/e252/s0 - Detailed Information :
========================================
Drive /c0/e252/s0 State :
=======================
Shield Counter = 0
Media Error Count = 0
Other Error Count = 0
Drive Temperature = 20C (68.00 F)
Predictive Failure Count = 0
S.M.A.R.T alert flagged by drive = No
Drive /c0/e252/s0 Device attributes :
===================================
SN = PHWL517601YR800RGN
Manufacturer Id = ATA
Model Number = INTEL SSDSC2BB800G4
NAND Vendor = NA
WWN = 55cd2e404c533246
Firmware Revision = D2010370
Raw size = 745.211 GB [0x5d26ceb0 Sectors]
Coerced size = 744.125 GB [0x5d040800 Sectors]
Non Coerced size = 744.711 GB [0x5d16ceb0 Sectors]
Device Speed = 6.0Gb/s
Link Speed = 6.0Gb/s
NCQ setting = Enabled
Write cache = N/A
Logical Sector Size = 512B
Physical Sector Size = 4 KB
Connector Name = Port A x1
Drive /c0/e252/s0 Policies/Settings :
===================================
Drive position = DriveGroup:0, Span:0, Row:1
Enclosure position = 1
Connected Port Number = 0(path0)
Sequence Number = 2
Commissioned Spare = No
Emergency Spare = No
Last Predictive Failure Event Sequence Number = 0
Successful diagnostics completion on = N/A
SED Capable = No
SED Enabled = No
Secured = No
Cryptographic Erase Capable = No
Locked = No
Needs EKM Attention = No
PI Eligible = No
Certified = No
Wide Port Capable = No
Port Information :
================
-----------------------------------------
Port Status Linkspeed SAS address
-----------------------------------------
0 Active 6.0Gb/s 0x4433221100000000
-----------------------------------------
Inquiry Data =
40 00 ff 3f 37 c8 10 00 00 00 00 00 3f 00 00 00
00 00 00 00 48 50 4c 57 31 35 36 37 31 30 52 59
30 38 52 30 4e 47 20 20 00 00 00 00 00 00 32 44
31 30 33 30 30 37 4e 49 45 54 20 4c 53 53 53 44
32 43 42 42 30 38 47 30 20 34 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 01 80
00 40 00 2f 00 40 00 00 00 00 07 00 ff 3f 10 00
3f 00 10 fc fb 00 01 bf ff ff ff 0f 00 00 07 00
# 查詢VD 0的信息。
[root@rhel6u5 ~]# /opt/MegaRAID/storcli/storcli64 /c0/v0 show all
Controller = 0
Status = Success
Description = None
/c0/v0 :
======
---------------------------------------------------------
DG/VD TYPE State Access Consist Cache sCC Size Name
---------------------------------------------------------
1/0 RAID1 Optl RW Yes RWTD - 1.089 TB
---------------------------------------------------------
Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded
Optl=Optimal|RO=Read Only|RW=Read Write|B=Blocked|Consist=Consistent|
R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency
PDs for VD 0 :
============
-----------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp
-----------------------------------------------------------------------
25:22 14 Onln 1 1.089 TB SAS HDD N N 512B ST1200MM0007 U
25:23 26 Onln 1 1.089 TB SAS HDD N N 512B ST1200MM0007 U
-----------------------------------------------------------------------
EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded
VD0 Properties :
==============
Strip Size = 256 KB
Number of Blocks = 2341795840
VD has Emulated PD = No
Span Depth = 1
Number of Drives Per Span = 2
Write Cache(initial setting) = WriteThrough
Disk Cache Policy = Disk's Default
Encryption = None
Data Protection = Disabled
Active Operations = None
Exposed to OS = Yes
Creation Date = 04-01-2018
Creation Time = 12:38:35 PM
Emulation type = None
配置CacheCade虛擬磁盤
命令功能
可使用SSD硬盤創建CacheCade虛擬磁盤。
命令格式
storcli64 /ccontroller_id add vd cc raidlevel drives=enclosure_id:disk
storcli64 /ccontroller_id/vvd_id del cachecade
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
level |
RAID級別 |
用於CacheCade的RAID可配置為RAID 0或RAID 1。 |
disk |
成員盤的槽位號 |
當配置多個成員盤時,參數為槽位范圍,例如0–3。 |
vd_id |
待刪除的CacheCade RAID的ID |
– |
使用指南
無
使用實例
# 配置單盤CacheCade RAID 0。
domino:~# ./storcli64 /c0/ add vd cc raid0 drives=252:0
Controller = 0
Status = Success
Description = Add VD Succeeded
# 刪除CacheCade RAID 0。
domino:~# ./storcli64 /c0/v0 del cachecade
Controller = 0
Status = Success
Description = Disassociation of the Cachecade virtual drive is in progress and can take a few minutes to complete.
The Cachecade virtual drive is deleted after the disassociation is complete.
恢復Frn-Bad狀態的硬盤
命令功能
將Frn-Bad狀態的RAID成員盤恢復為Online狀態。
命令格式
storcli64 /ccontroller_id/eenclosure_id/sslot_id set good
storcli64 /ccontroller_id/fall import
storcli64 /ccontroller_id/eenclosure_id/sslot_id start rebuild
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
成員盤的槽位號 |
– |
使用指南
無
使用實例
如圖8-190所示,slot 1和slot 5硬盤的狀態為“UBad F”,在OS下可通過以下步驟將硬盤狀態恢復為“online”。
1、先把slot 1和slot 5的硬盤狀態設置為UGood。
domino:~# ./storcli64 /c0/e0/s1,5 set good
Controller = 0
Status = Success
Description = Set Drive Good Succeeded.
2、導入外部配置。
domino:~# ./storcli64 /c0/fall import
Controller = 0
Status = Success
Description = Successfully imported foreign configuration
3、導入外部配置后,如果需要重構RAID,則執行以下命令。
domino:~# ./storcli64 /c0/e0/s1 start rebuild
Controller = 0
Status = Success
Description = Start Drive Rebuild Succeeded.
查詢超級電容的相關信息
命令功能
查詢超級電容的名稱及TFM Flash卡緩存容量的大小等信息。
命令格式
storcli64 /ccontroller_id/cv show all
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
可以為all,表示所有控制器。 |
使用實例
#查詢超級電容的相關信息。
[root@localhost ~]# ./storcli64 /c0/cv show all
CLI Version = 007.0409.0000.0000 Nov 06, 2017
Operating system = Linux3.10.0-514.el7.x86_64
Controller = 0
Status = Success
Description = None
Cachevault_Info :
===============
--------------------
Property Value
--------------------
Type CVPM02
Temperature 28 C
State Optimal
--------------------
Firmware_Status :
===============
---------------------------------------
Property Value
---------------------------------------
Replacement required No
No space to cache offload No
Module microcode update required No
---------------------------------------
GasGaugeStatus :
==============
------------------------------
Property Value
------------------------------
Pack Energy 294 J
Capacitance 108 %
Remaining Reserve Space 0
------------------------------
Design_Info :
===========
------------------------------------
Property Value
------------------------------------
Date of Manufacture 04/11/2016
Serial Number 22417
Manufacture Name LSI
Design Capacity 288 J
Device Name CVPM02
tmmFru N/A
CacheVault Flash Size 8.0 GB
tmmBatversionNo 0x05
tmmSerialNo 0xee7d
tmm Date of Manufacture 09/12/2016
tmmPcbAssmNo 022544412A
tmmPCBversionNo 0x03
tmmBatPackAssmNo 49571-13A
scapBatversionNo 0x00
scapSerialNo 0x5791
scap Date of Manufacture 04/11/2016
scapPcbAssmNo 1700134483
scapPCBversionNo A
scapBatPackAssmNo 49571-13A
Module Version 6635-02A
------------------------------------
Properties :
==========
--------------------------------------------------------------
Property Value
--------------------------------------------------------------
Auto Learn Period 27d (2412000 seconds)
Next Learn time 2018/08/03 17:48:38 (586633718 seconds)
Learn Delay Interval 0 hour(s)
Auto-Learn Mode Transparent
--------------------------------------------------------------

- 上述回顯信息中,“Device Name CVPM02”表示超級電容的名稱為 “CVPM02”,“CacheVault Flash Size 8.0GB”表示TFM Flash卡緩存容量為“8.0GB”。
- 當回顯信息的“State”顯示為“FAILED”時,需要更換超級電容。
升級硬盤FW
命令功能
升級硬盤的FW。
命令格式
./storcli64 /ccontroller_id /eenclosure_id/sslot_id download src=FW_name.bin
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
硬盤槽位號 |
– |
FW_name |
硬盤FW的名稱 |
– |
使用實例
#升級硬盤FW。
[root@localhost ~]# ./storcli64 /c0/e64/s5 download src=5200_D1MU004_Releasefullconcatenatedbinary.bin
Starting microcode update .....please wait...
Flashing PD image ..... please wait...
CLI Version = 007.0504.0000.0000 Nov 22,2017
Operation system = Linux 3.10.0-514.el7.x86_64
Controller = 0
Status = Success
Description = Firmware Download succeeded.
Drive Firmware Download :
========================
--------------------------------------------------------------------------------
Drive Status ErrCd ErrMsg
--------------------------------------------------------------------------------
/c0/e64/s5 Success 0 -
--------------------------------------------------------------------------------
手動重構RAID
命令功能
手動重構RAID組。
命令格式
storcli64 /ccontroller_id/eenclosure_id/sslot_id insert dg=DG array=Arr row=Row
storcli64 /ccontroller_id/eenclosure_id/sslot_id start rebuild
參數說明
參數 |
參數說明 |
取值 |
---|---|---|
controller_id |
硬盤所在RAID卡的ID |
– |
enclosure_id |
硬盤所在Enclosure的ID |
– |
slot_id |
要加入Array的硬盤槽位號 |
– |
DG |
硬盤發生故障的DG的ID |
– |
Arr |
硬盤發生故障的Array的ID |
– |
Row |
硬盤發生故障的Array的row number |
– |
使用指南
重建RAID分3個步驟進行:
1.通過./storcli64 /c0 show 命令,查詢故障硬盤的DG、Arr和Row所對應的數字。
2.通過storcli64 /ccontroller_id/eenclosure_id/sslot_id insert dg=DG array=Arr row=Row 命令,將硬盤加入RAID組。
3.執行storcli64 /ccontroller_id/eenclosure_id/sslot_id start rebuild命令,手動重構RAID。
使用實例
# 將硬盤加入RAID組。
[root@localhost ~]# storcli64 /c0/e252/s2 insert dg=0 array=0 row=1
CLI Version = 007.0504.0000.0000 Nov 22, 2017
Operating system = Linux 3.10.0-693.el7.x86_64
Controller = 0
Status = Success
Description = Insert Drive Succeeded.
# 手動重構RAID。
[root@localhost ~]# storcli64 /c0/e252/s1 start rebuild
CLI Version = 007.0504.0000.0000 Nov 22, 2017
Operating system = Linux 3.10.0-693.el7.x86_64
Controller = 0
Status = Success
Description = Start Drive Rebuild Succeeded.