hpacucli Supported Controllers
Smart Array products:
Smart Array 5312 Controller
Smart Array 5302 Controller
Smart Array 5304 Controller
Smart Array 532 Controller
Smart Array 5i Controller
Smart Array 641 Controller
Smart Array 642 Controller
Smart Array 6400 Controller
Smart Array 6400 EM Controller
Smart Array 6i Controller
Smart Array P600 Controller
Smart Array P400 Controller
Smart Array P400i Controller
Smart Array E200 Controller
Smart Array E200i Controller
Smart Array P800 Controller
Smart Array E500 Controller
Smart Array P700m Controller
Smart Array P410i Controller
Smart Array P411 Controller
Smart Array P212 Controller
Smart Array P712m Controller
Smart Array B110i SATA RAID
Smart Array P812 Controller
Smart Array P220i Controller
Smart Array P222 Controller
Smart Array P420 Controller
Smart Array P420i Controller
Smart Array P421 Controller
Smart Array P822 Controller
Smart Array P721m Controller
Dynamic Smart Array B320i RAID
Dynamic Smart Array B120i RAID
MSA products:
MSA500 Controller
MSA500 G2 Controller
MSA1000 Controller
MSA1500 CS Controller
MSA20 Controller
hpssacli Supported Controllers
Smart Array P410i Controller
Smart Array P411 Controller
Smart Array P212 Controller
Smart Array P712m Controller
Smart Array B110i SATA RAID
Smart Array P812 Controller
Smart Array P220i Controller
Smart Array P222 Controller
Smart Array P420 Controller
Smart Array P420i Controller
Smart Array P421 Controller
Smart Array P822 Controller
Smart Array P721m Controller
Dynamic Smart Array B320i RAID
Dynamic Smart Array B120i RAID
Smart Array P430 Controller
Smart Array P431 Controller
Smart Array P731m Controller
Smart Array P230i Controller
Smart Array P530 Controller
Smart Array P531 Controller
Smart Array P830 Controller
Smart Array P830i Controller
Hp raid卡
判斷服務器是否爲hp raid卡
[root@hp45 ~]#lspci | grep RAID
02:00.0 RAID bus controller: Hewlett-Packard Company Smart Array Gen8 Controllers (rev 01)
使用軟件爲 hpacucli 軟件下載地址:http://h20565.www2.hp.com/portal/site/hpsc/public/ 輸入HP Array Configuration Utility CLI for Linux 64-bit搜索
http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3DswItem%253DMTX_9a45caa3b8be46398c1bd4d016&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
hpacucli-9.40-12.0.x86_64.rpm
hpssacli軟件下載地址:http://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p215599048/v100519/hpssacli-2.0-23.0.x86_64.rpm
ubuntu安裝:
下載hpacucli-9.40-12.0.x86_64.rpm包。
然後安裝alien 命令:apt-get install alien
把rpm包轉換成deb包:alien --scripts hpacucli-9.40-12.0.x86_64.rpm
hpacucli_9.40-13_amd64.deb
再安裝deb包:dpkg -i hpacucli_9.40-13_amd64.deb
安裝成功,但是會有如下提示:
DOWNGRADE
NOTE: To downgrade this application to any version prior to 9.10.x.x,
the current RPM must be manually uninstalled using the "rpm -e" command
before any prior versions can be installed.
LOCKING NOTE: The locking mechanism starting with versions 9.10.X.X, are not compatible with prior versions of the applications. Therefore, mixing older and newer versions of the various applications (ACU, HPACUCLI, HPACUSCRIPTING) is not recommended.
在h3c r690機器上面,使用hpacucli獲取不到控制器。所以需要使用hpssacli工具。安裝方法同hpacucli。
如果機器上面安裝過hpssacli命令並且使用hpssacli命令配置過raid.再次使用hpacucli命令會報錯。提示爲已經用新版本工具修改過配置文件,不能再使用這個版本。需要更新。
命令組成
hpacucli <target> <command> [parameter=value]
查看:
查看所有控制器狀態
hpacucli ctrl all show查看slot 0陣列信息詳細狀態
hpacucli ctrl slot=0 show config detail查看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
Cache Serial Number: PBKUC0BRH5L0F3 Wait for Cache Room: Disabled Cache Board Present: True Cache Status: OK --cache狀態 Cache Ratio: 10% Read / 90% Write --cache百分比 Drive Write Cache: Disabled --磁盤cache Total Cache Size: 1024 MB Total Cache Memory Available: 816 MB No-Battery Write Cache: Disabled --沒有電池時寫緩存 Cache Backup Power Source: Capacitors Cache Module Temperature (C): 36