Proxmox GUI not displaying SMART data for m.2 SATA SSD

cinsun42

New Member
May 16, 2025
6
0
1
Hi all, long time lurker first time poster

I'm currently on PVE 8.4.1 and am having an issue with S.M.A.R.T. values not displaying in the GUI for one of my installed m.2 SATA SSDs. I have three other drives (1x nvme PCIE SSD, 2x SATA spinning rust) that display their S.M.A.R.T. values just fine. Before getting too far along, I've searched for hours on a solution and while I've found some similar problem descriptions, I haven't quite connected the dots on what my specific issue may be or how to address it.

The m.2 SATA ssd in question is a 256GB variant of this drive - https://www.kingspec.com/product/m2-ngff-sata-ssd-nt-2242mm.html

The drive in question is /dev/sda

smartctl -a /dev/sda returns stats signifying the drive is detected and SMART is enabled (see attached)

interestingly, smartctl --scan shows the drive being detected as SCSI

while smartctl --scan-open shows the drive being detected as ATA

I ran smartctl -d sat,auto /dev/sda and while it does return "ATA device successfully opened", it doesn't seem to have changed any behavior in the GUI. I was expecting this to have changed the drive mode detected, but when I run smartctl --scan again, it shows /dev/sda being detected as SCSI again

I don't know if any of this is leading me in the right direction, other than to confirm SMART stats are being pulled from the drive just not making it into the proxmox GUI for some reason. Any thoughts on a step forward? Many thanks in advance!
 

Attachments

  • Screenshot from 2025-05-15 19-27-15.png
    Screenshot from 2025-05-15 19-27-15.png
    30.2 KB · Views: 6
  • Screenshot from 2025-05-15 19-32-37.png
    Screenshot from 2025-05-15 19-32-37.png
    17.9 KB · Views: 6
  • Screenshot from 2025-05-15 19-50-06.png
    Screenshot from 2025-05-15 19-50-06.png
    7 KB · Views: 5
  • Screenshot from 2025-05-15 19-51-52.png
    Screenshot from 2025-05-15 19-51-52.png
    6.6 KB · Views: 5
  • Screenshot from 2025-05-15 20-06-03.png
    Screenshot from 2025-05-15 20-06-03.png
    14.7 KB · Views: 6
interestingly, smartctl --scan shows the drive being detected as SCSI

while smartctl --scan-open shows the drive being detected as ATA
I believe this does not have to be unusual behavior, see here which appears to be the correct info.

Something you have not provided in your post - is what values (if at all) does smartctl actually read from that device.

So please show output (please copy text & paste using the code-editor provided in the formatting bar) for the following:
Code:
smartctl --all /dev/sda
 
I believe this does not have to be unusual behavior, see here which appears to be the correct info.

Something you have not provided in your post - is what values (if at all) does smartctl actually read from that device.

So please show output (please copy text & paste using the code-editor provided in the formatting bar) for the following:
Code:
smartctl --all /dev/sda
Here is the output

Code:
root@proxmox1:~# smartctl --all /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.8.12-10-pve] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     NT-256 2242
Serial Number:    0029028001058
LU WWN Device Id: 5 000000 000033014
Firmware Version: SN12574
User Capacity:    256,060,514,304 bytes [256 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        Not in smartctl database 7.3/5706
ATA Version is:   ACS-4 (minor revision not indicated)
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu May 15 23:52:08 2025 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (   33) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  85) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x0031) SCT Status supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 20
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x1300   100   100   050    Old_age   Offline      -       0
  9 Power_On_Hours          0x1200   100   100   000    Old_age   Offline      -       86
 12 Power_Cycle_Count       0x1200   100   100   000    Old_age   Offline      -       11
167 Unknown_Attribute       0x2200   100   100   000    Old_age   Offline      -       0
168 Unknown_Attribute       0x1200   100   100   000    Old_age   Offline      -       0
169 Unknown_Attribute       0x1300   100   100   010    Old_age   Offline      -       196614
173 Unknown_Attribute       0x1200   200   200   000    Old_age   Offline      -       4296212488
175 Program_Fail_Count_Chip 0x2200   100   100   010    Old_age   Offline      -       0
180 Unused_Rsvd_Blk_Cnt_Tot 0x3300   100   100   000    Old_age   Offline      -       27
192 Power-Off_Retract_Count 0x1200   100   100   000    Old_age   Offline      -       7
194 Temperature_Celsius     0x2200   042   042   000    Old_age   Offline      -       42 (Min/Max 27/46)
231 Unknown_SSD_Attribute   0x2300   100   100   005    Old_age   Offline      -       0
233 Media_Wearout_Indicator 0x2300   100   100   000    Old_age   Offline      -       405
234 Unknown_Attribute       0x3200   100   100   005    Old_age   Offline      -       134210
241 Total_LBAs_Written      0x3200   100   100   000    Old_age   Offline      -       243
242 Total_LBAs_Read         0x3200   100   100   000    Old_age   Offline      -       66

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%         3         -
# 2  Short offline       Completed without error       00%         1         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
 
