HP Array Configuration Utility CLI for Linux

HP Array Configuration Utility CLI for Linux (hpacucli) is a program for controlling HP Smart Array controllers.

To invoke the interactive shell, run the command hpacucli. for help run hpacucli help.

Controller Commands

Display detail of Controller

hpacucli> ctrl all show config
hpacucli> ctrl all show config detail

Display status of Controller

hpacucli> ctrl all show status

Enable or Disable the cache

hpacucli> ctrl slot=0 modify dwc=disable
hpacucli> ctrl slot=0 modify dwc=enable

Detects newly added devices since the last rescan

hpacucli> rescan

Physical Drive Commands

Display detail information of physicalDrive

hpacucli> ctrl slot=0 pd all show
hpacucli> ctrl slot=0 pd 2:3 show detail

Display Status of physicalDrive

hpacucli> ctrl slot=0 pd all show status
hpacucli> ctrl slot=0 pd 2:3 show status

To Erase the physicalDrive

hpacucli> ctrl slot=0 pd 2:3 modify erase

To enable or Disable the LED

hpacucli> ctrl slot=0 pd 2:3 modify led=on
hpacucli> ctrl slot=0 pd 2:3 modify led=off

Logical Drive Commands

Display detail information of LogicalDrive

hpacucli> ctrl slot=0 ld all show
hpacucli> ctrl slot=0 ld 4 show

Display Status of LogicalDrive

hpacucli> ctrl slot=0 ld all show status
hpacucli> ctrl slot=0 ld 4 show status

To re-enabling failed drive

hpacucli> ctrl slot=0 ld 4 modify reenable forced

Create LogicalDrive with RAID 0 using one drive:

hpacucli> ctrl slot=0 create type=ld drives=1:12 raid=0

Create LogicalDrive with RAID 1 using two drives:

hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14 size=300 raid=1

Create LogicalDrive with RAID 5 using five drives:

hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14,1:15,1:16,1:17 raid=5

To Delete LogicalDrives

hpacucli> ctrl slot=0 ld 4 delete

Expanding logicaldrive by adding one more drive

hpacucli> ctrl slot=0 ld 4 add drives=2:3

Extending the LogicalDrives

hpacucli> ctrl slot=0 ld 4 modify size=500 forced

Add two Spare disks

hpacucli> ctrl slot=0 array all add spares=1:5,1:7