project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Feature] Improve disk SMART status display for HDDs without wearout value

Open mdobprv-lab opened this issue 3 months ago • 4 comments

Got an idea? Nice! 💡 We love hearing what features would make PegaProx better for you.

A friendly reminder: PegaProx is built by volunteers in our spare time. We can't promise timelines or guarantee every feature will be implemented — but every suggestion helps shape the roadmap!

Want to help move things faster?


Describe the feature

Improve the disk / SMART display so that HDDs without an SSD wearout value are not shown only as N/A.

Currently, in the disk table, HDDs are displayed with N/A in the last status/wearout column, while SSDs show a numeric value such as 100.

Example:

/dev/sda  hdd  21.8 TB  TOSHIBA_MG11ACA24TE   N/A
/dev/sdm  ssd  447.1 GB KINGSTON_SEDC600M480G 100

This is technically understandable if the column represents SSD wearout / lifetime, because classic HDDs usually do not expose a wearout percentage.

However, from an operator point of view, N/A next to many HDDs looks like disk health is not available, even when SMART is working and the disks report healthy status.

Use Case

I am using PegaProx to monitor a physical Proxmox Backup Server with multiple large HDDs and two SSDs.

The host exposes SMART correctly:

smartctl --scan-open
/dev/sda -d sat # /dev/sda [SAT], ATA device
...
/dev/sdn -d sat # /dev/sdn [SAT], ATA device

For an HDD, SMART health is available and reports PASSED:

Device Model:     TOSHIBA MG11ACA24TE
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
SMART overall-health self-assessment test result: PASSED
Temperature_Celsius ... 19
Reallocated_Sector_Ct ... 0
Current_Pending_Sector ... 0
Offline_Uncorrectable ... 0
No Errors Logged

For SSDs, PegaProx shows 100, which appears to be a wearout / lifetime indicator:

Device Model:     KINGSTON SEDC600M480G
SMART overall-health self-assessment test result: PASSED
Media_Wearout_Indicator ... 100

The issue is not that SMART is unavailable. The issue is that the UI currently makes HDDs look like their disk status is unavailable, while only the SSD wearout percentage is unavailable / not applicable.

Suggested behavior

It would be clearer if the UI separated:

  • SMART health status: PASSED, FAILED, UNKNOWN
  • Temperature
  • Reallocated sectors
  • Pending sectors
  • Uncorrectable sectors
  • SSD wearout / lifetime percentage, shown only where applicable

For HDDs, instead of showing only N/A, the table could show something like:

SMART: PASSED
Wearout: N/A

or:

Health: OK
Wearout: not applicable

This would make it clear that the HDD is healthy and that only the SSD wearout metric is not applicable.

Alternatives considered

The operator can manually run smartctl -a /dev/sdX, but this defeats the purpose of using PegaProx as an infrastructure operations dashboard.

How important is this for you?

Would improve my workflow.

This is not blocking functionality, but it would make disk health monitoring much clearer on systems with many HDDs, such as Proxmox Backup Server or storage-heavy Proxmox nodes.

Checklist

  • [x] I have searched existing issues and discussions to make sure this hasn't been requested before

mdobprv-lab avatar Aug 13 '26 10:08 mdobprv-lab

Thanks @mdobprv-lab — fair point. That column is really "SSD wearout %", which spinning disks simply don't report, so HDDs fall back to N/A. The meaningful equivalent for an HDD is the SMART overall-health assessment (PASSED/FAILED) plus the reallocated / pending-sector counts — so surfacing SMART health there instead of a bare N/A for HDDs makes sense. No timeline to promise, but it's a reasonable improvement and it's noted. Thanks for the suggestion!

We run on backers — if PegaProx pulls its weight in your setup, a little support goes a long way: https://opencollective.com/pegaprox 🙏

— Marcus

mkellermann97 avatar Aug 14 '26 16:08 mkellermann97

Sorry for jumping in: where is the SMART display in Pegaprox?

robertdahlem avatar Aug 16 '26 16:08 robertdahlem

@robertdahlem no worries — it's in the node view: open a node → Disks, and each physical disk lists its health/wearout; click a disk's SMART Data to open the full attribute table (temperature, reallocated/pending sectors, etc.).

The N/A this issue is about is specifically the wearout column for spinning HDDs (they don't expose an SSD-style wearout %), which is what @mdobprv-lab is asking us to present more clearly.

mkellermann97 avatar Aug 17 '26 07:08 mkellermann97

Shipped in v1.0.2 — the disk table now shows the SMART health for HDDs that have no wearout value, instead of a bare N/A. https://github.com/PegaProx/project-pegaprox/releases/tag/v1.0.2

MrMasterbay avatar Aug 18 '26 22:08 MrMasterbay