raid: add storcli2 support for Tri-Mode controllers (SAS3808-iMR/9500 series)

storcli64 enumerates these controllers but reports zero drives; storcli2
is the tool Broadcom ships for Tri-Mode/MegaRAID8 hardware and uses a
compatible JSON schema for drive listing. Wires storcli2 into both the
collector (structured drive data) and the webui RAID Management page
(dedup so a controller isn't double-listed if storcli64 already sees it
with zero drives), plus techdump raw collection and the ISO vendor-tool
build step.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Mikhail Chusavitin
2026-07-07 15:25:06 +03:00
co-authored by Claude Sonnet 5
parent a3377083aa
commit b7f015c713
7 changed files with 307 additions and 2 deletions
+7
View File
@@ -30,6 +30,13 @@ var techDumpFixedCommands = []struct {
{Name: "ipmitool", Args: []string{"sel", "list"}, File: "ipmitool-sel.txt"},
{Name: "ipmitool", Args: []string{"sel", "time", "get"}, File: "ipmitool-sel-time.txt"},
{Name: "nvme", Args: []string{"list", "-o", "json"}, File: "nvme-list.json"},
{Name: "storcli64", Args: []string{"/call/eall/sall", "show", "all", "J"}, File: "storcli64-drives.json"},
// storcli2 (Tri-Mode controllers, e.g. SAS3808-iMR/9500 series) needs an
// explicit /cN target for drive listing, not a /call wildcard — this
// system-level dump alone (no per-controller loop) is still useful raw
// diagnostics; structured per-drive data is collected separately by
// collectStorcli2Drives in the collector package.
{Name: "storcli2", Args: []string{"show", "all", "J"}, File: "storcli2-show-all.json"},
}
var techDumpNvidiaCommands = []struct {