---
title: Configuring the HP Smart Array (P222/P410/P420) RAID Controller
description: This page explains how to configure the HP Smart Array (P222/P410/P420) RAID controller.
tags: dedibox hp smart array p420 p410 p222 raid controller
dates:
  validation: 2025-09-03
  posted: 2021-07-16
---
import Requirements from '@macros/iam/requirements.mdx'


<Requirements />

- A Dedibox account logged into the [console](https://console.online.net)
- A [Dedibox dedicated server](https://www.scaleway.com/en/dedibox/) with an HP Smart Array P222, P410 or P420 RAID controller

## Checking the RAID status
1. Log into your server using SSH.
2. Run the following command to display the RAID status:
    ```bash
    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 disks

Run the following commands to display the SMART values of the disks:
    ```bash
    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 battery

Run the following command to check the battery state of an HP Smart Array P410 RAID controller:
    ```bash
    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 information

### Show controller info

Run the following command to show summarized information about the controller:
  ```bash
  ssacli ctrl all show config
  ```
  Example output:
  ```plaintext
  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 details

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

  ```bash
  ssacli ctrl all show config detail
  ```
  Example output:
  ```plaintext
  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 drives
### Show physical drives
To view the status of all physical drives, you can use the following command:
  ```bash
  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 details
To view detailed information about all physical drives, use the following command:
```bash
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:
```plaintext
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 volumes

### Show logical volume(s)

```bash
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) details

```bash
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:
```plaintext
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 status
```bash
hpssacli ctrl all show detail|grep -E 'Status|Cache Size'
```

## Deleting a logical volume
To delete logical drive 1 in controller 1:
```bash
ssacli ctrl slot=1 ld 1 delete
```

## Creating a logical volume
To add a RAID0 logical drive in controller 1, including disks 1 and 2:
```bash
ssacli ctrl slot=1 create type=ld drives=1I:1:1,1I:1:2 raid=0
```

## Viewing rebuild priority

```bash
ssacli ctrl slot=$slot modify rp=?
```
