RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1695339 - lshw does not list NVMe storage devices as "disk" nodes
Summary: lshw does not list NVMe storage devices as "disk" nodes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lshw
Version: 7.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 7.7
Assignee: lijiang
QA Contact: Jeff Bastian
URL:
Whiteboard:
Depends On:
Blocks: 1711208
TreeView+ depends on / blocked
 
Reported: 2019-04-02 20:49 UTC by Bryan Gurney
Modified: 2020-03-31 19:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1695343 (view as bug list)
Environment:
Last Closed: 2020-03-31 19:59:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1095 0 None None None 2020-03-31 19:59:43 UTC

Description Bryan Gurney 2019-04-02 20:49:40 UTC
Description of problem:
lshw currently does not list NVMe solid state drives as "disk" nodes.

Currently, for each NVMe device, lshw shows the "storage" node, which details the capabilities of the NVMe "controller", but it does not show a "disk" node, which details the size of the device.  This means that users of lshw (including beaker) will not be able to determine the device's size.

Version-Release number of selected component (if applicable):
lshw-B.02.18-12.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install RHEL 7.6 on a system with at least one NVMe solid state drive.

Actual results:
lshw lists each NVMe device as a "storage" node under "pci", but there is no corresponding "disk" node.

Expected results:
lshw lists each NVMe device as a "storage" node under "pci", and each NVMe device has a corresponding "disk" node.

Additional info:

Here's a quick example of the current results:

Serial ATA storage device with "disk" node, for a Samsung 850 Pro SSD (size: 256 GB):

        *-sata:0
             description: SATA controller
             product: C620 Series Chipset Family SSATA Controller [AHCI mode]
             vendor: Intel Corporation
             physical id: 11.5
             bus info: pci@0000:00:11.5
             logical name: scsi0
             version: 09
             width: 32 bits
             clock: 66MHz
             capabilities: sata msi pm ahci_1.0 bus_master cap_list emulated
             configuration: driver=ahci latency=0
             resources: irq:39 memory:9d206000-9d207fff memory:9d209000-9d2090ff
 ioport:3070(size=8) ioport:3060(size=4) ioport:3020(size=32) memory:9d180000-9d
1fffff
           *-disk
                description: ATA Disk
                product: Samsung SSD 850
                physical id: 0.0.0
                bus info: scsi@0:0.0.0
                logical name: /dev/sda
                version: 4B6Q
                serial: XXXXXXXXXXXXXXX
                size: 238GiB (256GB)
                capabilities: partitioned partitioned:dos
                configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=00006543


NVMe solid state drive without a "disk" node, for an Intel Optane 900P (size: 280 GB):

     *-pci:4
          description: PCI bridge
          product: Sky Lake-E PCI Express Root Port A
          vendor: Intel Corporation
          physical id: 104
          bus info: pci@0000:5d:00.0
          version: 04
          width: 32 bits
          clock: 33MHz
          capabilities: pci msi pciexpress pm normal_decode bus_master cap_list
          configuration: driver=pcieport
          resources: irq:32 memory:c5e00000-c5efffff
        *-storage
             description: Non-Volatile memory controller
             product: Optane SSD 900P Series
             vendor: Intel Corporation
             physical id: 0
             bus info: pci@0000:5e:00.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: storage pm msix pciexpress nvm_express bus_master cap_list rom
             configuration: driver=nvme latency=0
             resources: irq:40 memory:c5e10000-c5e13fff memory:c5e00000-c5e0ffff

Comment 3 lijiang 2019-08-02 13:40:04 UTC
Here is a build packages, please refer to the following link:
http://brew-task-repos.usersys.redhat.com/repos/official/lshw/B.02.18/14.el7/

Thanks.

Comment 14 Jeff Bastian 2020-01-03 19:16:42 UTC
This is partially fixed for RHEL-7.8: NVMe drives now have an nvme node in lshw output as shown below.  The node is still missing the disk size, though.  More work is needed upstream to fix this.  We're tracking this in bug 1763316 for RHEL8; it can possibly be backported to RHEL7 when it's ready.  I'll move this bug to VERIFIED and we'll continue the work in bug 1763316.


[root@dell-per820-02 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.8 Beta (Maipo)

[root@dell-per820-02 ~]# uname -r
3.10.0-1121.el7.x86_64

[root@dell-per820-02 ~]# lsblk
NAME                           MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                              8:0    0 272.3G  0 disk 
├─sda1                           8:1    0     1G  0 part /boot
└─sda2                           8:2    0 271.3G  0 part 
  ├─rhel_dell--per820--02-root 253:0    0    50G  0 lvm  /
  └─rhel_dell--per820--02-home 253:2    0 562.4G  0 lvm  /home
sr0                             11:0    1  1024M  0 rom  
nvme0n1                        259:0    0 372.6G  0 disk 
└─nvme0n1p1                    259:1    0 372.6G  0 part 
  ├─rhel_dell--per820--02-swap 253:1    0  31.4G  0 lvm  [SWAP]
  └─rhel_dell--per820--02-home 253:2    0 562.4G  0 lvm  /home

[root@dell-per820-02 ~]# rpm -q lshw
lshw-B.02.18-14.el7.x86_64

[root@dell-per820-02 ~]# lshw
dell-per820-02.khw.lab.eng.bos.redhat.com
    description: Rack Mount Chassis
    product: PowerEdge R820 (SKU=NotProvided;ModelName=PowerEdge R820)
    vendor: Dell Inc.
    ...
    ...
           *-pci:2
                description: PCI bridge
                product: PEX 8632 32-lane, 12-Port PCI Express Gen 2 (5.0 GT/s) Switch
                vendor: PLX Technology, Inc.
                physical id: 6
                bus info: pci@0000:45:06.0
                version: bb
                width: 32 bits
                clock: 33MHz
                capabilities: pci pm msi pciexpress normal_decode bus_master cap_list
                configuration: driver=pcieport
                resources: irq:45 memory:d1700000-d17fffff
              *-nvme
                   description: Non-Volatile memory controller
                   product: NVMe SSD Controller 171X
                   vendor: Samsung Electronics Co Ltd
                   physical id: 0
                   bus info: pci@0000:48:00.0
                   version: 03
                   width: 64 bits
                   clock: 33MHz
                   capabilities: nvme pm msi msix pciexpress nvm_express bus_master cap_list
                   configuration: driver=nvme latency=0
                   resources: irq:35 memory:d17fc000-d17fffff
           *-pci:3
                description: PCI bridge
                ...
                ...

Comment 16 errata-xmlrpc 2020-03-31 19:59:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1095


Note You need to log in before you can comment on or make changes to this bug.