It looks like no SMART information is returned when there are only NVMe drives in a system. Smartctl works after telling it to check for NVMe drives, but nothing is returned in Webmin.
Does SMART even make sense for NVMe drives, given that they are solid-state devices that can't fail in the way spinning disks do?
There is a bug in Webmin currently whereby NVMe drives are not recognized at all. This will be fixed in the next release though, and should cause them to show up in the SMART module.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I agree it's likely not necessary. But, smartmontools supports it, smartctl returns data, the Webmin system should use it. It currently deosn't. This seems like a bug.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Status: open Group: 1.880 Labels: smartctl NVMe Created: Thu May 03, 2018 04:53 PM UTC by Darren Farmer Last Updated: Sat May 05, 2018 06:43 PM UTC Owner: nobody
It looks like no SMART information is returned when there are only NVMe
drives in a system. Smartctl works after telling it to check for NVMe
drives, but nothing is returned in Webmin.
Is that the full output from smartctl -i /dev/nvme0n1 ? Normally I'd expect to see something in there about whether SMART support is possible, and if it is enabled.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-i,--infoPrintsthedevicemodelnumber,serialnumber,firmwareversion,andATAStandardversion/revisioninformation.SaysifthedevicesupportsSMART,andifso,whetherSMARTsupportiscur‐rentlyenabledordisabled.IfthedevicesupportsLogicalBlockAddressmode(LBAmode)printcurrentuserdrivecapacityinbytes.(Ifdriveishasauserprotectedareareserved,oris"clipped",thismaybesmallerthanthepotentialmaximumdrivecapacity.)Indicatesifthedriveisinthesmartmontoolsdata‐base(see´-v´optionsbelow).Ifso,thedrivemodelfamilymayalsobeprinted.If´-n´(seebelow)isspecified,thepowermodeofthedriveisprinted.[NVMe][FreeBSD, Linux, Windows and Cygwin only][NEW EXPERIMEN‐ TAL SMARTCTL FEATURE]ForNVMedevicestheinformationisobtainedfromtheIdentifyControllerandtheIdentifyNamespacedatastructure.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I've encountered similar problem at Ubuntu 18.04 server, and after consulting with smartmontools support I found out that although smartctl -x /dev/nvme0n1 reads only a part of data from drive but gives an error trying to read actual smart data:
Read NVMe SMART/Health Information failed: NVMe Status 0x6002
But if I use , smartctl -x /dev/nvme0the output is full and without errors.
Unfortunately, it doenst help me with Webmin as I cannot change /dev/nvme0n1 to /dev/nvme0 anyway in webmin SMART module.
Any ideas and workarounds are welcome.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Nope, webmin still identifies it as /dev/nvme0n1
I tried to refresh modules and restart webmin service.
Maybe we can try to hardcode /dev/nvme0 to see if it works, and then see why "IF " doesnt return the correct drive.
I dont fully understand syntax, so I cant do it myself, pls help
Last edit: Dmitry Ogurtsov 2018-11-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As I said before the problem apperars when it comes to actual SMART data, there is a problem in smartmontools process, see my previous link. I'm not sure something can be done on webmin side.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does SMART even make sense for NVMe drives, given that they are solid-state devices that can't fail in the way spinning disks do?
There is a bug in Webmin currently whereby NVMe drives are not recognized at all. This will be fixed in the next release though, and should cause them to show up in the SMART module.
I agree it's likely not necessary. But, smartmontools supports it, smartctl returns data, the Webmin system should use it. It currently deosn't. This seems like a bug.
Can you try out the latest development version of webmin from http://www.webmin.com/devel.html and see if it fixes the issue?
Hi, it has some info:
https://photos.app.goo.gl/ZWXpschku3AGq7WN7
But I would expect something like the output of smartctl:
https://photos.app.goo.gl/7nfENv7rK7QE9JXd6
Perhaps the temps and error status' could be read?
Last edit: Darren Farmer 2018-05-05
Looks like it doesn't think the drive supports SMART. What output do you get if you run :
smartctl -i /dev/nvme0n0and
smartctl -H /dev/nvme0n0sudo smartctl -i /dev/nvme0n1
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-20-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: SAMSUNG MZVLB512HAJQ-000L7
Serial Number: S3TNNE0JB04070
Firmware Version: 4L2QEXA7
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Total NVM Capacity: 512,110,190,592 [512 GB]
Unallocated NVM Capacity: 0
Controller ID: 4
Number of Namespaces: 1
Namespace 1 Size/Capacity: 512,110,190,592 [512 GB]
Namespace 1 Utilization: 404,482,387,968 [404 GB]
Namespace 1 Formatted LBA Size: 512
Local Time is: Sat May 5 14:05:59 2018 PDT
smartctl -H /dev/nvme0n1
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-20-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Looks like the output from
smartctl -iis quite different to what Webmin expects.Does this system have any regular hard drives in it? If so, what output do you get if you run
smartctl -ion one of those devices?No, there are no regular hard drives.
--
Darren Farmer
darren@3farmers.com
http://3farmers.com
On Sat, May 5, 2018 at 3:14 PM, Jamie Cameron jcameron@users.sourceforge.net wrote:
Related
Bugs: #5120
Ok - which linux distribution and version is this?
Ubuntu 18.04 Desktop
Is that the full output from
smartctl -i /dev/nvme0n1? Normally I'd expect to see something in there about whether SMART support is possible, and if it is enabled.Yes, that is the complete output. I think this is the "experimental" part of smartctl support.
If you run
man smartctl, what does it say the-iflag does?Odd that when you run
smartctl -i /dev/nvme0n1it doesn't actually say if SMART is supported or not!Hi
I've encountered similar problem at Ubuntu 18.04 server, and after consulting with smartmontools support I found out that although
smartctl -x /dev/nvme0n1reads only a part of data from drive but gives an error trying to read actual smart data:But if I use ,
smartctl -x /dev/nvme0the output is full and without errors.Unfortunately, it doenst help me with Webmin as I cannot change /dev/nvme0n1 to /dev/nvme0 anyway in webmin SMART module.
Any ideas and workarounds are welcome.
I've checked in a possible fix for this here : https://github.com/webmin/webmin/commit/fe3cf26889c8ccf42a445b183a9a304fb8905bac
Nope, webmin still identifies it as /dev/nvme0n1
I tried to refresh modules and restart webmin service.
Maybe we can try to hardcode /dev/nvme0 to see if it works, and then see why "IF " doesnt return the correct drive.
I dont fully understand syntax, so I cant do it myself, pls help
Last edit: Dmitry Ogurtsov 2018-11-22
Here is the solution from smartmontools support:
https://www.smartmontools.org/ticket/1134
It requres altering smartmontools source code, however.
What exact output do you get if you run
smartctl -i /dev/nvme0?It's the same for both run options:
smartctl -i /dev/nvme0n1:As I said before the problem apperars when it comes to actual SMART data, there is a problem in smartmontools process, see my previous link. I'm not sure something can be done on webmin side.
Odd that the output in both cases doesn't include the usual lines like :
Which version of smartctl do you have installed on your system?
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-39-generic]Do you have any non-NVME drives on this system that you can run
smartctl -ion ?Sure, other non-nvme devices work fine.
The Enabled strings are missing in all nvme outputs, indeed.