服務器-惠普 HP ProLiant-linux系統-RAID信息查看和陣列卡操作-hpacucli工具使用


惠普 hpacucli工具使用
命令組成
hpacucli [parameter=value]

查看:

查看所有控制器狀態
hpacucli ctrl all show

查看slot 0陣列信息詳細狀態 (可以查看物理磁盤和邏輯磁盤的對應關系)
1)hpacucli ctrl slot=0 show config detail

2)hpacucli ctrl slot=0 logicaldrive 2 show(邏輯磁盤信息)


3)hpacucli ctrl slot=0 physicaldrive 1I:2:1 show(物理磁盤信息)

查看slot 0 所有陣列信息
hpacucli ctrl slot=0 array all show

查看slot 0 陣列B 所有邏輯驅動器信息
hpacucli ctrl slot=0 array B ld all show

查看slot 0 陣列B 所有物理驅動器信息
hpacucli ctrl slot=0 array B pd all show

查看slot 0 陣列B 所有物理驅動器狀態
hpacucli ctrl slot=0 array B pd all show status

創建:

用3,4,5,6號盤創建一個raid1+0陣列
hpacucli ctrl slot=0 create type=ld drives=1I:1:3,1I:1:4,2I:1:5,2I:1:6 raid=1+0

用3,4,5號盤創建一個raid5陣列
hpacucli ctrl slot=0 create type=ld drives=1I:1:3,1I:1:4,2I:1:5 raid=5

用3號盤創建一個raid0陣列
hpacucli ctrl slot=0 create type=ld drives=1I:1:3 raid=0

刪除:

強制刪除陣列 B
hpacucli ctrl slot=0 array B delete forced

強制刪除邏輯磁盤2
hpacucli ctrl slot=0 logicaldrive 2 delete forced

緩存:

關閉物理磁盤cache
hpacucli ctrl slot=0 modify drivewritecache=disable

打開邏輯磁盤緩存
hpacucli ctrl slot=0 logicaldrive 2 modify caching=enable

在沒有電池的情況下開啟raid寫緩存
hpacucli ctrl slot=0 modify nobatterywritecache=enable

設置讀寫百分比
hpacucli ctrl slot=0 modify cacheratio=10/90

指示燈:

打開array B磁盤的led燈
hpacucli ctrl slot=0 array B modify led=on

打開3號磁盤的led燈
hpacucli ctrl slot=0 pd 1I:1:3 modify led=on

查看cache信息:
hpacucli ctrl all show config detail | grep -i cache

查看陣列號及SSDSmartPath:
hpssacli ctrl all show config detail| egrep -i 'Array:|HP SSD Smart Path'


SSD需要注意:(打開邏輯緩存需要關閉SSD Smart Path功能)
hpssacli ctrl slot=0 array A modify ssdsmartpath=disable


遇到的問題:
SSD 做成raid0后,開啟邏輯磁盤緩存時報錯,如下
ctrl slot=0 logicaldrive 8 modify caching=enable forced
Error: Invalid drive specified: 8


觀察狀態:ctrl slot=0 logicaldrive 6 show 注意最后一項為
LD Acceleration Method: HP SSD Smart Path (這種狀態不能給邏輯磁盤做緩存)


使用命令
ctrl slot=0 array F modify ssdsmartpath=disable
切換成 LD Acceleration Method: Controller Cache
就可以成功設置了。
ctrl slot=0 logicaldrive 6 show


免責聲明!

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



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