The fix is available in the at least the 4.18 branch:
https://kernel.ubuntu.com/git/ubuntu/ubuntu-
bionic.git/log/drivers/nvme/host?h=Ubuntu-hwe-4.18.0-21.22_18.04.1
This is good enough for our needs so closing the issue.
** Changed in: linux (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1803692
Title:
bionic 4.15 nvme regression from trusty 4.4 with two identical devices
Status in linux package in Ubuntu:
Fix Released
Bug description:
I have a system containing two identical nvme devices. When booting a
trusty PXE image with kernel 4.4.0-38-generic both devices are
detected and available:
# nvme id-ctrl /dev/nvme0
NVME Identify Controller:
vid : 0x8086
ssvid : 0x8086
sn : BTHH82250N1X1P0E
mn : INTEL SSDPEKKF010T8L
fr : L08P
...
# nvme id-ctrl /dev/nvme1
NVME Identify Controller:
vid : 0x8086
ssvid : 0x8086
sn : BTHH82250N261P0E
mn : INTEL SSDPEKKF010T8L
fr : L08P
...
# dmesg | grep nvme
[ 5.106516] nvme0n1: p1 p2 p3 p4
[ 5.106615] nvme1n1: p1 p2
After booting a bionic PXE image based on 4.15.0-38-generic only the
first nvme device is enabled, the second is detected but disabled as
both devices have the same nqn:
nvme nvme1: ignoring ctrl due to duplicate subnqn
(nqn.2017-12.org.nvmeexpress:uuid:11111111-2222-3333-4444-555555555555).
nvme nvme1: Removing after probe failure status: -22
The nqn string is found in the device firmware rather than being generated by
Linux but there does not seem to be an operation in nvme-cli to change this.
(It is also questionable if the device firmware value is correct according to
section 7.9 of
https://nvmexpress.org/wp-content/uploads/NVM-Express-1_3a-20171024_ratified.pdf.
My reading of the specification is that the string should start
nqn.2014-08.org.nvmeexpress:uuid: with a random UUID, and I assume a random
UUID per device.)
The Windows 10 installation provided on the system did not have any
problems operating with both devices.
Looking at the kernel nvme driver history suggests that in 4.4 it
didn't care or validate the nqn but now it does there is a problem.
Our typical installation is a zpool mirror across two devices and this
is preventing us moving from trusty to bionic.
This is a report of a similar issue:
https://ask.fedoraproject.org/en/question/128422/one-of-two-
identical-m2-nvme-drives-disabling-due-to-same-nqn/
It may be worth noting that if the nvme device does not provide an nqn then
it seems one is generated based on the device serial number so a system with
two Samsung MZVLB256HAHQ devices works fine.
---
ApportVersion: 2.14.1-0ubuntu3.21
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: ubuntu 3440 F.... pulseaudio
CasperVersion: 1.340.2
CurrentDmesg: [ 151.172010] init: plymouth-stop pre-start process (4137)
terminated with status 1
DistroRelease: Ubuntu 14.04
IwConfig:
lo no wireless extensions.
eth1 no wireless extensions.
eth0 no wireless extensions.
LiveMediaBuild: Ubuntu 14.04.5 LTS "Trusty Tahr" - Release amd64 (20160803)
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 89e5:1001
Bus 001 Device 002: ID 17ef:6099 Lenovo
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 30C8S04Y00
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
Package: linux (not installed)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcFB: 0 EFI VGA
ProcKernelCmdLine: us1931.efi root=/dev/nfs boot=casper netboot=nfs
nfsroot=192.168.10.150:/srv/boot/us1931 locale=en_GB.UTF-8 keyb=gb
mirror/country=GB ip=dhcp zinstall= BOOTIF=01-30-9c-23-cb-2a-46 toram
ProcVersionSignature: Ubuntu 4.4.0-38.57~14.04.1-generic 4.4.19
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No
PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
linux-restricted-modules-4.4.0-38-generic N/A
linux-backports-modules-4.4.0-38-generic N/A
linux-firmware 1.127.22
RfKill:
Tags: trusty
Uname: Linux 4.4.0-38-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
_MarkForUpload: True
dmi.bios.date: 08/17/2018
dmi.bios.vendor: LENOVO
dmi.bios.version: M1VKT1BA
dmi.board.name: 3138
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN 3305152508085
dmi.chassis.type: 3
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias:
dmi:bvnLENOVO:bvrM1VKT1BA:bd08/17/2018:svnLENOVO:pn30C8S04Y00:pvrThinkStationP330:rvnLENOVO:rn3138:rvrSDK0J40697WIN3305152508085:cvnLENOVO:ct3:cvrNone:
dmi.product.name: 30C8S04Y00
dmi.product.version: ThinkStation P330
dmi.sys.vendor: LENOVO
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: ubuntu 1989 F.... pulseaudio
CasperVersion: 1.394
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.04
LiveMediaBuild: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 89e5:1001
Bus 001 Device 002: ID 17ef:6099 Lenovo
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 30C8S04Y00
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
Package: linux (not installed)
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: bionic-sysprep.efi root=/dev/nfs boot=casper netboot=nfs
nfsroot=192.168.10.150:/srv/boot/zynstra-bionic locale=en_GB.UTF-8 keyb=gb
mirror/country=GB ip=dhcp BOOTIF=01-30-9c-23-cb-2a-46 toram
ProcVersionSignature: Ubuntu 4.15.0-38.41-generic 4.15.18
RelatedPackageVersions:
linux-restricted-modules-4.15.0-38-generic N/A
linux-backports-modules-4.15.0-38-generic N/A
linux-firmware 1.173.1
RfKill:
Tags: bionic
Uname: Linux 4.15.0-38-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 08/17/2018
dmi.bios.vendor: LENOVO
dmi.bios.version: M1VKT1BA
dmi.board.name: 3138
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN 3305152508085
dmi.chassis.type: 3
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias:
dmi:bvnLENOVO:bvrM1VKT1BA:bd08/17/2018:svnLENOVO:pn30C8S04Y00:pvrThinkStationP330:rvnLENOVO:rn3138:rvrSDK0J40697WIN3305152508085:cvnLENOVO:ct3:cvrNone:
dmi.product.family: ThinkStation P330
dmi.product.name: 30C8S04Y00
dmi.product.version: ThinkStation P330
dmi.sys.vendor: LENOVO
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803692/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp