configure Smart Array Controller by use of esxcli

The following commands show how to configure an HP Smart Array Controller by use of command line utility esxcli. Some time ago, ACU is replaced by Smart Storage Administrator (SSA). So if the command hpacucli doesn´t work for you any more, replace it by hpssacli.

To be able to do this, HP offline bundle must be installed on the host.

show controller in host
esxcli hpacucli cmd -q "controller all show"

show physical disks on controller identified by serial number 5000000000000000
esxcli hpacucli cmd -q "controller sn=5000000000000000 pd all show"

show logical disks on controller identified by serial number 5000000000000000
esxcli hpacucli cmd -q "controller sn=5000000000000000 ld all show"

create logical drive of raid level 5 on controller identified by serial number5000000000000000 using listed disks
esxcli hpacucli cmd -q "controller sn=5000000000000000 create type=ld drives=1I:1:3,1I:1:4,2I:1:5,2I:1:6,2I:1:7 size=max raid=5"

add spare disk to array B
esxcli hpacucli cmd -q "controller sn=5000000000000000 array B add spares=2I:1:8"

remove spare disk to array B (show pd before to detect spares)
esxcli hpacucli cmd -q "controller sn=5000000000000000 array B remove spares=2I:1:8"

create a logical disk using range of disks with SSD Smart Path enabled
esxcli hpssacli cmd -q "controller sn=5000000000000000 create type=ld raid=5 drives=2I:1:2-2I:1:7 ssdsmartpath=enable"

disable SSD Smart Path on a array A
esxcli hpssacli cmd -q "controller sn=5000000000000000 array A modify ssdsmartpath=disable"

disable write cache on logical drive n
esxcli hpssacli cmd -q "controller sn=5000000000000000 ld n modify aa=disable"

 

 

reference (pdf)

 

Advertisements
configure Smart Array Controller by use of esxcli

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s