You can use ssacli
(smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers to fully manage your storage (controllers, physical disks, logical drives, etc.).
The ssacli
command replaces older hpssacli
but shares the same syntax.
Launch the HPE CLI .
Go into the HPE CLI on your storage:
$ sudo ssacli // HPE Proliant |
Or you can directly call them by using the following:
$ sudo ssacli <command> // HPE Proliant |
Using the ssacli/hpssacli tool .
All commands have a short name to reduce the length of the total input provided to the ssacli
tool. You can use short or long name.
List of long and short names:
chassisname
=ch
controller
=ctrl
logicaldrive
=ld
physicaldrive
=pd
drivewritecache
=dwc
licensekey
=lk
You can specify disks also as:
- A range of drives (bay 1 to 3):
1I:1:1-1I:1:3
- Drives that are unassigned:
allunassigned
Check commands .
This commands is using to have a global views on the storage health:
$ sudo ssacli ctrl all show status |
$ sudo ssacli ctrl all show config |
Command examples
Show available controllers:
=> ctrl all show |
Show controllers status:
=> ctrl all show status |
Show detailed controllers information:
=> ctrl all show detail |
Show controllers configuration:
=> ctrl all show config |
Rescan for new devices Useful after swapping disks in bays, etc…:
=> rescan |
Show all physical disks (or their status) (controller slot 0):
=> ctrl slot=0 pd all show |
Show all physical disks detailed information (controller slot 0):
=> ctrl slot=0 pd all show detail |
Show logical drives (or their status) (controller slot 0, all or specific logical drive(s)):
=> ctrl slot=0 ld all show |
Show detailed logical drives information (controller slot 0, all or specific logical drive(s)):
=> ctrl slot=0 ld all show detail |
Show array information (controller slot 0, array A):
=> ctrl slot=0 array a show |
Show array status (controller slot 0, all arrays):
=> ctrl slot=0 array all show status |
Create new RAID 0 logical drive (controller slot 0, disk in port 1I:box 1:bay 1):
=> ctrl slot=0 create type=ld drives=1I:1:1 raid=0 |
Create new RAID 1 logical drive (controller slot 0, disks in port 1I:box 1:bay 1 and 2):
=> ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1 |
Create new RAID 5 logical drive (controller slot 0, diks in port 1I:box 1:bay 1 to 4):
=> ctrl slot=0 create type=ld drives=1I:1:1-1I:1:4 raid=5 |
Delete logical drive (controller slot 0, logical drive 1):
=> ctrl slot=0 ld 1 delete |
Add new physical disks to logical drive (controller slot 0, logical drive 1, disks in port 1I:box 1:bay 6 and 7):
=> ctrl slot=0 ld 2 add drives=1I:1:6,1I:1:7 |
Add spare disks (controller slot 0, logical drive 1, array A, disks in port 1I:box 1:bay 6 and 7):
=> ctrl slot=0 array a add spares=1I:1:6,1I:1:7 |
Add global spare disks (controller slot 0, logical drive 1, all arrays, disks in port 1I:box 1:bay 6 and 7):
=> ctrl slot=0 array all add spares=1I:1:6,1I:1:7 |
Turn on/off blink logical drive LED (controller slot 0, logical drive 1):
=> ctrl slot=0 ld 1 modify led=on |
Turn on/off blink physical disk LED (controller slot 0, physical disk port 1I:box 1:bay 1):
=> ctrl slot=0 pd 1I:1:1 modify led=on |
Modify smart array cache read and write ratio (controller slot 0, cacheratio 80% read/20% write):
=> ctrl slot=0 modify cacheratio=80/20 |
Show physical drive write cache status (controller slot 0):
=> ctrl slot=0 modify dwc=? |
Enable/disable physical drive write cache (controller slot 0) Important: Because physical drive write cache is not battery-backed, you could lose data if a power failure occurs during a write process. To minimize this possibility, use a backup power supply:
=> ctrl slot=0 modify dwc=enable |
Show status of smart array write cache when no battery is present (no-battery write cache option, controller slot 0):
=> ctrl slot=0 modify nbwc=? |
Enable/disable smart array write cache when no battery is present (no-battery write cache option, controller slot 0):
=> ctrl slot=0 modify nbwc=enable |
Enable/disable smart array cache for certain Logical Volume (controller slot 0, logical drive 1):
=> ctrl slot=0 ld 1 modify arrayaccelerator=enable |
Enable/disable SSD Smart Path (controller slot 0, array A):
=> ctrl slot=0 array a modify ssdsmartpath=enable |
Show spare activation mode
=> ctrl slot=0 modify spareactivationmode=? |
Set spare activation mode
=> ctrl slot=0 modify spareactivationmode=predictive |
Show rebuild priority:
=> ctrl slot=0 modify rp=? |
Modify rebuild priority:
=> ctrl slot=0 modify rp=low |
Erase Physical Drive (controller slot 0, physical disk port 1I:box 1:bay 1):
=> ctrl slot=0 pd 1I:1:1 modify erase |
Help Command
The help command: .
=> help |
Documentation
https://gist.github.com/mrpeardotnet/a9ce41da99936c0175600f484fa20d03
https://cmdref.net/hardware/proliant/hpssacli.html
https://cmdref.net/hardware/proliant/index.html
HPE-Smart-Storage-Administrator-Manuel.pdf