
Notes to self. And anyone else who might find them useful. Following are some ssacli commands which I use infrequently enough that they fall out of cache. This may repeat information in other blogs, but since I search my posts first when commands slip my mind, I thought I d include them here, too.
hpacucli is the wrong command. Use
ssacli instead.
$ KR='/usr/share/keyrings/hpe.gpg'
$ for fingerprint in \
882F7199B20F94BD7E3E690EFADD8D64B1275EA3 \
57446EFDE098E5C934B69C7DC208ADDE26C2B797 \
476DADAC9E647EE27453F2A3B070680A5CE2D476 ; do \
curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x$ fingerprint " \
gpg --no-default-keyring --keyring "$ KR " --import ; \
done
$ gpg --list-keys --no-default-keyring --keyring "$ KR "
/usr/share/keyrings/hpe.gpg
---------------------------
pub rsa2048 2012-12-04 [SC] [expired: 2022-12-02]
476DADAC9E647EE27453F2A3B070680A5CE2D476
uid [ expired] Hewlett-Packard Company RSA (HP Codesigning Service)
pub rsa2048 2014-11-19 [SC] [expired: 2024-11-16]
882F7199B20F94BD7E3E690EFADD8D64B1275EA3
uid [ expired] Hewlett-Packard Company RSA (HP Codesigning Service) - 1
pub rsa2048 2015-12-10 [SCEA] [expires: 2025-12-07]
57446EFDE098E5C934B69C7DC208ADDE26C2B797
uid [ unknown] Hewlett Packard Enterprise Company RSA-2048-25
$ echo "deb [signed-by=$ KR ] http://downloads.linux.hpe.com/SDR/repo/mcp bookworm/current non-free" \
sudo dd of=/etc/apt/sources.list.d status=none
$ sudo apt-get update
$ sudo apt-get install -y -qq ssacli > /dev/null 2>&1
$ sudo ssacli ctrl all show status
HPE Smart Array P408i-p SR Gen10 in Slot 3
Controller Status: OK
Cache Status: OK
Battery/Capacitor Status: OK
$ sudo ssacli ctrl all show detail
HPE Smart Array P408i-p SR Gen10 in Slot 3
Bus Interface: PCI
Slot: 3
Serial Number: PFJHD0ARCCR1QM
RAID 6 Status: Enabled
Controller Status: OK
Hardware Revision: B
Firmware Version: 2.65
Firmware Supports Online Firmware Activation: True
Driver Supports Online Firmware Activation: True
Rebuild Priority: High
Expand Priority: Medium
Surface Scan Delay: 3 secs
Surface Scan Mode: Idle
Parallel Surface Scan Supported: Yes
Current Parallel Surface Scan Count: 1
Max Parallel Surface Scan Count: 16
Queue Depth: Automatic
Monitor and Performance Delay: 60 min
Elevator Sort: Enabled
Degraded Performance Optimization: Disabled
Inconsistency Repair Policy: Disabled
Write Cache Bypass Threshold Size: 1040 KiB
Wait for Cache Room: Disabled
Surface Analysis Inconsistency Notification: Disabled
Post Prompt Timeout: 15 secs
Cache Board Present: True
Cache Status: OK
Cache Ratio: 10% Read / 90% Write
Configured Drive Write Cache Policy: Disable
Unconfigured Drive Write Cache Policy: Default
Total Cache Size: 2.0
Total Cache Memory Available: 1.8
Battery Backed Cache Size: 1.8
No-Battery Write Cache: Disabled
SSD Caching RAID5 WriteBack Enabled: True
SSD Caching Version: 2
Cache Backup Power Source: Batteries
Battery/Capacitor Count: 1
Battery/Capacitor Status: OK
SATA NCQ Supported: True
Spare Activation Mode: Activate on physical drive failure (default)
Controller Temperature (C): 53
Cache Module Temperature (C): 43
Capacitor Temperature (C): 40
Number of Ports: 2 Internal only
Encryption: Not Set
Express Local Encryption: False
Driver Name: smartpqi
Driver Version: Linux 2.1.18-045
PCI Address (Domain:Bus:Device.Function): 0000:11:00.0
Negotiated PCIe Data Rate: PCIe 3.0 x8 (7880 MB/s)
Controller Mode: Mixed
Port Max Phy Rate Limiting Supported: False
Latency Scheduler Setting: Disabled
Current Power Mode: MaxPerformance
Survival Mode: Enabled
Host Serial Number: 2M20040D1Q
Sanitize Erase Supported: True
Sanitize Lock: None
Sensor ID: 0
Location: Capacitor
Current Value (C): 40
Max Value Since Power On: 42
Sensor ID: 1
Location: ASIC
Current Value (C): 53
Max Value Since Power On: 55
Sensor ID: 2
Location: Unknown
Current Value (C): 43
Max Value Since Power On: 45
Sensor ID: 3
Location: Cache
Current Value (C): 43
Max Value Since Power On: 44
Primary Boot Volume: None
Secondary Boot Volume: None
$ sudo ssacli ctrl all show config
HPE Smart Array P408i-p SR Gen10 in Slot 3 (sn: PFJHD0ARCCR1QM)
Internal Drive Cage at Port 1I, Box 2, OK
Internal Drive Cage at Port 2I, Box 2, OK
Port Name: 1I (Mixed)
Port Name: 2I (Mixed)
Array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (1.64 TB, RAID 6, OK)
physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS HDD, 300 GB, OK)
physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS HDD, 1.2 TB, OK)
physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS HDD, 300 GB, OK)
physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS HDD, 1.2 TB, OK)
physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS HDD, 300 GB, OK)
physicaldrive 2I:2:6 (port 2I:box 2:bay 6, SAS HDD, 300 GB, OK)
physicaldrive 2I:2:7 (port 2I:box 2:bay 7, SAS HDD, 1.2 TB, OK)
physicaldrive 2I:2:8 (port 2I:box 2:bay 8, SAS HDD, 1.2 TB, OK)
SEP (Vendor ID HPE, Model Smart Adapter) 379 (WWID: 51402EC013705E88, Port: Unknown)
$ sudo ssacli ctrl slot=3 pd 2I:2:7 show detail
HPE Smart Array P408i-p SR Gen10 in Slot 3
Array A
physicaldrive 2I:2:7
Port: 2I
Box: 2
Bay: 7
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 1.2 TB
Drive exposed to OS: False
Logical/Physical Block Size: 512/512
Rotational Speed: 10000
Firmware Revision: U850
Serial Number: KZGN1BDE
WWID: 5000CCA01D247239
Model: HGST HUC101212CSS600
Current Temperature (C): 46
Maximum Temperature (C): 51
PHY Count: 2
PHY Transfer Rate: 6.0Gbps, Unknown
PHY Physical Link Rate: 6.0Gbps, Unknown
PHY Maximum Link Rate: 6.0Gbps, 6.0Gbps
Drive Authentication Status: OK
Carrier Application Version: 11
Carrier Bootloader Version: 6
Sanitize Erase Supported: False
Shingled Magnetic Recording Support: None
Drive Unique ID: 5000CCA01D247238
2024-12-09 update
I was experiencing a disk failure or predictive failure when I walked into my office this afternoon. I checked this blog post and found the command I used to check the status of the sas array.
cjac@server0:~$ sudo ssacli ctrl all show config
HPE Smart Array P408i-p SR Gen10 in Slot 3 (sn: PFJHD0ARCCR1QM)
Internal Drive Cage at Port 1I, Box 2, OK
Internal Drive Cage at Port 2I, Box 2, OK
Port Name: 1I (Mixed)
Port Name: 2I (Mixed)
Array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (1.64 TB, RAID 6, OK)
physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS HDD, 300 GB, OK)
physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS HDD, 1.2 TB, Predictive Failure)
physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS HDD, 300 GB, OK)
physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS HDD, 1.2 TB, OK)
physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS HDD, 300 GB, OK)
physicaldrive 2I:2:6 (port 2I:box 2:bay 6, SAS HDD, 300 GB, OK)
physicaldrive 2I:2:7 (port 2I:box 2:bay 7, SAS HDD, 1.2 TB, OK)
physicaldrive 2I:2:8 (port 2I:box 2:bay 8, SAS HDD, 300 GB, OK)
SEP (Vendor ID HPE, Model Smart Adapter) 379 (WWID: 51402EC013705E88, Port: Unknown)
At this point I engaged the
under-study to have the flashing disk replaced
cjac@server0:~$ sudo ssacli ctrl all show config
[sudo] password for cjac:
HPE Smart Array P408i-p SR Gen10 in Slot 3 (sn: PFJHD0ARCCR1QM)
Internal Drive Cage at Port 1I, Box 2, OK
Internal Drive Cage at Port 2I, Box 2, OK
Port Name: 1I (Mixed)
Port Name: 2I (Mixed)
Array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (1.64 TB, RAID 6, Recovering, 56.43% complete)
physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS HDD, 300 GB, OK)
physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS HDD, 300 GB, Rebuilding)
physicaldrive 1I:2:3 (port 1I:box 2:bay 3, SAS HDD, 300 GB, OK)
physicaldrive 1I:2:4 (port 1I:box 2:bay 4, SAS HDD, 1.2 TB, OK)
physicaldrive 2I:2:5 (port 2I:box 2:bay 5, SAS HDD, 300 GB, OK)
physicaldrive 2I:2:6 (port 2I:box 2:bay 6, SAS HDD, 300 GB, OK)
physicaldrive 2I:2:7 (port 2I:box 2:bay 7, SAS HDD, 1.2 TB, OK)
physicaldrive 2I:2:8 (port 2I:box 2:bay 8, SAS HDD, 300 GB, OK)
SEP (Vendor ID HPE, Model Smart Adapter) 379 (WWID: 51402EC013705E88, Port: Unknown)
In the next and future output, I will elide duplicate lines
cjac@server0:~$ date ; sudo ssacli ctrl all show config
Mon Dec 9 07:36:44 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 66.85% complete)...
Mon Dec 9 07:39:25 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 68.97% complete) ...
cjac@server0:~$ date ; sudo ssacli ctrl all show config grep Recovering
Mon Dec 9 07:43:05 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 71.85% complete)
Mon Dec 9 07:43:57 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 72.55% complete)
cjac@server0:~$ sleep 5m ; date ; sudo ssacli ctrl all show config grep Recovering
Mon Dec 9 07:49:43 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, Recovering, 77.00% complete)
cjac@server0:~$ date ; sudo ssacli ctrl all show config grep -e 1I:2:2 -e logicaldrive
Mon Dec 9 11:36:14 PM PST 2024 ... logicaldrive 1 (1.64 TB, RAID 6, OK)
physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS HDD, 300 GB, OK)