Hi,

the actual command we use to parse out the data is

Code:
smartctl -H -A -f brief /dev/sda

could you maybe run that command and post it's output here?
also, do you see any error in the journal/syslog on the host while you're trying to display the smart values on the gui?
 
Hi,

the actual command we use to parse out the data is

Code:
smartctl -H -A -f brief /dev/sda

could you maybe run that command and post it's output here?
also, do you see any error in the journal/syslog on the host while you're trying to display the smart values on the gui?

Here is the output requested:

Code:
root@proxmox1:~# smartctl -H -A -f brief /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.8.12-10-pve] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART Attributes Data Structure revision number: 20
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  5 Reallocated_Sector_Ct   ------+  100   100   050    -    0
  9 Power_On_Hours          ------+  100   100   000    -    93
 12 Power_Cycle_Count       ------+  100   100   000    -    11
167 Unknown_Attribute       ------+  100   100   000    -    0
168 Unknown_Attribute       ------+  100   100   000    -    0
169 Unknown_Attribute       ------+  100   100   010    -    196614
173 Unknown_Attribute       ------+  200   200   000    -    4296343561
175 Program_Fail_Count_Chip ------+  100   100   010    -    0
180 Unused_Rsvd_Blk_Cnt_Tot ------+  100   100   000    -    27
192 Power-Off_Retract_Count ------+  100   100   000    -    7
194 Temperature_Celsius     ------+  040   040   000    -    40 (Min/Max 27/46)
231 Unknown_SSD_Attribute   ------+  100   100   005    -    0
233 Media_Wearout_Indicator ------+  100   100   000    -    455
234 Unknown_Attribute       ------+  100   100   005    -    159998
241 Total_LBAs_Written      ------+  100   100   000    -    262
242 Total_LBAs_Read         ------+  100   100   000    -    68
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning


I checked syslog and was not able to find any messages related to this issue
 
That revision number 20 is of a more rare type & has been a source of parsing issues, search web for examples.
Understood, I did find a similar case of rev number 20 documented here (granted, for a different project/platform):
https://github.com/truenas/py-SMART/issues/65

It is interesting, in that thread there seems to have been similar detection behavior as in my case. The drive first detected as SCSI, then as SAT upon "opening" further. Also if I run detection as an nvme, it is also detected properly. I guess this makes sense since it technically is an NMVE drive

Code:
root@proxmox1:~# smartctl -d nvme /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.8.12-10-pve] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

NVMe device successfully opened

Use 'smartctl -a' (or '-x') to print SMART (and more) information

That said, doesn't the fact that smartmontools is returning SMART values for the drive in my case imply parsing if functioning properly? Is Proxmox using a different method to extract these same values?
 
Last edited:
Hi,

the actual command we use to parse out the data is

Code:
smartctl -H -A -f brief /dev/sda

could you maybe run that command and post it's output here?
also, do you see any error in the journal/syslog on the host while you're trying to display the smart values on the gui?

Any thoughts on the output I posted above regarding your inquiry?
 
Hi,

sorry yes. It seems the way we parse does not match the output you posted, which is very probably related to this version
SMART Attributes Data Structure revision number: 20


would you mind opening a bug on https://bugzilla.proxmox.com/
with the smarctl output posted from above and additionally
the output of
Code:
smartctl -H -A -f brief /dev/sda -j

I guess that we will most likely switch to parse the json output of smartctl, since that is much less brittle...
 
Hi,

sorry yes. It seems the way we parse does not match the output you posted, which is very probably related to this version



would you mind opening a bug on https://bugzilla.proxmox.com/
with the smarctl output posted from above and additionally
the output of
Code:
smartctl -H -A -f brief /dev/sda -j

I guess that we will most likely switch to parse the json output of smartctl, since that is much less brittle...
Thank you!

A ticket has been created here:
https://bugzilla.proxmox.com/show_bug.cgi?id=6405