Managing HP Smart Array Controllers from the Command Line

Managing HP Smart Array
Controllers from the Command Line
HP Smart Array RAID controllers have a command line interface available in Windows, Linux, and ESX.  Below are a few specific use cases followed by a list of common commands.  In Windows, the CLI tool is located at C:\Program Files\Smart Storage Administrator\ssacli\bin\ on an HP server configured using Smart Start.

Add a Physical Drive to a Logical Drive

#Set your location to the appropriate directory
cd C:\Program Files\Smart Storage Administrator\ssacli\bin\

#Enumerate your RAID controller and drive configuration
ssacli.exe controller all show config

#Add unassigned drive to an existing logical drive
ssacli controller slot=0 logicaldrive 2 add drives=2I:2:5

#Enumerate your RAID controller physical and logical drive configuration
#Confirm the physical drive was added to the logical drive
#Notice the "Transforming" progress indicator
ssacli.exe controller all show config


Extend a Logical Drive

#Enumerate your RAID controller physical and logical drive configuration
#Notice the "Transforming" from the previous step has completed but the logical drive size is incorrect.  
#The drive must now be extended.
ssacli.exe controller all show config


#Extend a Logical drive
ssacli controller slot=0 logicaldrive 2 modify size=max


#Enumerate your RAID controller physical and logical drive configuration
#Notice the logical drive size is correct.
ssacli.exe controller all show config


Remove a Logical Drive

#Enumerate your RAID controller physical and logical drive configuration
ssacli.exe controller all show config


#Delete Logical Drive
ssacli.exe controller slot=0 logicaldrive 2 delete


#Enumerate your RAID controller physical and logical drive configuration
#Confirm the logical drive was removed
ssacli.exe controller all show config


Create a Logical Drive

#Enumerate your RAID controller physical and logical drive configuration
#Notice the unassigned physical drives
ssacli.exe controller all show config


#Create New RAID 5 Logical Drive
ssacli.exe controller slot=0 create type=logicaldrive drives=2I:2:5,2I:2:6,2I:2:7,2I:2:8 raid=5


#Enumerate your RAID controller physical and logical drive configuration
#Confirm the logical drive was created
ssacli.exe controller all show config


Enable Passthru Mode

#Enumerate your RAID controller physical and logical drive configuration
.\ssacli controller slot=0 modify hbamode=on forced

Common Commands for HP Array Controller Configuration on Windows

#Move to the appropriate directory
CD "C:\Program Files\Smart Storage Administrator\ssacli\bin\"

#Show configuration
ssacli.exe ctrl all show config

#Controller status
ssacli.exe ctrl all show status

#Show detailed controller information for all controllers
ssacli.exe ctrl all show detail

#Show detailed controller information for controller in slot 0
ssacli.exe ctrl slot=0 show detail

#Rescan for New Devices
ssacli.exe rescan

#Physical disk status
ssacli.exe ctrl slot=0 pd all show status

#Show detailed physical disk information
ssacli.exe ctrl slot=0 pd all show detail

#Logical disk status
ssacli.exe ctrl slot=0 ld all show status

#View Detailed Logical Drive Status
ssacli.exe ctrl slot=0 ld 2 show

#Create New RAID 0 Logical Drive
ssacli.exe ctrl slot=0 create type=ld drives=1I:1:2 raid=0

#Create New RAID 1 Logical Drive
ssacli.exe ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1

#Create New RAID 5 Logical Drive
ssacli.exe 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
ssacli.exe ctrl slot=0 ld 2 delete

#Add New Physical Drive to Logical Volume
ssacli.exe ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7

#Add Spare Disks
ssacli.exe ctrl slot=0 array all add spares=2I:1:6,2I:1:7

#Enable Drive Write Cache
ssacli.exe ctrl slot=0 modify dwc=enable

#Disable Drive Write Cache
ssacli.exe ctrl slot=0 modify dwc=disable

#Erase Physical Drive
ssacli.exe ctrl slot=0 pd 2I:1:6 modify erase

#Turn on Blink Physical Disk LED
ssacli.exe ctrl slot=0 ld 2 modify led=on

#Turn off Blink Physical Disk LED
ssacli.exe ctrl slot=0 ld 2 modify led=off

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

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

#Disable smart array cache for certain Logical Volume
ssacli.exe ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable

#Enable smart array cache for certain Logical Volume
ssacli.exe ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable

#Enable SSD Smart Path
ssacli.exe ctrl slot=0 array a modify ssdsmartpath=enable

#Disable SSD Smart Path
ssacli.exe ctrl slot=0 array a modify ssdsmartpath=disable

Resources



Comments