tool: add disk-health tool (SMART + NVMe)#15417
Merged
Merged
Conversation
New PVE host tool that reports drive health for all physical disks: - Installs smartmontools and nvme-cli on demand. - Enumerates physical disks (skipping loop/zram/dm devices) and prints an overall SMART verdict plus key indicators (temperature, power-on hours, wear, reallocated/pending/offline sectors, CRC errors; NVMe spare, percentage used and media errors), highlighting non-zero error counters. - Optionally starts a non-destructive short SMART self-test on a selected disk.
CrazyWolf13
requested changes
Jun 26, 2026
Replace locally duplicated color variables and msg_* helpers with core.func + load_functions, matching the pattern used by update-apps and pve-privilege-converter. Telemetry remains via api.func only.
asylumexp
approved these changes
Jun 27, 2026
michelroegl-brunner
approved these changes
Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✍️ Description
New PVE host tool that reports drive health for all physical disks:
PS: Entry in DB will be created after merge, i dont have it in VED, so i dont have a json, i create it manually
🔗 Related Issue
Fixes #
✅ Prerequisites (X in brackets)
🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.