Ubuntu 18.04 NVMe disks are not displayed on lsblk, kernel-bug-exists-upstream

Bug #1778765 reported by Jun Kong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Medium
Unassigned
Bionic
Confirmed
Medium
Unassigned

Bug Description

Following the suggestion #12 on bug 1758205 to raise a new one

I have updated kernel to 4.15.0-23-generic and still see the problem reported in 1758205:

root@localhost:/sys/block# nvme list
Node SN Model Namespace Usage Format FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1 CJH0020005EB HUSMR7616BDP301 1 1.92 TB / 1.92 TB 512 B + 8 B KNECD105

root@localhost:/sys/block# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 476M 0 part /boot
├─sda2 8:2 0 30.8G 0 part [SWAP]
└─sda3 8:3 0 434.6G 0 part /
sdb 8:16 0 931.5G 0 disk
sr0 11:0 1 1024M 0 rom
root@localhost:/sys/block# ls -l /sys/block/
total 0
lrwxrwxrwx 1 root root 0 Jun 25 15:05 loop0 -> ../devices/virtual/block/loop0
lrwxrwxrwx 1 root root 0 Jun 25 15:05 loop1 -> ../devices/virtual/block/loop1
lrwxrwxrwx 1 root root 0 Jun 25 15:05 loop2 -> ../devices/virtual/block/loop2
lrwxrwxrwx 1 root root 0 Jun 25 15:05 loop3 -> ../devices/virtual/block/loop3
lrwxrwxrwx 1 root root 0 Jun 25 15:05 loop4 -> ../devices/virtual/block/loop4
lrwxrwxrwx 1 root root 0 Jun 25 15:05 loop5 -> ../devices/virtual/block/loop5
lrwxrwxrwx 1 root root 0 Jun 25 15:05 loop6 -> ../devices/virtual/block/loop6
lrwxrwxrwx 1 root root 0 Jun 25 15:05 loop7 -> ../devices/virtual/block/loop7
lrwxrwxrwx 1 root root 0 Jun 25 15:05 nvme0n1 -> ../devices/pci0000:00/0000:00:01.1/0000:02:00.0/nvme/nvme0/nvme0n1
lrwxrwxrwx 1 root root 0 Jun 25 15:05 sda -> ../devices/pci0000:00/0000:00:1f.2/ata3/host2/target2:0:0/2:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Jun 25 15:05 sdb -> ../devices/pci0000:00/0000:00:1f.2/ata4/host3/target3:0:0/3:0:0:0/block/sdb
lrwxrwxrwx 1 root root 0 Jun 25 15:05 sr0 -> ../devices/pci0000:00/0000:00:1f.2/ata5/host4/target4:0:0/4:0:0:0/block/sr0
root@localhost:/sys/block# lspci -nn | grep -i Non
02:00.0 Non-Volatile memory controller [0108]: HGST, Inc. Ultrastar SN200 Series NVMe SSD [1c58:0023] (rev 02)
root@localhost:/sys/block# blockdev --getsize64 /dev/nvme0n1
0
root@localhost:/sys/block#

# cat /proc/version_signature
Ubuntu 4.15.0-23.25-generic 4.15.18

# dmidecode -t 2
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.6 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
        Manufacturer: ASUSTeK Computer INC.
        Product Name: P8Z68-V PRO
        Version: Rev 1.xx
        Serial Number: 110104170000300
        Asset Tag: To be filled by O.E.M.
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: To be filled by O.E.M.
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1778765

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: bionic
Revision history for this message
Jun Kong (jknonub) wrote : Re: Ubuntu 18.04 NVMe disks are not displayed on lsblk

Unable to run this command

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Jun Kong (jknonub) wrote :

precisely, its size is 0 and hence lsblk ignores it without option -a.

# lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 0 loop
loop1 7:1 0 0 loop
loop2 7:2 0 0 loop
loop3 7:3 0 0 loop
loop4 7:4 0 0 loop
loop5 7:5 0 0 loop
loop6 7:6 0 0 loop
loop7 7:7 0 0 loop
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 476M 0 part /boot
├─sda2 8:2 0 30.8G 0 part [SWAP]
└─sda3 8:3 0 434.6G 0 part /
sdb 8:16 0 931.5G 0 disk
sr0 11:0 1 1024M 0 rom
nvme0n1 259:0 0 0 disk

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.18 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.18-rc2

Changed in linux (Ubuntu):
importance: Undecided → Medium
Changed in linux (Ubuntu Bionic):
importance: Undecided → Medium
status: New → Confirmed
status: Confirmed → Incomplete
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-da-key
Revision history for this message
Jun Kong (jknonub) wrote :

Tried that rc2 kernel, still the same problem.

root@localhost:~# lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 0 loop
loop1 7:1 0 0 loop
loop2 7:2 0 0 loop
loop3 7:3 0 0 loop
loop4 7:4 0 0 loop
loop5 7:5 0 0 loop
loop6 7:6 0 0 loop
loop7 7:7 0 0 loop
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 476M 0 part /boot
├─sda2 8:2 0 30.8G 0 part [SWAP]
└─sda3 8:3 0 434.6G 0 part /
sdb 8:16 0 931.5G 0 disk
sr0 11:0 1 1024M 0 rom
nvme0n1 259:0 0 0 disk
root@localhost:~# nvme list
Node SN Model Namespace Usage Format FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1 CJH0020005EB HUSMR7616BDP301 1 1.92 TB / 1.92 TB 512 B + 8 B KNECD105

root@localhost:~# uname -sr
Linux 4.18.0-041800rc2-generic
root@localhost:~#

Changed in linux (Ubuntu Bionic):
status: Incomplete → Confirmed
Jun Kong (jknonub)
summary: - Ubuntu 18.04 NVMe disks are not displayed on lsblk
+ Ubuntu 18.04 NVMe disks are not displayed on lsblk, kernel-bug-exists-
+ upstream
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.