HPACUCLI stands for HP Array Configuration Utility CLI.
Hpacucli is used to create, delete and repair the logical and physical drives on the smart array controllers in HP servers.
To use hpacucli, download and install the latest version of hpacucli rpm from the HP website on your Linux server.
Controller Commands: Display detail of Controller
hpacucli> ctrl all show config
hpacucli> ctrl all show config detail
Controller Commands: Display status of Controller
hpacucli> ctrl all show status
Controller Commands: Disable the cache
hpacucli> ctrl slot=0 modify dwc=disable
Controller Commands: Enable the cache
hpacucli> ctrl slot=0 modify dwc=enable
Controller Commands: 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
Physical Drive Commands: Display Status of physicalDrive
hpacucli> ctrl slot=0 pd all show status
Physical Drive Commands: To Erase the physicalDrive
hpacucli> ctrl slot=0 pd 2:3 modify erase
Physical Drive Commands: To enable the LED
hpacucli> ctrl slot=0 pd 2:3 modify led=on
Physical Drive Commands: To Disable the LED
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
Logical Drive Commands: Display Status of LogicalDrive
hpacucli> ctrl slot=0 ld all show status
Logical Drive Commands: To re-enabling failed drive
hpacucli> ctrl slot=0 ld 4 modify reenable forced
Configuring RAID level: Create LogicalDrive with RAID 0 using one drive
hpacucli> ctrl slot=0 create type=ld drives=1:12 raid=0
Configuring RAID level: Create LogicalDrive with RAID 1 using two drives
hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14 size=300 raid=1
Configuring RAID level: 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
Expand, Extend, add spare and deleting Logical drives in existing RAID: To Delete Logical Drives
hpacucli> ctrl slot=0 ld 4 delete
Expand, Extend, add spare and deleting Logical drives in existing RAID: Expanding ld by adding one more drive
hpacucli> ctrl slot=0 ld 4 add drives=2:3
Expand, Extend, add spare and deleting Logical drives in existing RAID: Extending the LogicalDrives
hpacucli> ctrl slot=0 ld 4 modify size=500 forced
Expand, Extend, add spare and deleting Logical drives in existing RAID: Add two Spare disks
hpacucli> ctrl slot=0 array all add spares=1:5,1:7