All of lore.kernel.org
 help / color / mirror / Atom feed
From: jvbockel@gmail.com (John Van Bockel)
Subject: Two M.2 NVMe drives with same NQN, one gets removed
Date: Fri, 16 Nov 2018 18:17:22 -0600	[thread overview]
Message-ID: <CAGmwwfeJEVkw2uf1oVoEYgNtuLPRrDqWHXQi-KXTdofsUdH2Dg@mail.gmail.com> (raw)

Hi,

I have an Intel NUC8i7HVK mini-computer and a pair of Intel 760p 1TB M.2 NVMe
SSD drives.  With Fedora 29 and Ubuntu 18.10 (both 4.18 kernels), the
nvme kernel
module insists upon disabling one of the two NVMe drives when it notices that
both have been assigned the same NVMe Qualified Name (NQN).  The one that gets
removed by the nvme module is not always the same.  Whichever remains enabled
performs perfectly.

[root at NUCnFutz ~]# dmesg | grep -i nvme

[    3.372662] nvme nvme0: pci function 0000:72:00.0
[    3.372710] nvme nvme1: pci function 0000:73:00.0
[    3.484113]  nvme0n1: p1 p2 p3 p4
[    3.584531] nvme nvme1: ignoring ctrl due to duplicate subnqn
(nqn.2017-12.org.nvmexpress:uuid:11111111-2222-3333-4444-555555555555).
[    3.584533] nvme nvme1: Removing after probe failure status: -22

If I disable one in the UEFI BIOS, the other works perfectly with Linux.  It
does not matter which I disable, the enabled drive works perfectly.  Windows 10
has no trouble performing I/O against both drives when both are enabled.  I've
tried various combinations of settings in the UEFI to see if I could alter the
result of both being given the same NQN.  Firware versions for both
the NUC8i7hvk
and 760p SSD drives are at the latest 51 and 004C versions, respectively.

With the first M.2 slot enabled in UEFI, "nvme list" & "nvme list-subsys" yield:
/dev/nvme0n1 BTHH81850C8W1P0E INTEL SSDPEKKW010T8 1 1.02 TB / 1.02 TB
512 B + 0 B 004C
nvme-subsys0 - NQN=nqn.2017-12.org.nvmexpress:uuid:11111111-2222-3333-4444-555555555555
+- nvme0 pcie 0000:72:00.0

With the second M.2 slot enabled, "nvme list" & "nvme list-susbsys" produce:
/dev/nvme0n1 BTHH81850BX31P0E INTEL SSDPEKKW010T8 1 1.02 TB / 1.02 TB
512 B + 0 B 004C
nvme-subsys0 - NQN=nqn.2017-12.org.nvmexpress:uuid:11111111-2222-3333-4444-555555555555
+- nvme0 pcie 0000:73:00.0

I did have one boot in which both remained enabled.  Slot one was given a device
name of /dev/nvme0n1 with a 0000:72:00.0 path and slot two was given the
/dev/nvme0n2 name with its 0000:73:00.0 path.  I was excited by this result but
was unable to repeat the result.  I wish I had thought to see if both continued
to share the same NQN in that one fleeting success.

Intel regards the combination of NUC8i7HVK and 2TB 760p NVMe drives as
supported.
Mine are the 1TB version of the 760p drives, so I am deviating ever so slightly.
Also, Intel doesn't claim any responsibility for running Linux on the
NUCs and says
to contact the distribution.  The problem seems to be independent of
distribution,
having tried both Fedora 29 (kernel 4.18.16 & 4.18.18) and Ubuntu
18.10 (4.18.?).

I do not know how the NQN is being assigned to the drives.  Whether
the UEFI BIOS
is to blame or is instead being assigned by a Linux kernel module.  If this is
instead a defect in the UEFI, please let me know and I'll move on to communicate
with Intel Support.

Thanks
jvbockel at gmail.com

             reply	other threads:[~2018-11-17  0:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-17  0:17 John Van Bockel [this message]
2018-11-17  1:33 ` Two M.2 NVMe drives with same NQN, one gets removed Keith Busch
2018-11-18 19:08   ` John Van Bockel
     [not found]   ` <CAGmwwfc=g+4h12qMBvRVJoE66Z70kzzfkabjyxLC=d7LZp627A@mail.gmail.com>
2018-11-19 17:00     ` Keith Busch
2018-11-21 21:19       ` John Van Bockel
2018-11-26 13:38 James Dingwall
2018-11-26 15:31 ` Keith Busch
2018-11-27  7:54   ` Christoph Hellwig
2018-11-27 10:25     ` James Dingwall
2018-11-27 15:01       ` Keith Busch
2018-11-30 11:50         ` James Dingwall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGmwwfeJEVkw2uf1oVoEYgNtuLPRrDqWHXQi-KXTdofsUdH2Dg@mail.gmail.com \
    --to=jvbockel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.