Discussion:
[Bug 1758205] [NEW] Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-path (NVMe / Bolt ) (systemd?)
(too old to reply)
bugproxy
2018-03-22 23:50:08 UTC
Permalink
Public bug reported:

---Problem Description---

Bolt based NVMe disks (namespaces) are not displayed on lsblk and /dev/disk/by-path
# nvme list
Node SN Model Namespace Usage Format FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 1 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n10 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 10 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n11 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 11 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n12 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 12 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n13 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 13 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n14 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 14 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n15 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 15 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n16 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 16 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n17 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 17 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n18 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 18 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n19 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 19 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n2 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 2 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n20 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 20 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n21 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 21 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n22 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 22 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n23 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 23 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n24 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 24 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n25 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 25 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n26 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 26 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n27 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 27 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n28 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 28 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n29 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 29 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n3 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 3 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n30 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 30 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n31 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 31 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n32 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 32 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n4 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 4 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n5 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 5 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n6 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 6 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n7 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 7 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n8 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 8 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n9 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 9 28.67 GB / 28.67 GB 4 KiB + 0 B MN12MN12

# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 931.5G 0 disk
??sda1 8:1 1 7M 0 part
??sda2 8:2 1 931.5G 0 part /
sdb 8:16 1 931.5G 0 disk
??sdb1 8:17 1 7M 0 part
??sdb2 8:18 1 9.3G 0 part
??sdb3 8:19 1 856.8G 0 part
??sdb4 8:20 1 1K 0 part
??sdb5 8:21 1 1G 0 part
??sdb6 8:22 1 64.4G 0 part
??rhelaa_ltciofvtr--spoon400-swap 253:0 0 4G 0 lvm
??rhelaa_ltciofvtr--spoon400-home 253:1 0 19.8G 0 lvm
??rhelaa_ltciofvtr--spoon400-root 253:2 0 40.6G 0 lvm


---uname output---
# uname -a Linux ltciofvtr-spoon4 4.15.0-10-generic #11-Ubuntu SMP Tue Feb 13 18:21:52 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux

Machine Type = AC922

---Steps to Reproduce---
1> install Ubuntu 18.04 on AC922 system
2> make sure Bolt adapter is present in the system
0003:01:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller 172Xa [144d:a822] (rev 01)

3> create name space using following script
#!/bin/bash

device=/dev/nvme0
echo $device

nvme format $device

nvme set-feature $device -f 0x0b --value=0x0100

nvme delete-ns $device -n 0xFFFFFFFF
sleep 5
nvme list

nvme get-log $device -l 200 -i 4

max=`nvme id-ctrl $device | grep ^nn | awk '{print $NF}'`

for i in $(eval echo {1..$max})
do
echo $i
nvme create-ns $device --nsze=7000000 --ncap=7000000 --flbas=0 --dps=0
nvme attach-ns $device --namespace-id=$i --controllers=`nvme list-ctrl $device | awk -F: '{print $2}'`
sleep 2
nvme get-log $device -l 200 -i 4
sleep 2
done
nvme list

4> run #nvme ns-rescan /dev/nvme0 ; #lsblk

==

After discussion with the owner of lsblk and several maintainers of nvme
developers, we removed slaves and holders for multipath NVME.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/nvme/host/core.c?h=v4.16-rc6&id=8a30ecc6e0ecbb9ae95daf499b2680b885ed0349

Revert "nvme: create 'slaves' and 'holders' entries for hidden cont

I have verified the patch with the latest kernel. Please include above
patch in Ubuntu18.04

** Affects: linux (Ubuntu)
Importance: Undecided
Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
Status: New


** Tags: architecture-ppc64le bugnameltc-164830 severity-medium targetmilestone-inin1804

** Tags added: architecture-ppc64le bugnameltc-164830 severity-medium
targetmilestone-inin1804
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https:
bugproxy
2018-03-22 23:50:21 UTC
Permalink
Default Comment by Bridge

** Attachment added: "sosreport"
https://bugs.launchpad.net/bugs/1758205/+attachment/5087652/+files/sosreport-lsblk.bz164830-20180219062711.tar.xz

** Changed in: ubuntu
Assignee: (unassigned) => Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)

