Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvme disk show as unknown #22

Open
sl1pkn07 opened this issue Aug 16, 2019 · 16 comments
Open

nvme disk show as unknown #22

sl1pkn07 opened this issue Aug 16, 2019 · 16 comments

Comments

@sl1pkn07
Copy link

Screenshot_20190816_142705

smartctlr show the disk and their properties (for example, --info)

└───╼  sudo smartctl --info /dev/nvme0n1
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.2.0-arch2-1-ARCH] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       Samsung SSD 960 EVO 500GB
Serial Number:                      S3EUNB0J557245E
Firmware Version:                   2B7QCXE7
PCI Vendor/Subsystem ID:            0x144d
IEEE OUI Identifier:                0x002538
Total NVM Capacity:                 500.107.862.016 [500 GB]
Unallocated NVM Capacity:           0
Controller ID:                      2
Number of Namespaces:               1
Namespace 1 Size/Capacity:          500.107.862.016 [500 GB]
Namespace 1 Utilization:            424.896.667.648 [424 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            002538 5571b2a498
Local Time is:                      Fri Aug 16 14:29:15 2019 CEST
@papylhomme
Copy link
Owner

Can you check if UDisks export the SMART attributes using a dbus client like qdbusviewer ? See #19 (comment) for details on how to do that.

Looking more in debt into udisks I found the following issues that seem related: storaged-project/udisks#433 and storaged-project/udisks#649

@sl1pkn07
Copy link
Author

Screenshot_20190819_235213

seems this storaged-project/udisks#386

@Teuniz
Copy link

Teuniz commented Aug 18, 2020

Same problem here:

`sudo smartctl --info /dev/nvme0n1
[sudo] password for root:
smartctl 7.0 2019-05-21 r4917 [x86_64-linux-5.3.18-lp152.33-default] (SUSE RPM)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: Samsung SSD 970 PRO 1TB
Serial Number: S462NF0MA07665A
Firmware Version: 1B2QEXP7
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Total NVM Capacity: 1,024,209,543,168 [1.02 TB]
Unallocated NVM Capacity: 0
Controller ID: 4
Number of Namespaces: 1
Namespace 1 Size/Capacity: 1,024,209,543,168 [1.02 TB]
Namespace 1 Utilization: 469,198,090,240 [469 GB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 002538 5a91b2f807
Local Time is: Tue Aug 18 15:50:10 2020 CEST
`

`cat /etc/os-release
NAME=openSUSE Leap
VERSION=15.2
ID=opensuse-leap
ID_LIKE=suse opensuse
VERSION_ID=15.2
PRETTY_NAME=openSUSE Leap 15.2
ANSI_COLOR=0;32
CPE_NAME=cpe:/o:opensuse:leap:15.2
BUG_REPORT_URL=https://bugs.opensuse.org
HOME_URL=https://www.opensuse.org/

uname -a
Linux 5.3.18-lp152.33-default #1 SMP Wed Jul 22 06:32:33 UTC 2020 (e5a8383) x86_64 x86_64 x86_64 GNU/Linux
`

image

image

image

@DanielR-I
Copy link

DanielR-I commented Aug 5, 2021

I am experiencing this issue as well in DisKMonitor 0.3.4...

  • KDE Frameworks 5.84.0
  • Qt 5.15.2 (built against 5.15.2)
  • The xcb windowing system
$ sudo smartctl --info /dev/nvme0n1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.5-1-MANJARO] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       WDS100T1X0E-00AFY0
Serial Number:                      ########################
Firmware Version:                   613200WD
PCI Vendor/Subsystem ID:            0x15b7
IEEE OUI Identifier:                0x001b44
Total NVM Capacity:                 1,000,204,886,016 [1.00 TB]
Unallocated NVM Capacity:           0
Controller ID:                      8224
NVMe Version:                       1.4
Number of Namespaces:               1
Namespace 1 Size/Capacity:          1,000,204,886,016 [1.00 TB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            001b44 8b49390a73
Local Time is:                      Thu Aug  5 10:25:57 2021 CDT
$ sudo smartctl --info /dev/nvme1n1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.13.5-1-MANJARO] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       WDS100T3X0C-00SJG0
Serial Number:                      ########################
Firmware Version:                   102000WD
PCI Vendor/Subsystem ID:            0x15b7
IEEE OUI Identifier:                0x001b44
Total NVM Capacity:                 1,000,204,886,016 [1.00 TB]
Unallocated NVM Capacity:           0
Controller ID:                      8215
NVMe Version:                       1.3
Number of Namespaces:               1
Namespace 1 Size/Capacity:          1,000,204,886,016 [1.00 TB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            001b44 8b4472fa2a
Local Time is:                      Thu Aug  5 10:26:39 2021 CDT

Operating System: Manjaro Linux

  • KDE Plasma Version: 5.22.4
  • KDE Frameworks Version: 5.84.0
  • Qt Version: 5.15.2
  • Kernel Version: 5.13.5-1-MANJARO (64-bit)
  • Graphics Platform: X11
$ cat /etc/os-release
NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux

@nBalykin
Copy link

The same for me in DisKMonitor 0.3.4:
2022-05-01_02-15

sudo smartctl --info /dev/nvme0n1

smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.15.32-1-MANJARO] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: CT500P5PSSD8
Serial Number: 213731731B64
Firmware Version: P7CR402
PCI Vendor/Subsystem ID: 0xc0a9
IEEE OUI Identifier: 0x00a075
Total NVM Capacity: 500 107 862 016 [500 GB]
Unallocated NVM Capacity: 0
Controller ID: 0
NVMe Version: 1.4
Number of Namespaces: 1
Namespace 1 Size/Capacity: 500 107 862 016 [500 GB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 00a075 0131731b64
Local Time is: Sun May 1 02:14:13 2022 MSK

Operating System: Manjaro Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.32-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 4 × AMD Ryzen 3 PRO 2200G with Radeon Vega Graphics
Memory: 13.6 ГиБ of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics

@papylhomme
Copy link
Owner

This issue is still blocked upstream by udisk but things might move on their side eventually : the related issue receveid an interesting update yesterday storaged-project/udisks#386 (comment)

@MrHappy
Copy link

MrHappy commented Dec 28, 2022

Seems to been have fixed some time ago (storaged-project/udisks#975).

@sl1pkn07
Copy link
Author

yes. but not released (only in GIT build)

@sl1pkn07
Copy link
Author

seems the udisk issue is fixed (libnvme is released with things fixed) . needs do something here?

greetings

@papylhomme
Copy link
Owner

Yes indeed, shipped with udisks2-2.10 (storaged-project/udisks#1121), available on Arch but not yet on Manjaro.

Definitely some work to do on diskmonitor as the Drive.Ata and NVMe.Controller interfaces have some differences. Can you try to list SmartGetAttributes using QDDusViewer ? On my drive I get errors when trying to call the methods, the properties are fine though.

image

@sl1pkn07
Copy link
Author

not sure why, but not works for me eiter

image

@sl1pkn07
Copy link
Author

sl1pkn07 commented Sep 27, 2023

seems need something with libatasmart or a future implementation in libblockdev with smartmontools plugin

storaged-project/udisks#1063
storaged-project/libblockdev#835
storaged-project/udisks#1179

@vvpnet
Copy link

vvpnet commented Oct 20, 2023

I faced the same problem:
main
DisKMonitor
Version 0.3.4
KDE Frameworks 5.68.0,
Qt 5.12.8,
Windows system xcb.

sudo smartctl --info /dev/nvme0n1
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.15.0-86-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       Micron MTFDHBA512TDV
Serial Number:                      21032CA5C26D
Firmware Version:                   3010P4LN
PCI Vendor/Subsystem ID:            0x1344
IEEE OUI Identifier:                0x00a075
Controller ID:                      0
Number of Namespaces:               1
Namespace 1 Size/Capacity:          512 110 190 592 [512 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            00a075 012ca5c26d
Local Time is:                      Fri Oct 20 09:02:00 2023 +06
Linux ThinkPad-P14s 5.15.0-86-generic #96~20.04.1-Ubuntu SMP Thu Sep 21 13:23:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Is there any solution to this problem?

@matevz
Copy link

matevz commented Feb 9, 2025

Any news on this one? NVMEs are pretty common these days.

@papylhomme
Copy link
Owner

Any news on this one? NVMEs are pretty common these days.

Hello, tested this today and I got some results. Not much, but better than nothing. I'll try to find some time to work on this again in the coming weeks.

Can you try the following python script with your drive and see if you get more attributes ?

from pydbus import SystemBus
bus = SystemBus()
remote_object = bus.get("org.freedesktop.UDisks2", "/org/freedesktop/UDisks2/drives/CT1000P2SSD8_2102E4E73A82")
remote_object.Introspect()
print(remote_object.SmartGetAttributes(dict()))

On my drive I get the following

{
  'avail_spare': 100,
  'spare_thresh': 5,
  'percent_used': 4,
  'total_data_read': 14642580992000,
  'total_data_written': 20197106176000,
  'ctrl_busy_time': 3974,
  'power_cycles': 4051,
  'unsafe_shutdowns': 37,
  'media_errors': 0,
  'num_err_log_entries': 5531,
  'temp_sensors': [0, 0, 0, 0, 0, 0, 0, 0],
  'wctemp': 343, 
  'cctemp': 358,
  'warning_temp_time': 0, 
  'critical_temp_time': 0
}

@matevz
Copy link

matevz commented Feb 13, 2025

Nice.

For my Crucial CT4000T500 NVME I get:

{
  "avail_spare": 100,
  "spare_thresh": 5,
  "percent_used": 2,
  "total_data_read": 1232784327168000,
  "total_data_written": 97919358464000,
  "ctrl_busy_time": 16240,
  "power_cycles": 3,
  "unsafe_shutdowns": 1,
  "media_errors": 0,
  "num_err_log_entries": 0,
  "temp_sensors": [
    324,
    0,
    0,
    0,
    0,
    0,
    0,
    0
  ],
  "wctemp": 359,
  "cctemp": 361,
  "warning_temp_time": 0,
  "critical_temp_time": 0
}

And for Crucial CT2000T500 NVME:

{
  "avail_spare": 100,
  "spare_thresh": 5,
  "percent_used": 17,
  "total_data_read": 4163753544704000,
  "total_data_written": 270169098240000,
  "ctrl_busy_time": 43295,
  "power_cycles": 64,
  "unsafe_shutdowns": 45,
  "media_errors": 0,
  "num_err_log_entries": 0,
  "temp_sensors": [
    323,
    0,
    0,
    0,
    0,
    0,
    0,
    0
  ],
  "wctemp": 359,
  "cctemp": 361,
  "warning_temp_time": 0,
  "critical_temp_time": 0
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants