All of lore.kernel.org
 help / color / mirror / Atom feed
* Disable Native NVMe Multipath Support
@ 2018-04-16 20:52 Gruher, Joseph R
  2018-04-17 20:52 ` Mike Snitzer
  0 siblings, 1 reply; 2+ messages in thread
From: Gruher, Joseph R @ 2018-04-16 20:52 UTC (permalink / raw)


Hi everyone-

I'm doing some testing with the native NVMe multipath support in an NVMeoF environment.  In Ubuntu with kernel 4.15.15 it seems to be enabled by default and "just works" without taking any steps to set it up.  If I connect the same namespace from my target to my initiator using two different network paths it results in a single namespace on the initiator.  Then I can fail either network path and still run IO to the namespace.

I'd like to now set up dm-multipath for comparison.  It looks like I'll need to disable the native NVMe multipath support to do this, otherwise I can't connect the same namespace via two paths and have it show up on the initiator as two separate namespaces for dm-multipath to use.  Is there an quick and easy way to do disable the native NVMe multipath support, or is rebuilding the kernel with CONFIG_NVME_MULTIPATH=N the only option?

Thanks,
Joe

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Disable Native NVMe Multipath Support
  2018-04-16 20:52 Disable Native NVMe Multipath Support Gruher, Joseph R
@ 2018-04-17 20:52 ` Mike Snitzer
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Snitzer @ 2018-04-17 20:52 UTC (permalink / raw)


On Mon, Apr 16 2018 at  4:52pm -0400,
Gruher, Joseph R <joseph.r.gruher@intel.com> wrote:

> Hi everyone-
> 
> I'm doing some testing with the native NVMe multipath support in an
> NVMeoF environment.  In Ubuntu with kernel 4.15.15 it seems to be
> enabled by default and "just works" without taking any steps to set it
> up.  If I connect the same namespace from my target to my initiator
> using two different network paths it results in a single namespace on
> the initiator.  Then I can fail either network path and still run IO
> to the namespace.
> 
> I'd like to now set up dm-multipath for comparison.  It looks like
> I'll need to disable the native NVMe multipath support to do this,
> otherwise I can't connect the same namespace via two paths and have it
> show up on the initiator as two separate namespaces for dm-multipath
> to use.  Is there an quick and easy way to do disable the native NVMe
> multipath support, or is rebuilding the kernel with
> CONFIG_NVME_MULTIPATH=N the only option?

Current upstream kernel needs to be rebuilt with CONFIG_NVME_MULTIPATH=N

AFAIK Keith Busch is working on a patch to fix crashes when multiple
namespaces are created with an nvme_core that is compiled for multipath
but disabled at module load, e.g.: modprobe nvme_core multipath=N (or
nvme_core.multipath=N on kernel commandline)

See:
http://lists.infradead.org/pipermail/linux-nvme/2018-April/016765.html

FYI, when testing DM multipath ontop of NVMe you should use
dm-multipath's table argument: queue_mode=bio

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-17 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-16 20:52 Disable Native NVMe Multipath Support Gruher, Joseph R
2018-04-17 20:52 ` Mike Snitzer

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.