Menu

#5120 SMART Drive Information Not Available for NVMe drives, Ubuntu 18.04

1.880
open
nobody
5
2020-02-12
2018-05-03
No

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.

Related

Bugs: #5120

Discussion

1 2 > >> (Page 1 of 2)
  • Jamie Cameron

    Jamie Cameron - 2018-05-03

    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.

     
  • Darren Farmer

    Darren Farmer - 2018-05-04

    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.

     
  • Jamie Cameron

    Jamie Cameron - 2018-05-05

    Can you try out the latest development version of webmin from http://www.webmin.com/devel.html and see if it fixes the issue?

     
  • Jamie Cameron

    Jamie Cameron - 2018-05-05

    Looks like it doesn't think the drive supports SMART. What output do you get if you run :

    smartctl -i /dev/nvme0n0

    and

    smartctl -H /dev/nvme0n0

     
    • Darren Farmer

      Darren Farmer - 2018-05-05

      sudo 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

       
  • Jamie Cameron

    Jamie Cameron - 2018-05-05

    Looks like the output from smartctl -i is 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 -i on one of those devices?

     
    • Darren Farmer

      Darren Farmer - 2018-05-05

      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:

      Looks like the output from smartctl -i is 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 -i on one of those devices?


      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.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/webadmin/bugs/5120/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #5120

  • Jamie Cameron

    Jamie Cameron - 2018-05-06

    Ok - which linux distribution and version is this?

     
    • Darren Farmer

      Darren Farmer - 2018-05-06

      Ubuntu 18.04 Desktop

       
  • Jamie Cameron

    Jamie Cameron - 2018-05-07

    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.

     
    • Darren Farmer

      Darren Farmer - 2018-05-07

      Yes, that is the complete output. I think this is the "experimental" part of smartctl support.

       
  • Jamie Cameron

    Jamie Cameron - 2018-05-07

    If you run man smartctl , what does it say the -i flag does?

     
    • Darren Farmer

      Darren Farmer - 2018-05-07
         -i, --info
                Prints the device model number, serial number, firmware version,
                and  ATA  Standard  version/revision  information.   Says if the
                device supports SMART, and if so, whether SMART support is  cur
                rently  enabled  or  disabled.   If  the device supports Logical
                Block Address mode (LBA mode) print current user drive  capacity
                in bytes. (If drive is has a user protected area reserved, or is
                "clipped", this may be smaller than the potential maximum  drive
                capacity.)  Indicates if the drive is in the smartmontools data
                base (see ´-v´ options below).  If so, the  drive  model  family
                may also be printed. If ´-n´ (see below) is specified, the power
                mode of the drive is printed.
                [NVMe] [FreeBSD, Linux, Windows and Cygwin only] [NEW EXPERIMEN‐
                TAL  SMARTCTL  FEATURE]  For  NVMe  devices  the  information is
                obtained from the Identify Controller and the Identify Namespace
                data structure.
      
       
  • Jamie Cameron

    Jamie Cameron - 2018-05-09

    Odd that when you run smartctl -i /dev/nvme0n1 it doesn't actually say if SMART is supported or not!

     
  • Dmitry Ogurtsov

    Dmitry Ogurtsov - 2018-11-21

    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.

     
  • Jamie Cameron

    Jamie Cameron - 2018-11-22
     
    • Dmitry Ogurtsov

      Dmitry Ogurtsov - 2018-11-22

      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
  • Dmitry Ogurtsov

    Dmitry Ogurtsov - 2018-11-24

    Here is the solution from smartmontools support:
    https://www.smartmontools.org/ticket/1134
    It requres altering smartmontools source code, however.

     
  • Jamie Cameron

    Jamie Cameron - 2018-11-24

    What exact output do you get if you run smartctl -i /dev/nvme0 ?

     
  • Dmitry Ogurtsov

    Dmitry Ogurtsov - 2018-11-24

    It's the same for both run options: smartctl -i /dev/nvme0n1:

    sider@nas:~$ sudo smartctl -i /dev/nvme0
    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-39-generic] (local build)
    Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF INFORMATION SECTION ===
    Model Number:                       TOSHIBA-RC100
    Serial Number:                      48APA0S7PW6S
    Firmware Version:                   ADRA0101
    PCI Vendor/Subsystem ID:            0x1179
    IEEE OUI Identifier:                0x00080d
    Controller ID:                      0
    Number of Namespaces:               1
    Namespace 1 Size/Capacity:          240057409536 [240 GB]
    Namespace 1 Formatted LBA Size:     512
    Local Time is:                      Sat Nov 24 23:29:16 2018 MSK
    
    sider@nas:~$ sudo smartctl -i /dev/nvme0n1
    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-39-generic] (local build)
    Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF INFORMATION SECTION ===
    Model Number:                       TOSHIBA-RC100
    Serial Number:                      48APA0S7PW6S
    Firmware Version:                   ADRA0101
    PCI Vendor/Subsystem ID:            0x1179
    IEEE OUI Identifier:                0x00080d
    Controller ID:                      0
    Number of Namespaces:               1
    Namespace 1 Size/Capacity:          240057409536 [240 GB]
    Namespace 1 Formatted LBA Size:     512
    Local Time is:                      Sat Nov 24 23:29:34 2018 MSK
    

    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.

     
  • Jamie Cameron

    Jamie Cameron - 2018-11-25

    Odd that the output in both cases doesn't include the usual lines like :

    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    

    Which version of smartctl do you have installed on your system?

     
  • Dmitry Ogurtsov

    Dmitry Ogurtsov - 2018-11-25

    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-39-generic]

     
  • Jamie Cameron

    Jamie Cameron - 2018-11-25

    Do you have any non-NVME drives on this system that you can run smartctl -i on ?

     
  • Dmitry Ogurtsov

    Dmitry Ogurtsov - 2018-11-25

    Sure, other non-nvme devices work fine.

    sider@nas:~$ sudo smartctl -i /dev/sda
    smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-39-generic] (local build)
    Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF INFORMATION SECTION ===
    Device Model:     WDC WD80EFAX-68KNBN0
    Serial Number:    *******
    LU WWN Device Id: 5 000cca 099c28d6b
    Firmware Version: 81.00A81
    User Capacity:    8001563222016 bytes [8,00 TB]
    Sector Sizes:     512 bytes logical, 4096 bytes physical
    Rotation Rate:    5400 rpm
    Form Factor:      3.5 inches
    Device is:        Not in smartctl database [for details use: -P showall]
    ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
    SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
    Local Time is:    Sun Nov 25 19:50:47 2018 MSK
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    

    The Enabled strings are missing in all nvme outputs, indeed.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.