NavigationContentFooter
Jump toSuggest an edit
Was this page helpful?

Configuring the HP Smart Array (P222/P410/P420)Controller

Reviewed on 25 February 2025Published on 16 July 2021

Before you startLink to this anchor

To complete the actions presented below, you must have:

  • A Dedibox account logged into the console
  • A Dedibox dedicated server with an HP Smart Array P222, P410 or P420 RAID controller

Checking the RAID statusLink to this anchor

  1. Log into your server using SSH.

  2. Run the following command to display the RAID status:

    ssacli ctrl all show config

    This command will show you the current configuration of the RAID controller, including the logical and physical drives.

    Example output:

    Smart Array P410 in Slot 1 (sn: PACCRID111003N3)
    array A (SATA, Unused Space: 0 MB)
    logicaldrive 1 (1.8 TB, RAID 1, OK)
    physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA, 2 TB, OK)
    physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA, 2 TB, OK)

Checking the SMART values of the disksLink to this anchor

  1. Run the following commands to display the SMART values of the disks:
    smartctl -a -d cciss,0 /dev/sg0
    smartctl -a -d cciss,1 /dev/sg0
    Replace /dev/sg0 with the appropriate device name for your system. You can find the correct device name by running ls /dev/sg*.

Checking the battery state of an HP Smart Array RAID controller with cache and batteryLink to this anchor

  1. Run the following command to check the battery state of an HP Smart Array P410 RAID controller:
    ssacli ctrl all show config detail
    Look for the Battery/Capacitor Status line in the output to determine the battery state. Example output:
    Total Cache Size: 256 MB
    Cache Backup Power Source: Batteries
    Battery/Capacitor Count: 1
    Battery/Capacitor Status: OK

Viewing controller informationLink to this anchor

Show controller infoLink to this anchor

Run the following command to show summarized information about the controller:

ssacli ctrl all show config

Example output:

Smart Array P420 in Slot 2 (sn: PDKRH0ARH4N3GJ)
Internal Drive Cage at Port 1I, Box 1, OK
Port Name: 1I
Port Name: 2I
Array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (2.73 TB, RAID 1, OK)
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 3 TB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 3 TB, OK)
Array B (Solid State SATA, Unused Space: 3 MB)
logicaldrive 2 (111.76 GB, RAID 1, OK)
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SATA SSD, 120 GB, OK)
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SATA SSD, 120 GB, OK)
SEP (Vendor ID PMCSIERA, Model SRCv8x6G) 380 (WWID: 5001438026863C7F)

Show controller detailsLink to this anchor

Run the following command to show detailed information about the controller:

ssacli ctrl all show config detail

Example output:

Smart Array P410 in Slot 1
Bus Interface: PCI
Slot: 1
Serial Number: PACCRID1229023H
Cache Serial Number: PACCQID12470DCY
Controller Status: OK
Hardware Revision: C
Firmware Version: 6.64-0
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 3 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: 15 secs
Cache Board Present: True
Cache Status: OK
Cache Ratio: 25% Read / 75% Write
Drive Write Cache: Enabled
Total Cache Size: 0.2
Total Cache Memory Available: 0.1
No-Battery Write Cache: Disabled
Cache Backup Power Source: Batteries
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:04:00.0
Port Max Phy Rate Limiting Supported: False
Host Serial Number: CZ33067W8E
Sanitize Erase Supported: False
Primary Boot Volume: None
Secondary Boot Volume: None

Viewing physical drivesLink to this anchor

Show physical drivesLink to this anchor

To view the status of all physical drives, you can use the following command:

slot=$(ssacli ctrl all show|grep Slot|awk -F 'Slot' '{print $2}'|awk '{print $1}')
hpssacli ctrl slot="$slot" pd all show status

Example output:

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 3 TB): OK
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, 3 TB): OK
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, 120 GB): OK
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, 120 GB): OK

Show physical drives detailsLink to this anchor

To view detailed information about all physical drives, use the following command:

slot=$(ssacli ctrl all show|grep Slot|awk -F 'Slot' '{print $2}'|awk '{print $1}')
hpssacli ctrl slot="$slot" pd all show detail

Example output:

hpssacli ctrl slot="$slot" pd all show detail
Smart Array P410 in Slot 1
Array A
physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SATA
Size: 2 TB
Drive exposed to OS: False
Logical/Physical Block Size: 512/4096
Rotational Speed: 7200
Firmware Revision: FP4B
Serial Number: 61H7K9SQFJSA
WWID: 3000000000000000
Model: ATA TOSHIBA MG04ACA2
SATA NCQ Capable: True
SATA NCQ Enabled: True
Current Temperature (C): 26
Maximum Temperature (C): 40
PHY Count: 1
PHY Transfer Rate: 3.0Gbps
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: SATA
Size: 2 TB
Drive exposed to OS: False
Logical/Physical Block Size: 512/4096
Rotational Speed: 7200
Firmware Revision: FP3B
Serial Number: 77VFK22RFJSA
WWID: 3000000000000001
Model: ATA TOSHIBA MG04ACA2
SATA NCQ Capable: True
SATA NCQ Enabled: True
Current Temperature (C): 26
Maximum Temperature (C): 38
PHY Count: 1
PHY Transfer Rate: 3.0Gbps
Sanitize Erase Supported: False
Shingled Magnetic Recording Support: None

Viewing logical volumesLink to this anchor

Show logical volume(s)Link to this anchor

slot=$(ssacli ctrl all show |grep Slot | awk -F 'Slot' '{print $2}' | awk '{print $1}')
ssacli ctrl slot=$slot ld all show

Show logical volume(s) detailsLink to this anchor

slot=$(ssacli ctrl all show |grep Slot | awk -F 'Slot' '{print $2}' | awk '{print $1}')
ssacli ctrl slot=$slot ld all show detail

Example output:

Smart Array P410 in Slot 1
Array A
Logical Drive: 1
Size: 1.82 TB
Fault Tolerance: 1
Heads: 255
Sectors Per Track: 63
Cylinders: 65535
Strip Size: 64 KB
Full Stripe Size: 64 KB
Status: OK
Unrecoverable Media Errors: None
Caching: Enabled
Unique Identifier: 600508B1001CF1E14A9E048C72FB2438
Disk Name: /dev/sda
Mount Points: None
Logical Drive Label: 01C4F2D4PACCRID1229023HFBE4
Mirror Group 1:
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA HDD, 2 TB, OK)
Mirror Group 2:
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA HDD, 2 TB, OK)
Drive Type: Data
LD Acceleration Method: Controller Cache

Viewing LV, controller, cache, and battery statusLink to this anchor

hpssacli ctrl all show detail|grep -E 'Status|Cache Size'

Deleting a logical volumeLink to this anchor

To delete logical drive 1 in controller 1:

ssacli ctrl slot=1 ld 1 delete

Creating a logical volumeLink to this anchor

To add a RAID0 logical drive in controller 1, including disks 1 and 2:

ssacli ctrl slot=1 create type=ld drives=1I:1:1,1I:1:2 raid=0

Viewing rebuild priorityLink to this anchor

ssacli ctrl slot=$slot modify rp=?
See also
How to configure a DELL PERC H310/H700/H710/H730-P/LSI9361 RAID controllerHow to configure the DELL PERC H200 RAID controller from the KVM
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2025 – Scaleway