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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to