Article sections

    🖥️ Environment

    • Server: HPE DL380 Gen9
    • OS: Fedora Linux 40 Server Edition
    • Tool: ssacli

    🛠️ 1. Installation

    💡 From HPE MCP Repository (Recommended):

    wget https://downloads.linux.hpe.com/SDR/repo/mcp/ssacli-*.rpm
    sudo dnf install ./ssacli-*.rpm

    🔍 2. List Controllers

    ssacli ctrl all show status

    Sample Output:

    Smart Array P840 in Slot 3
    Controller Status: OK
    Cache Status: OK
    Battery/Capacitor Status: OK

    📦 3. Show All Configuration (Arrays, Disks, RAID)

    ssacli ctrl all show config

    Detailed View (including RAID levels and drive layout):

    ssacli ctrl all show config detail

    🔎 4. Show Physical Drives (All)

    ssacli ctrl slot=3 pd all show

    To show detailed info per disk:

    ssacli ctrl slot=3 pd all show detail

    📁 5. Identify Unassigned Drives

    ssacli ctrl slot=3 pd all show

    Look for the section:

    Unassigned
    physicaldrive 2I:2:2 (SATA HDD, 4 TB, OK)

    🧱 6. Create Logical Drives (RAID)

    ➕ RAID 0 with one drive:

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

    ➕ RAID 1 (mirror) with two drives:

    ssacli ctrl slot=3 create type=ld drives=1I:1:4,1I:1:5 raid=1

    ➕ RAID 5 with three or more drives:

    ssacli ctrl slot=3 create type=ld drives=1I:1:1,1I:1:3,1I:1:6 raid=5

    Optional Parameters:

    • size=max
    • stripsize=256
    • ssdcaching=enable

    🧹 7. Delete Logical Drive

    List logical drives:

    ssacli ctrl slot=3 ld all show

    Then delete a specific LD:

    ssacli ctrl slot=3 ld 1 delete

    ⚙️ 8. Modify Logical Drive Settings

    Change read/write cache:

    ssacli ctrl slot=3 ld 1 modify dwc=enable

    📊 9. Monitor Drive Health

    Use show detail to inspect health:

    ssacli ctrl slot=3 pd all show detail

    Look for:

    • Predictive Failure Count
    • Current Temperature
    • Drive status

    🧾 10. Export Configuration for Audit

    ssacli ctrl all show config detail > /root/hpe-raid-config.txt

    🔄 11. Helpful Aliases

    Add to .bashrc or .bash_aliases:

    alias ssa="ssacli ctrl slot=3"

    Then you can do:

    ssa pd all show detail
    ssa ld all show

    🧠 Notes & Tips

    • ssacli talks to the Smart Array firmware directly. No reboot needed.
    • Useful for headless servers (CLI-only).
    • Combine with cron or Zabbix for automation and monitoring.
    • Pair with ssaducli for diagnostics and SSD wear-level stats.
    in HPE DL380 Gen9 ServerLinux Commands