首页 > 代码库 > hp raid卡

hp raid卡

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]

查看:

  1. 查看所有控制器状态
    hpacucli ctrl all show

  2. 查看slot 0阵列信息详细状态
    hpacucli ctrl slot=0 show config detail

  3. 查看slot 0 所有阵列信息
    hpacucli ctrl slot=0 array all show

  4. 查看slot 0 阵列B 所有逻辑驱动器信息
    hpacucli ctrl slot=0 array B ld all show

  5. 查看slot 0 阵列B 所有物理驱动器信息
    hpacucli ctrl slot=0 array B pd all show

  6. 查看slot 0 阵列B 所有物理驱动器状态
    hpacucli ctrl slot=0 array B pd all show status

创建:

  1. 用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

  2. 用3,4,5号盘创建一个raid5阵列
    hpacucli ctrl slot=0 create type=ld drives=1I:1:3,1I:1:4,2I:1:5 raid=5

  3. 用3号盘创建一个raid0阵列
    hpacucli ctrl slot=0 create type=ld drives=1I:1:3 raid=0

删除:

  1. 强制删除阵列 B
    hpacucli ctrl slot=0 array B delete forced

  2. 强制删除逻辑磁盘2
    hpacucli ctrl slot=0 logicaldrive 2 delete forced

缓存:

  1. 关闭物理磁盘cache
    hpacucli ctrl slot=0 modify drivewritecache=disable

  2. 打开逻辑磁盘缓存
    hpacucli ctrl slot=0 logicaldrive 2 modify caching=enable

  3. 在没有电池的情况下开启raid写缓存
    hpacucli ctrl slot=0 modify nobatterywritecache=enable

  4. 设置读写百分比
    hpacucli ctrl slot=0 modify cacheratio=10/90

指示灯:

  1. 打开array B磁盘的led灯
    hpacucli ctrl slot=0 array B modify led=on

  2. 打开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


hp raid卡