Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: show RAID controller member disks in Proxmox storage
rcourtman6e5571997e8b
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex c487724cbb..476cd359d2 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1657,6 +1657,10 @@ Agent`), with the plain-language source phrase available through accessibledefault row may carry only a quiet icon/count cue beside the guest name toshow nested runtime presence; names, metrics, state, and actions stay in thedrawer or Docker lens.+ Shared platform-scoped storage presenters follow the same membership rule.+ A physical disk may be sourced only from the agent while canonically owned+ by a Proxmox node, so hidden provider-family filters must consult+ `platformScopes` before falling back to `sources` or `platformType`.Drawer-to-runtime navigation is still part of the shared platform-tableaffordance contract: when the LXC drawer exposes an `Open Docker` action fornested containers, that action must use the Docker host facet route state so@@ -6355,8 +6359,11 @@ drawer grouping and fallback proof belongs incanonical shared Storage surface for its Storage tab and supplies the hidden`proxmox-all` filter. Shared storage source matching owns that internalumbrella and admits normalized PVE, PBS, and other Proxmox-family source keys;-visible source-picker filters remain exact. The page must not create a-PBS-only disk table or duplicate storage state in the Proxmox feature.+visible source-picker filters remain exact. Agent-only physical-disk telemetry+whose canonical parent is a Proxmox node is admitted through its explicit+platform membership rather than being hidden because its fact source remains+`agent`. The page must not create a PBS-only disk table or duplicate storage+state in the Proxmox feature.The rendered route contract in`frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx`diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 35e900941b..deb3124ac4 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -95,14 +95,17 @@ it: that connection is invisible to the mapping rather than absent from thesource, and resolution stays inconclusive for the PBS instance until everycandidate connection has been observed.-Physical-disk to node association is evidence-directional. A disk reported by a-host agent carries no Proxmox scope, so its instance is empty and the matching-node name is the only evidence available; that match must stand. A disk that-does carry a Proxmox instance belongs only to a node in the same instance and-must not attach to a node outside it, including a node with no instance at all.-Requiring an instance on both sides drops every agent-reported disk off the-Proxmox node it physically lives on, emptying the node filter, breaking per-node-grouping, and stranding metric target resolution.+Physical-disk to node association is evidence-directional. An unlinked disk+reported by a host agent carries no Proxmox scope, so its instance is empty and+the matching node name is the only evidence available; that fallback match must+stand. An agent disk whose canonical parent is a merged Proxmox node inherits+that parent's explicit node/instance ownership, including controller members+that have no PVE inventory row. Once a disk carries a Proxmox instance it+belongs only to a node in the same instance and must not attach to a node+outside it, including a node with no instance at all. Requiring an instance on+both sides for unlinked agent disks, or discarding inherited instance evidence+for linked disks, empties node filters, breaks per-node grouping, and strands+metric target resolution.The Physical Disks surface reads wearout through the same evidence boundary theserver applies. `-1` is unreported and renders as a muted placeholder, a `0`@@ -5303,6 +5306,11 @@ exact, so selecting PVE does not admit PBS and selecting PBS does not admitPVE. Agent-reported SMART disks correlated to a unique PBS host may carry PBSplatform membership for this filter, but their health and device facts remainagent telemetry rather than PBS API inventory.+Agent-reported SMART disks parented to a merged PVE node likewise carry PVE+platform membership for this filter even when the PVE disk API exposes only a+logical RAID volume. Controller-member identity, health, temperature, and+collection status remain agent telemetry, and the storage source resolver must+read canonical `platformScopes` before falling back to raw data sources.`frontend-modern/src/features/storageBackups/__tests__/storageModelCore.test.ts`,`frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts`,diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex dde98dc0e1..bf5aab4a5f 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -97,6 +97,11 @@ Physical-disk resources own cross-source disk identity. When Proxmox inventoryand host-agent SMART telemetry describe the same device, the merged resourcemust retain Proxmox node/instance source payloads while carrying SMARTtemperature, capacity, health, and identity enrichment.+Agent-only physical disks under a canonically merged Proxmox node inherit a+minimal owning-node Proxmox facet and `proxmox-pve` platform membership even+when the PVE disk API has no corresponding controller-member row. Their+`Sources` and SMART facts remain agent-authored; platform ownership must not be+misrepresented as Proxmox disk telemetry.Physical-disk matching is parent-scoped and topology-aware: persisted sourcemappings survive registry rebuilds, controller members sharing a block pathremain distinct, placeholder serials/WWNs never become canonical or metrics@@ -4056,6 +4061,11 @@ refreshes and Proxmox-scoped views can drop the disk even though inventorystill exists. `HostSMARTMeta` must carry `sizeBytes` through adapter, clone,read-state, and API transport so disk capacity remains available afterregistry rebuilds.+When no Proxmox physical-disk row exists, as with member disks behind a PERC or+other multiplexing controller, `ingestHostSMARTDisks` projects the merged+parent node's minimal Proxmox ownership facet onto the agent disk. That makes+the member discoverable in the owning Proxmox workspace without adding a+false Proxmox data source or changing SMART fact precedence.That round trip must also retain provider vendor, controller/target topology,and explicit zero-valued SMART counters. Registry matching may use usableserial or WWN only inside a compatible physical-disk parent scope; when thosediff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 25b54b7ec1..a1c95cdd72 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,30 +1,16 @@{"version": 1,- "base_sha": "51b7357285b0ac7020212aff0a67b8cd5974757c",- "verified_at": "2026-08-25T11:20:27Z",+ "base_sha": "d5440ff43efd4964cabdcf3ae0beea0306cb94d7",+ "verified_at": "2026-08-25T14:14:16Z","result": "passed","changed_paths": [- "frontend-modern/src/hooks/useUnifiedResources.ts",- "frontend-modern/src/stores/websocket-global.ts",- "frontend-modern/src/stores/websocket.ts",- "frontend-modern/src/types/api.ts",- "frontend-modern/src/types/resource.ts",- "frontend-modern/src/utils/resourceIdentity.ts"+ "frontend-modern/src/features/storageBackups/diskPresentation.ts"],"content_sha256": {- "frontend-modern/src/hooks/useUnifiedResources.ts": "5b63ab55ce28b72216561acf7b818c55179e70acfc2a35155cd6391490a13f54",- "frontend-modern/src/stores/websocket-global.ts": "59d2ddc55882f98c72b5c893ce16c250ba5c0eeb20e31419e23f651ab72c00b5",- "frontend-modern/src/stores/websocket.ts": "56c7fa58dc5f79855b6ab4a9c9c36c85f00a554a76ea981b593e175a4547dba1",- "frontend-modern/src/types/api.ts": "88a40975498e284b3c704b384a6a2ab52bd1fd19e6fd1de522953d570f2afa25",- "frontend-modern/src/types/resource.ts": "9b73aa4df0b734f37f19f1b607872442ea988f5212d6bdb2a59be4b613d83249",- "frontend-modern/src/utils/resourceIdentity.ts": "f0a0203a2e5de11afcffa1ae70382c9e55249e9a5651b0fb9611b3f0f196fb51"+ "frontend-modern/src/features/storageBackups/diskPresentation.ts": "c84bcda4c2f41c581a4985abbc0bb60df31d2196f5722a81dafcd39bda8f02a8"},"routes": [- "/login",- "/proxmox/overview",- "/proxmox/storage",- "/docker",- "/alerts"+ "/proxmox/storage"],"viewports": [{@@ -37,20 +23,16 @@}],"states": [- "authenticated session against a dev build of this exact diff serving the 50-node mock estate with the slimmed broadcast payload (capabilityCatalog with 7 entries, zero inline capabilities, 806 default-posture policies and aiSafeSummary omitted, aliases deduped against supersededIds)",- "Proxmox overview table populated at both viewports with live 2s websocket ticks applying",- "Proxmox storage sub-tab populated (sensitive-posture resources keep inline policy)",- "Docker workloads table with an expanded container row and its lifecycle actions group",- "container lifecycle menu open: Start disabled with running reason, Stop and Restart enabled via catalog-expanded capabilities",- "Alerts utility surface rendering the active-alert list",- "console error stream captured on both builds: only the pre-existing CSP inline-style warnings, no new errors"+ "Physical Disks default inventory",+ "provider-scoped search results",+ "expanded physical-disk detail",+ "restored default inventory after clearing search"],"interactions": [- "logged in and waited for landing hydration",- "switched platform tabs to Docker and sub-tabs to Storage and back to Overview",- "expanded a docker container row and opened its container-actions menu, reading each action's enabled/disabled state and aria-label",- "navigated to Alerts and back",- "fetched /api/state on the slimmed build and asserted capabilityCatalog presence, per-resource capabilitiesRef, omitted default policies, and the 4.75MB to 4.09MB size drop",- "ran the identical probe script against the unmodified baseline build and confirmed byte-identical UI outcomes (rows, drawer, action states, console errors)"+ "opened the Physical Disks view",+ "filtered disks by owning Proxmox node",+ "expanded and collapsed a physical-disk detail",+ "cleared search and restored the full inventory",+ "verified no horizontal table overflow at 390px"]}diff --git a/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.tsindex 3b057ae5a6..4d177523c1 100644--- a/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts+++ b/frontend-modern/src/features/storageBackups/__tests__/diskPresentation.test.ts@@ -240,6 +240,13 @@ describe('diskPresentation', () => {platformData: { sources: ['agent', 'proxmox'] },} as unknown as Resource).label,).toBe('PVE');+ expect(+ getPhysicalDiskSourceKey({+ platformType: 'agent',+ sources: ['agent'],+ platformScopes: ['agent', 'proxmox-pve'],+ } as unknown as Resource),+ ).toBe('proxmox-pve');});it('returns host, health summary, and empty-state presentation canonically', () => {@@ -491,6 +498,27 @@ describe('diskPresentation', () => {},).map((disk) => disk.id),).toEqual(['disk-warning', 'pbs-disk']);+ expect(+ filterAndSortPhysicalDisks(+ [+ {+ ...healthyDisk,+ id: 'megaraid-member',+ platformType: 'agent',+ sources: ['agent'],+ platformScopes: ['agent', 'proxmox-pve'],+ },+ ],+ {+ selectedNode: null,+ searchTerm: '',+ sourceFilter: 'proxmox-all',+ healthFilter: 'all',+ getDiskData: () => healthyData,+ matchesNode: () => true,+ },+ ).map((disk) => disk.id),+ ).toEqual(['megaraid-member']);expect(filterAndSortPhysicalDisks([warningDisk, healthyDisk], {selectedNode: null,diff --git a/frontend-modern/src/features/storageBackups/diskPresentation.ts b/frontend-modern/src/features/storageBackups/diskPresentation.tsindex 750bff0a6f..90395e1cc2 100644--- a/frontend-modern/src/features/storageBackups/diskPresentation.ts+++ b/frontend-modern/src/features/storageBackups/diskPresentation.ts@@ -310,15 +310,27 @@ const readStringArray = (value: unknown): string[] =>const readPhysicalDiskSourceCandidates = (resource: Resource): string[] => {const directSources = readStringArray((resource as { sources?: unknown }).sources);+ const directPlatformScopes = readStringArray(+ (resource as { platformScopes?: unknown }).platformScopes,+ );const platformSources = readStringArray((resource.platformData as { sources?: unknown } | undefined)?.sources,);+ const platformScopes = readStringArray(+ (resource.platformData as { platformScopes?: unknown } | undefined)?.platformScopes,+ );const sourceStatus = (resource.platformData as { sourceStatus?: unknown } | undefined)?.sourceStatus;const sourceStatusSources =sourceStatus && typeof sourceStatus === 'object' ? Object.keys(sourceStatus) : [];- return [...platformSources, ...directSources, ...sourceStatusSources];+ return [+ ...directPlatformScopes,+ ...platformScopes,+ ...platformSources,+ ...directSources,+ ...sourceStatusSources,+ ];};export function getPhysicalDiskSourceKey(resource: Resource): string {diff --git a/internal/unifiedresources/registry.go b/internal/unifiedresources/registry.goindex 90c9b6877d..e8ca9bcb4d 100644--- a/internal/unifiedresources/registry.go+++ b/internal/unifiedresources/registry.go@@ -1726,6 +1726,10 @@ func (rr *ResourceRegistry) ingestHostSMARTDisks(host models.Host) {}hostParentID := rr.sourceResourceID(SourceAgent, host.ID)+ var proxmoxOwnership *ProxmoxData+ if parent, ok := rr.Get(hostParentID); ok {+ proxmoxOwnership = proxmoxPhysicalDiskOwnership(parent.Proxmox)+ }unraidStorageID := rr.sourceResourceID(SourceAgent, hostUnraidStorageSourceID(host))for _, disk := range host.Sensors.SMART {if fsfilters.IsVirtualBlockDevice(disk.Device) {@@ -1751,6 +1755,7 @@ func (rr *ResourceRegistry) ingestHostSMARTDisks(host models.Host) {if parentID != "" {resource.ParentID = &parentID}+ resource.Proxmox = cloneProxmoxData(proxmoxOwnership)sourceID := HostSMARTDiskSourceID(host, disk)if sourceID == "" {continue@@ -1759,6 +1764,26 @@ func (rr *ResourceRegistry) ingestHostSMARTDisks(host models.Host) {}}+// proxmoxPhysicalDiskOwnership projects only the owning-node identity needed+// by an agent-reported disk. The SMART facts and source remain agent-owned,+// while the platform facet keeps disks that have no matching PVE inventory row+// discoverable in the owning Proxmox workspace.+func proxmoxPhysicalDiskOwnership(parent *ProxmoxData) *ProxmoxData {+ if parent == nil {+ return nil+ }+ return &ProxmoxData{+ NodeIdentity: strings.TrimSpace(parent.NodeIdentity),+ NodeName: strings.TrimSpace(parent.NodeName),+ NodeAliases: cloneStringSlice(parent.NodeAliases),+ NodeDisplayName: strings.TrimSpace(parent.NodeDisplayName),+ ClusterName: strings.TrimSpace(parent.ClusterName),+ IsClusterMember: parent.IsClusterMember,+ Instance: strings.TrimSpace(parent.Instance),+ HostURL: strings.TrimSpace(parent.HostURL),+ }+}+func (rr *ResourceRegistry) ingestDockerHost(host models.DockerHost) {resource, identity := resourceFromDockerHost(host)rr.ingest(SourceDocker, host.ID, resource, identity)diff --git a/internal/unifiedresources/registry_test.go b/internal/unifiedresources/registry_test.goindex 559c5e34ec..bca28fafa3 100644--- a/internal/unifiedresources/registry_test.go+++ b/internal/unifiedresources/registry_test.go@@ -6197,3 +6197,83 @@ func TestIncidentActionFallbackKeepsNetworkAndStorageGuidanceDistinct(t *testingt.Fatalf("storage action = %q, want storage guidance", storageAction)}}++func TestIssue1720AgentControllerMembersInheritOwningProxmoxScope(t *testing.T) {+ now := time.Date(2026, 8, 25, 12, 0, 0, 0, time.UTC)+ registry := NewRegistry(nil)+ registry.IngestSnapshot(models.StateSnapshot{+ Nodes: []models.Node{{+ ID: "cluster-a-pve1",+ Name: "pve1",+ Instance: "cluster-a",+ ClusterName: "cluster-a",+ LinkedAgentID: "host-1",+ Status: "online",+ LastSeen: now,+ }},+ Hosts: []models.Host{{+ ID: "host-1",+ Hostname: "pve1",+ LinkedNodeID: "cluster-a-pve1",+ Status: "online",+ LastSeen: now,+ Sensors: models.HostSensorSummary{SMART: []models.HostDiskSMART{+ {+ Device: "0 [megaraid,0]",+ Model: "TOSHIBA MG03SCA300",+ Serial: "9410A0FWFVL9",+ Type: "sas",+ Controller: "0",+ Target: "megaraid,0",+ SizeBytes: 3_000_592_982_016,+ Temperature: 35,+ Health: "PASSED",+ },+ {+ Device: "0 [megaraid,1]",+ Model: "TOSHIBA MG03SCA300",+ Serial: "35C0A39YFVL9",+ Type: "sas",+ Controller: "0",+ Target: "megaraid,1",+ SizeBytes: 3_000_592_982_016,+ Temperature: 37,+ Health: "PASSED",+ },+ }},+ }},+ })++ disks := registry.ListByType(ResourceTypePhysicalDisk)+ if len(disks) != 2 {+ t.Fatalf("controller member resources = %d, want 2: %+v", len(disks), disks)+ }++ targets := make(map[string]bool, len(disks))+ for _, disk := range disks {+ if disk.PhysicalDisk == nil {+ t.Fatalf("disk %q has no physical-disk facet", disk.ID)+ }+ targets[disk.PhysicalDisk.Target] = true+ if !reflect.DeepEqual(disk.Sources, []DataSource{SourceAgent}) {+ t.Fatalf("disk %q sources = %v, want agent telemetry only", disk.ID, disk.Sources)+ }+ if !reflect.DeepEqual(disk.PlatformScopes, []string{"agent", "proxmox-pve"}) {+ t.Fatalf("disk %q platform scopes = %v, want agent + proxmox-pve", disk.ID, disk.PlatformScopes)+ }+ if disk.Proxmox == nil || disk.Proxmox.NodeName != "pve1" || disk.Proxmox.Instance != "cluster-a" {+ t.Fatalf("disk %q Proxmox ownership = %+v", disk.ID, disk.Proxmox)+ }+ if disk.ParentID == nil {+ t.Fatalf("disk %q has no owning node parent", disk.ID)+ }+ parent, ok := registry.Get(*disk.ParentID)+ if !ok || parent.Proxmox == nil || parent.Proxmox.Instance != "cluster-a" {+ t.Fatalf("disk %q parent = %+v, found=%v", disk.ID, parent, ok)+ }+ }++ if !targets["megaraid,0"] || !targets["megaraid,1"] {+ t.Fatalf("controller members collapsed or disappeared: %v", targets)+ }+}