Skip to contentSkip to conversation

NVMe disks are not available with lsblk

DISCUSSION wenxiong 2 participants 3 messages Feb 14, 2018 – Feb 15, 2018 NVMe

lore
Share & tools
lore

wenxiong

author
#0 lore raw

Hi All,

Somehow with CONFIG_NVME_MULTIPATH enable(4.16.0-rc1), one of my NVME device is not showed up with lsblk command.

I am not familiar with CONFIG_NVME_MULTIPATH enable. I tried to enable multipath in system but still not show up.

For example,/dev/nvme1 device is showed up in nvme list but not with lsblk.

Anyone saw the similar issue? Any suggestion for debugging this issue?

Thanks,
Wendy

# nvme list
Node             SN                   Model                              
       Namespace Usage                      Format           FW Rev
---------------- -------------------- 
---------------------------------------- --------- 
-------------------------- ---------------- --------
/dev/nvme1n1     S3RVNA0J600164       PCIe3 1.6TB NVMe Flash Adapter II 
x8     1         245.76  GB / 245.76  GB      4 KiB +  0 B   MN12MN12
# lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0    40G  0 disk
??sda1    8:1    0     4M  0 part
??sda2    8:2    0   500M  0 part
??sda3    8:3    0    21G  0 part
??sda4    8:4    0     4K  0 part
??sda5    8:5    0     2G  0 part [SWAP]
??sda6    8:6    0  12.6G  0 part /
??sda7    8:7    0   3.9G  0 part /home
#1 lore raw
Quoted 6 lines · wenxiong

Hi All,

Somehow with CONFIG_NVME_MULTIPATH enable(4.16.0-rc1), one of my NVME device is not showed up with lsblk command.

Quoted 6 lines

I am not familiar with CONFIG_NVME_MULTIPATH enable. I tried to enable multipath in system but still not show up.

For example,/dev/nvme1 device is showed up in nvme list but not with lsblk.

Anyone saw the similar issue? Any suggestion for debugging this issue?

Can you chec if you have a this commit:
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=d51f05bfecb299a830897106460bf395be440c0a
for util-linux?

Byte,
Johannes

Signature · 6 lines
Johannes Thumshirn                                          Storage
jthumshirn at suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
author
#2 lore raw
Quoted 14 lines · Johannes Thumshirn
Quoted 13 lines · wenxiong

Hi All,

Somehow with CONFIG_NVME_MULTIPATH enable(4.16.0-rc1), one of my NVME device
is not showed up with lsblk command.

I am not familiar with CONFIG_NVME_MULTIPATH enable. I tried to enable multipath in system but still not show up.

For example,/dev/nvme1 device is showed up in nvme list but not with lsblk.

Quoted 8 lines
Quoted 1 line

Anyone saw the similar issue? Any suggestion for debugging this issue?

Can you chec if you have a this commit:
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=d51f05bfecb299a830897106460bf395be440c0a
for util-linux?

Byte,
Johannes

Hi John,

Thanks! I will try it.

I found an interesting thing today. I have two NVME devices(difference vendors) in my system.

With CONFIG_NVME_MULTIPATH enable(4.16-rc1),

linux-r4t8:/sys/block # ls -l
total 0
lrwxrwxrwx 1 root root 0 Feb 15 10:22 nvme0n1 -> ../devices/pci001e:90/001e:90:00.0/nvme/nvme0/nvme0n1 lrwxrwxrwx 1 root root 0 Feb 15 10:22 nvme1c33n1 -> ../devices/pci001c:70/001c:70:00.0/nvme/nvme1/nvme1c33n1 lrwxrwxrwx 1 root root 0 Feb 15 10:22 nvme1n1 -> ../devices/virtual/nvme-subsystem/nvme-subsys1/nvme1n1 lrwxrwxrwx 1 root root 0 Feb 15 10:22 sda -> ../devices/vio/30000003/host0/target0:0:1/0:0:1:0/block/sda

/dev/nvme1n1 is not showed up in lsblk. We really didn't see nvme1n1 in /sys/block but we saw nvme1c33n1. Probably I need to understand more about NVME_MULTIPATH. who may have documentation for NVME_MULTIPATH?

Without CONFIG_NVME_MULTIPATH disablb(4.16-rc1),

linux-r4t8:/sys/block # ls -ltr
total 0
lrwxrwxrwx 1 root root 0 Feb 15 15:14 nvme1n1 -> ../devices/pci001c:70/001c:70:00.0/nvme/nvme1/nvme1n1 lrwxrwxrwx 1 root root 0 Feb 15 15:14 sda -> ../devices/vio/30000003/host0/target0:0:1/0:0:1:0/block/sda lrwxrwxrwx 1 root root 0 Feb 15 15:14 nvme0n1 -> ../devices/pci001e:90/001e:90:00.0/nvme/nvme0/nvme0n1

Thanks,
Wendy