Contents
- 1 Installation
- 2 Usage
- 2.1 Rescan for New Devices
- 2.2 Show Configuration
- 2.3 Show Controller Status
- 2.4 Show Detailed Controller Information
- 2.5 Show Physical Disk Status
- 2.6 Show Detailed Physical Disk Information
- 2.7 Show Logical Drive Status
- 2.8 Show Detailed Logical Drive Status
- 2.9 Create New RAID-0 Logical Drive
- 2.10 Create New RAID-1 Logical Drive
- 2.11 Create New RAID-5 Logical Drive
- 2.12 Delete Logical Drive
- 2.13 Add New Physical Drive to Logical Volume
- 2.14 Add Spare Disks
- 2.15 Enable Drive Write Cache
- 2.16 Disable Drive Write Cache
- 2.17 Delete Physical Drive
- 2.18 Turn On Blinking Physical Disk LED
- 2.19 Turn Off Blinking Physical Disk LED
- 2.20 Modify Smart Array Cache Read/Write Radio
- 2.21 Enable Smart Array Write Cache
- 2.22 Disable Smart Array Cache for Certain Logical Volume
- 2.23 Enable Smart Array Cache for Certain Logical Volume
- 2.24 Enable SSD Smart Path
- 2.25 Disable SSD Smart Path
HP provides a command line utility called HPE Smart Storage Administrator (HPE SSACLI) used to configure, manage and monitor their RAID storage controllers. This application has changed its name over the years but is now called ssacli.
Previous names were:
hpacucli –> hpssacli –> ssacli
Installation
Fortunately HP provide an installation script which can be found here. To install:
root@hp:~# bash <(curl -s http://downloads.linux.hpe.com/SDR/add_repo.sh) mcp # apt-get update
You’re likely to get an error message such as the following:
Reading package lists... Done W: GPG error: http://downloads.linux.hpe.com/SDR/repo/mcp xenial/current Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C208ADDE26C2B797 W: The repository 'http://downloads.linux.hpe.com/SDR/repo/mcp xenial/current Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.
If so, issue the below command to add the public key:
root@hp:~# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C208ADDE26C2B797
Now issue apt-get update
again.
root@hp:~# apt-get update
Now you should be able to install ssacli
.
# apt-get install ssacli
You can confirm this is working with:
root@hp:~# ssacli version SSACLI Version: 3.30.13.0 2018-04-12 SOULAPI Version: 3.30.13.0 2018-04-12
Usage
Rescan for New Devices
root@lxx02:~# ssacli rescan
Show Configuration
root@lxx02:~# ssacli ctrl all show config Smart Array P410i in Slot 0 (Embedded) (sn: 500143801630E890) Internal Drive Cage at Port 1I, Box 1, OK Port Name: 1I Port Name: 2I Array A (SAS, Warning: Unrecoverable Media Errors Detected on Drives during previous Rebuild or Background Surface Analysis (ARM) scan. Errors will be fixed automatically when the sector(s) are overwritten. Backup and Restore are recommended. logicaldrive 1 (558.88 GB, RAID 1, Interim Recovery Mode) physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 0 GB, Failed) physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 600 GB, OK) SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 500143801630E89F)
Show Controller Status
root@lxx02:~# ssacli ctrl all show status Smart Array P410i in Slot 0 (Embedded) Controller Status: OK Cache Status: OK Battery/Capacitor Status: OK
If you have multiple controllers, replace all
with the slot
you are interested in viewing.
root@lxx02:~# ssacli ctrl slot=1 show status
Show Detailed Controller Information
root@lxx02:~# ssacli ctrl all show detail Smart Array P410i in Slot 0 (Embedded) Warning: Unrecoverable Media Errors Detected on Drives during previous Rebuild or Background Surface Analysis (ARM) scan. Errors will be fixed automatically when the sector(s) are overwritten. Backup and Restore are recommended. The following logical drives are affected: 1 Bus Interface: PCI Slot: 0 Serial Number: 500143801630E890 Cache Serial Number: PBCDH0CRH0N0J3 Controller Status: OK Hardware Revision: C Firmware Version: 3.66-0 Rebuild Priority: Medium Expand Priority: Medium Surface Scan Delay: 15 secs Surface Scan Mode: Idle Parallel Surface Scan Supported: No Queue Depth: Automatic Monitor and Performance Delay: 60 min Elevator Sort: Enabled Degraded Performance Optimization: Disabled Wait for Cache Room: Disabled Surface Analysis Inconsistency Notification: Disabled Post Prompt Timeout: 0 secs Cache Board Present: True Cache Status: OK Cache Ratio: 25% Read / 75% Write Drive Write Cache: Disabled Total Cache Size: 0.5 Total Cache Memory Available: 0.4 No-Battery Write Cache: Disabled Cache Backup Power Source: Capacitors Battery/Capacitor Count: 1 Battery/Capacitor Status: OK SATA NCQ Supported: True Number of Ports: 2 Internal only Encryption: Not Set Driver Name: hpsa Driver Version: 3.4.20 Driver Supports SSD Smart Path: True PCI Address (Domain:Bus:Device.Function): 0000:05:00.0 Port Max Phy Rate Limiting Supported: False Host Serial Number: USE135N6R5 Sanitize Erase Supported: False Primary Boot Volume: None Secondary Boot Volume: None
If you have multiple controllers, replace all
with the slot
you are interested in viewing.
root@lxx02:~# ssacli ctrl slot=1 show detail
Show Physical Disk Status
root@lxx02:~# ssacli ctrl slot=0 pd all show status physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 600 GB): OK physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 600 GB): OK
0
Show Detailed Physical Disk Information
root@lxx02:~# ssacli ctrl slot=0 pd all show detail Smart Array P410i in Slot 0 (Embedded) Array A physicaldrive 1I:1:1 Port: 1I Box: 1 Bay: 1 Status: OK Drive Type: Data Drive Interface Type: SAS Size: 600 GB Drive exposed to OS: False Logical/Physical Block Size: 512/512 Rotational Speed: 10000 Firmware Revision: HPD4 Serial Number: EA01PC118KNN1204 WWID: 50000393C84ADE46 Model: HP EG0600FBDSR Current Temperature (C): 36 Maximum Temperature (C): 55 PHY Count: 2 PHY Transfer Rate: 6.0Gbps, Unknown Sanitize Erase Supported: False Shingled Magnetic Recording Support: None physicaldrive 1I:1:2 Port: 1I Box: 1 Bay: 2 Status: OK Drive Type: Data Drive Interface Type: SAS Size: 600 GB Drive exposed to OS: False Logical/Physical Block Size: 512/512 Rotational Speed: 10000 Firmware Revision: N2EG Serial Number: KWJ4PJUS WWID: 5000CCA056794571 Model: IBM-ESXSHUC109060CSS61E Current Temperature (C): 38 PHY Count: 2 PHY Transfer Rate: 6.0Gbps, Unknown Sanitize Erase Supported: False Shingled Magnetic Recording Support: None
Show Logical Drive Status
root@lxx02:~# ssacli ctrl slot=0 ld all show status logicaldrive 1 (558.88 GB, RAID 1): OK
Show Detailed Logical Drive Status
root@lxx02:~# ssacli ctrl slot=0 ld all show detail Smart Array P410i in Slot 0 (Embedded) Array A Logical Drive: 1 Size: 558.88 GB Fault Tolerance: 1 Heads: 255 Sectors Per Track: 32 Cylinders: 65535 Strip Size: 256 KB Full Stripe Size: 256 KB Status: OK Unrecoverable Media Errors: None Caching: Enabled Unique Identifier: 600508B1001C3289B48DE18BC32B6963 Disk Name: /dev/sda Mount Points: / 557.9 GB Partition Number 5, /boot 953 MB Partition Number 1 OS Status: LOCKED Logical Drive Label: A00F78BA500143801630E8900A24 Mirror Group 1: physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 600 GB, OK) Mirror Group 2: physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 600 GB, OK) Drive Type: Data LD Acceleration Method: Controller Cache
Create New RAID-0 Logical Drive
root@lxx02:~# ssacli ctrl slot=0 create type=ld drives=1I:1:2 raid=0
Create New RAID-1 Logical Drive
root@lxx02:~# ssacli ctrl slot=0 create type=ld drives=1I:1:1,1I:1:2 raid=1
Create New RAID-5 Logical Drive
root@lxx02:~# ssacli 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
root@lxx02:~# ssacli ctrl slot=0 ld 2 delete
Add New Physical Drive to Logical Volume
root@lxx02:~# ssacli ctrl slot=0 ld 2 add drives=2I:1:6,2I:1:7
Add Spare Disks
root@lxx02:~# ssacli ctrl slot=0 array all add spares=2I:1:6,2I:1:7
Enable Drive Write Cache
root@lxx02:~# ssacli ctrl slot=0 modify dwc=enable
Disable Drive Write Cache
root@lxx02:~# ssacli ctrl slot=0 modify dwc=disable
Delete Physical Drive
root@lxx02:~# ssacli ctrl slot=0 pd 2I:1:6 modify erase
Turn On Blinking Physical Disk LED
root@lxx02:~# ssacli ctrl slot=0 ld 2 modify led=on
Turn Off Blinking Physical Disk LED
root@lxx02:~# ssacli ctrl slot=0 ld 2 modify led=off
Modify Smart Array Cache Read/Write Radio
The cache ratio is determined by read ratio divided by write ratio.
root@lxx02:~# ssacli ctrl slot=0 modify cacheratio=100/0
Enable Smart Array Write Cache
root@lxx02:~# ssacli ctrl slot=0 modify nbwc=enable
Disable Smart Array Cache for Certain Logical Volume
root@lxx02:~# ssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=disable
Enable Smart Array Cache for Certain Logical Volume
root@lxx02:~# ssacli ctrl slot=0 logicaldrive 1 modify arrayaccelerator=enable
Enable SSD Smart Path
root@lxx02:~# ssacli ctrl slot=0 array a modify ssdsmartpath=enable
Disable SSD Smart Path
root@lxx02:~# ssacli ctrl slot=0 array a modify ssdsmartpath=disable
Resources
wiki.phoenixlzx.com; HP Enterprise ssacli command examples
www.thegeekstuff.com; 17 hpacucli Command Examples for Linux on HP Servers
Be the first to comment