UNKNOWN S.M.A.R.T. Status - Exit Code: 2 (500)

Chazz

Member
Feb 3, 2022
12
1
8
45
Greetings Proxmox community!

I recently bought a Samsung pm1725a U.2 SSD, updated the firmware, and put it into service in my Proxmox server. It's working great, and `smartctl -a` in the console shows happy things.

Code:
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.39-3-pve] (local build)

Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

NVMe device successfully opened

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

root@lsnhg:/srv/scripts# nano /etc/smartd.conf   
root@lsnhg:/srv/scripts# smartctl -a /dev/nvme0
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.39-3-pve] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       SAMSUNG MZWLL3T2HMJP-00003
Serial Number:                      **********
Firmware Version:                   GPNABB3Q
PCI Vendor/Subsystem ID:            0x144d
IEEE OUI Identifier:                0x002538
Total NVM Capacity:                 3,200,631,791,616 [3.20 TB]
Unallocated NVM Capacity:           0
Controller ID:                      33
NVMe Version:                       1.2
Number of Namespaces:               32
Local Time is:                      Sun Aug 21 17:55:11 2022 MST
Firmware Updates (0x17):            3 Slots, Slot 1 R/O, no Reset required
Optional Admin Commands (0x000e):   Format Frmw_DL NS_Mngmt
Optional NVM Commands (0x003e):     Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Resv
Log Page Attributes (0x02):         Cmd_Eff_Lg
Maximum Data Transfer Size:         32 Pages
Warning  Comp. Temp. Threshold:     78 Celsius
Critical Comp. Temp. Threshold:     85 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +    25.00W       -        -    0  0  0  0      100     100

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

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        53 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    12%
Data Units Read:                    31,794,435,155 [16.2 PB]
Data Units Written:                 19,603,213,942 [10.0 PB]
Host Read Commands:                 1,205,231,359,969
Host Write Commands:                724,927,251,939
Controller Busy Time:               229,284
Power Cycles:                       149
Power On Hours:                     20,291
Unsafe Shutdowns:                   145
Media and Data Integrity Errors:    0
Error Information Log Entries:      0
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               53 Celsius
Temperature Sensor 2:               53 Celsius
Temperature Sensor 3:               50 Celsius

Error Information (NVMe Log 0x01, 16 of 256 entries)
No Errors Logged

While all that looks good, Proxmox is displeased:

Screenshot_20220821_183043.png

When I press "Show S.M.A.R.T. Values", Proxmox is even further displeased:

Screenshot_20220821_183222.png

I saw somebody having the same problem below, but they said they are not experiencing it in PVE, only PVB. I, however, am experiencing this in PVE.

https://forum.proxmox.com/threads/s-m-a-r-t-status-unknown.95417/post-421877

I'd be OK excluding this drive from smartmontools, but I'd prefer for everything to work according to plan. Tips would be appreciated here.

John
 
Hi,
please provide the output of the following
Code:
readlink /sys/block/nvme0n1/device
smartctl -H -A -f brief /dev/nvme0n1
pveversion -v
 
Happily. Thanks for your reply.

Code:
readlink /sys/block/nvme0n1/device
../../nvme-subsys0

Code:
smartctl -H -A -f brief /dev/nvme0n1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.39-3-pve] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

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

SMART/Health Information (NVMe Log 0x02)
Critical Warning:                   0x00
Temperature:                        55 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    12%
Data Units Read:                    31,800,599,445 [16.2 PB]
Data Units Written:                 19,607,386,790 [10.0 PB]
Host Read Commands:                 1,205,275,001,597
Host Write Commands:                724,953,872,100
Controller Busy Time:               229,349
Power Cycles:                       149
Power On Hours:                     20,365
Unsafe Shutdowns:                   145
Media and Data Integrity Errors:    0
Error Information Log Entries:      0
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               55 Celsius
Temperature Sensor 2:               55 Celsius
Temperature Sensor 3:               52 Celsius

Code:
pveversion -v
proxmox-ve: 7.2-1 (running kernel: 5.15.39-3-pve)
pve-manager: 7.2-7 (running version: 7.2-7/d0dd0e85)
pve-kernel-5.15: 7.2-8
pve-kernel-helper: 7.2-8
pve-kernel-5.13: 7.1-9
pve-kernel-5.15.39-3-pve: 5.15.39-3
pve-kernel-5.15.39-2-pve: 5.15.39-2
pve-kernel-5.15.39-1-pve: 5.15.39-1
pve-kernel-5.15.35-3-pve: 5.15.35-6
pve-kernel-5.15.35-2-pve: 5.15.35-5
pve-kernel-5.15.35-1-pve: 5.15.35-3
pve-kernel-5.13.19-6-pve: 5.13.19-15
pve-kernel-5.13.19-5-pve: 5.13.19-13
pve-kernel-5.13.19-4-pve: 5.13.19-9
pve-kernel-5.13.19-2-pve: 5.13.19-4
pve-kernel-5.13.19-1-pve: 5.13.19-3
ceph-fuse: 15.2.15-pve1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve1
libproxmox-acme-perl: 1.4.2
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.2-4
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.2-2
libpve-guest-common-perl: 4.1-2
libpve-http-server-perl: 4.1-3
libpve-storage-perl: 7.2-7
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.0-3
lxcfs: 4.0.12-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.2.5-1
proxmox-backup-file-restore: 2.2.5-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.5.1
pve-cluster: 7.2-2
pve-container: 4.2-2
pve-docs: 7.2-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.5-1
pve-ha-manager: 3.4.0
pve-i18n: 2.7-2
pve-qemu-kvm: 6.2.0-11
pve-xtermjs: 4.16.0-1
qemu-server: 7.2-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.7.1~bpo11+1
vncterm: 1.7-1
zfsutils-linux: 2.1.5-pve1
 