** Package changed: ubuntu => linux (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.
Frank Heimes
2018-03-23 06:09:12 UTC
Permalink
** Also affects: ubuntu-power-systems
Importance: Undecided
Status: New

** Changed in: ubuntu-power-systems
Importance: Undecided => Medium

** Changed in: ubuntu-power-systems
Assignee: (unassigned) => Canonical Kernel Team (canonical-kernel-team)

** Tags added: triage-g

** Changed in: ubuntu-power-systems
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-
Joseph Salisbury
2018-03-27 16:01:31 UTC
Permalink
** Also affects: linux (Ubuntu Bionic)
Importance: Undecided
Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
Status: New

** Changed in: linux (Ubuntu Bionic)
Status: New => In Progress

** Changed in: linux (Ubuntu Bionic)
Importance: Undecided => Medium

** Changed in: linux (Ubuntu Bionic)
Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) => Joseph Salisbury (jsalisbury)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.u
Frank Heimes
2018-03-27 16:22:58 UTC
Permalink
** Changed in: ubuntu-power-systems
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-b
Joseph Salisbury
2018-03-27 19:13:42 UTC
Permalink
I built a test kernel with commit 8a30ecc6e0ecbb9ae95daf499b2680b885ed0349. The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1758205

Can you test this kernel and see if it resolves this bug?

Note, to test this kernel, you need to install both the linux-image and
linux-image-extra .deb packages.

Thanks in advance!
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
htt
bugproxy
2018-04-10 15:50:47 UTC
Permalink
------- Comment From ***@us.ibm.com 2018-04-10 11:41 EDT-------
Naveed, Can you verify the kernel if you want the patch in Ubuntu18.04?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinf
bugproxy
2018-04-30 09:00:31 UTC
Permalink
------- Comment From ***@in.ibm.com 2018-04-30 04:52 EDT-------
***@ltciofvtr-spoon4:~# nvme list
Node SN Model Namespace Usage Format FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 1 737.28 GB / 737.28 GB 4 KiB + 0 B MN12MN12
/dev/nvme0n2 S3RVNA0J600206 PCIe3 1.6TB NVMe Flash Adapter II x8 2 737.28 GB / 737.28 GB 4 KiB + 0 B MN12MN12
***@ltciofvtr-spoon4:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 931.5G 0 disk
??sda1 8:1 1 7M 0 part
??sda2 8:2 1 931.5G 0 part /
sdb 8:16 1 931.5G 0 disk
??sdb1 8:17 1 7M 0 part
??sdb2 8:18 1 9.3G 0 part
??sdb3 8:19 1 856.8G 0 part
??sdb4 8:20 1 1K 0 part
??sdb5 8:21 1 1G 0 part
??sdb6 8:22 1 64.4G 0 part
??rhelaa_ltciofvtr--spoon400-swap 253:0 0 4G 0 lvm
??rhelaa_ltciofvtr--spoon400-home 253:1 0 19.8G 0 lvm
??rhelaa_ltciofvtr--spoon400-root 253:2 0 40.6G 0 lvm
nvme0n1 259:1 0 686.7G 0 disk
nvme0n2 259:3 0 686.7G 0 disk
***@ltciofvtr-spoon4:~# uname -a
Linux ltciofvtr-spoon4 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:14:44 UTC 2018 ppc64le ppc64le ppc64le GNU/Linux
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listin
bugproxy
2018-05-01 15:11:28 UTC
Permalink
------- Comment From ***@in.ibm.com 2018-05-01 11:08 EDT-------
Still namespaces are not visible under /dev/disk/by-path

# ll /dev/disk/by-path/ | grep -i nvme
#
# nvme list | grep nvme | wc -l
32
#
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailm
Joseph Salisbury
2018-05-01 19:24:58 UTC
Permalink
Can you ensure you are booted into the test kernel posted in comment #2?
It should have the following text in the uname -a output: "lp1758205"
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listi
Joseph Salisbury
2018-05-17 20:45:08 UTC
Permalink
Actually commit 8a30ecc6e0ecbb9ae95daf499b2680b885ed0349 is in bionic as
of 4.15.0-13:

1a3abe0db677 Revert "nvme: create 'slaves' and 'holders' entries for
hidden controllers"

git describe --contains 1a3abe0db677
Ubuntu-4.15.0-13.14~323


Can you see if this bug still exists with the latest Bionic kernel, that should be neweter than -13?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1758205

Title:
Ubuntu 18.04 NVMe disks are not displayed on lsblk and /dev/disk/by-
path (NVMe / Bolt ) (systemd?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1758205/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://li
Loading...