hp Raid control on ESX v 5,6and 7 hpssacli


Show all configuration
hpssacli ctrl all show config

Controller status all
hpssacli ctrl all show status

Show detailed controller information for all controllers
hpssacli ctrl all show detail

Show detailed controller information for controller in slot 0
hpssacli ctrl slot=0 show detail

Rescan for New Devices
hpssacli rescan

Physical disk status
hpssacli ctrl slot=0 pd all show status

Show detailed physical disk information
hpssacli ctrl slot=0 pd all show detail

Logical disk status
hpssacli ctrl slot=0 ld all show status

View Detailed Logical Drive Status
hpssacli ctrl slot=0 ld 2 show

Create New RAID 0 Logical Drive
hpssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0

Create New RAID 1 Logical Drive
hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1

Create New RAID 5 Logical Drive
hpssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2,2I:1:6,2I:1:7,2I:1:8 raid=5

Delete Logical Drive
hpssacli ctrl slot=0 ld 2 delete

Add New Physical Drive to Logical Volume
hpssacli ctrl slot=0 ld 2 add drives=1I:1:3,3I:1:4

Add Spare Disks
hpssacli ctrl slot=0 array all add spares=1I:1:3,3I:1:4

Enable Drive Write Cache
hpssacli ctrl slot=0 modify dwc=enable

Disable Drive Write Cache
hpssacli ctrl slot=0 modify dwc=disable

Erase Physical Drive
hpssacli ctrl slot=0 pd 2I:1:6 modify erase

Turn on Blink Physical Disk LED
hpssacli ctrl slot=0 ld 2 modify led=on

Turn off Blink Physical Disk LED
hpssacli ctrl slot=0 ld 2 modify led=off

Modify smart array cache read and write ratio (cacheratio=readratio/writeratio)
hpssacli ctrl slot=0 modify cacheratio=100/0

Enable smart array write cache when no battery is present (No-Battery Write Cache option)
hpssacli ctrl slot=0 modify nbwc=enable

Disable smart array cache for certain Logical Volume
hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable

Enable smart array cache for certain Logical Volume
hpssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable

Enable SSD Smart Path
hpssacli ctrl slot=0 array a modify ssdsmartpath=enable

Disable SSD Smart Path
hpssacli ctrl slot=0 array a modify ssdsmartpath=disable

On ESX v 7
hpssacli not working from shell yo must use esxcli …
exmaple:
esxcli hpssacli cmd -q “ctrl all show”

Documentation
http://www.hp.com/ctg/Manual/c03909334
http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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