Happily. Thanks for your reply.

Code:
readlink /sys/block/nvme0n1/device
../../nvme-subsys0
Ok, this might be the cause of the issue. We actually use this output for the smartctl command, so could you try again with
smartctl -H -A -f brief /dev/nvme-subsys0? We started doing it like this, because the paths could get mixed up, but maybe nowadays it doesn't always work anymore.
 
Sure thing, and thanks for your reply.

Code:
smartctl -H -A -f brief /dev/nvme-subsys0
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.39-3-pve] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/nvme-subsys0 failed: No such device
 
Can you post the output of readlink /sys/class/nvme/*? I'm currently looking at potential ways to get the correct device name. Maybe we also can just do nvme-subsys0 -> nvme0, but I guess I'll need to look at some kernel docs next week ;)
 
Happily

Code:
readlink /sys/class/nvme/*
../../devices/pci0000:00/0000:00:03.2/0000:06:00.0/nvme/nvme0
 
EDIT: Well, I actually got around to it today and sent a patch for discussion.

Not for the moment. Unfortunately, I haven't come around to this issue yet and will be on vacation for a bit after today, but it is on my TODO-list. That said, feel free to open a bug report on our bugtracker. If you're lucky, another developer might tackle it in the meantime.
 
Last edited:
  • Like
Reactions: Chazz and Neobin
As somebody's who's wished to contribute, in some small way, to an open source project this is really neat for me to be involved with. Thanks Fiona for opening the discussion. I may open a bug as well. Appreciate your time!
 
Hello, I have the same problem as described in this thread. Is there currently a solution?
The S.M.A.R.T. Data cannot be read out in the web interface, but can be read out via the console. Would you still get email notifications when a S.M.A.R.T. error occurs?
 
Hi,
Hello, I have the same problem as described in this thread. Is there currently a solution?
The S.M.A.R.T. Data cannot be read out in the web interface, but can be read out via the console. Would you still get email notifications when a S.M.A.R.T. error occurs?
the patch (and a follow-up) are contained in libpve-storage-perl >= 7.3-2. It's currently being tested internally and will be rolled out to the repositories (first test, then no-subscription, then enterprise) if no issues pop up. The email is sent by the smartd daemon which is not affected by the issue.
 
ok, because on my other server i have the 7.3-4 running and there is the same problem.
Do you mean the pve-manager version? See pveversion -v for the full output (including for libpve-storage-perl). As I said, the package with the fix has not been released yet.
 
Hi,
@fiona:
Small question that is not explicitly regarding the topic and also for no specific reason, but I don't want to open an extra thread for it:
Is it planned to update the smartmontools in the Proxmox repositories to 7.3 [1] in the foreseeable future?
As I said, no specific reason (at least for me); only curious. :D

[1] https://www.smartmontools.org/browser/tags/RELEASE_7_3/smartmontools/NEWS
would updating the drivedb.h be enough for you (see this bugzilla entry for more information)? Or do you need some other new feature? If it's the latter, feel free to open a report on the bugtracker for it. Like that, all developers (and release team members) can see it ;) But as mentioned in comment 2 of the other report, we'd like to keep it based off the version used in Debian if possible.
 
Hi,

would updating the drivedb.h be enough for you (see this bugzilla entry for more information)? Or do you need some other new feature? If it's the latter, feel free to open a report on the bugtracker for it. Like that, all developers (and release team members) can see it ;) But as mentioned in comment 2 of the other report, we'd like to keep it based off the version used in Debian if possible.

I only thought, since it is in the Proxmox repos, it would perhaps be updated independently from the version in the Debian repos; but now I know, that it is not intended that way.

Thank you very much for the answer and clarification. :)
 
So we are still in the same place even on No subscription repo:

/usr/sbin/smartctl --health --device sat /dev/sdc
Read Device Identity failed: scsi error unsupported field in scsi command

1693547965207.png
root@hq:~# pveversion -v
proxmox-ve: 7.4-1 (running kernel: 5.15.116-1-pve)
pve-manager: 7.4-16 (running version: 7.4-16/0f39f621)
pve-kernel-5.15: 7.4-6
pve-kernel-5.4: 6.4-20
pve-kernel-5.15.116-1-pve: 5.15.116-1
pve-kernel-5.15.111-1-pve: 5.15.111-1
pve-kernel-5.15.108-1-pve: 5.15.108-2
pve-kernel-5.15.107-2-pve: 5.15.107-2
pve-kernel-5.15.107-1-pve: 5.15.107-1
pve-kernel-5.4.203-1-pve: 5.4.203-1
pve-kernel-4.13.8-3-pve: 4.13.8-30
pve-kernel-4.13.8-2-pve: 4.13.8-28
pve-kernel-4.13.4-1-pve: 4.13.4-26
 
Last edited:
Hi,
So we are still in the same place even on No subscription repo:

/usr/sbin/smartctl --health --device sat /dev/sdc
Read Device Identity failed: scsi error unsupported field in scsi command
that's a different error. Does updating drivedb.h help, see here: https://bugzilla.proxmox.com/show_bug.cgi?id=4432#c3 ?
If not, what drive model is this? How is the drive connected? What if you run the command without --device sat?
 
  • Like
Reactions: Sasha

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!