On Mon, 2017-02-27 at 22:58 +0000, Will Del Genio wrote:
I’m currently working on testing the hotplug support for local PCIe
connected NVMe drives (P3700s and 3600s at the moment) on linux.
(Linux sb1 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC
2017 x86_64 x86_64 x86_64 GNU/Linux)
Right now spdk requires the setup script to be manually run which
unbinds the nvme driver and binds the uio_pci_generic driver. Is
there a way to have that happen automatically on hotplugging of an
nvme device? From what I understand it could be done via script
called by a udev rule.
You can change which devices the kernel assigns to which drivers by
writing to /sys/bus/pci/drivers/.../new_id and
If you change NVMe devices to automatically be bound to
uio_pci_generic, then SPDK will pick them up in the next
call to spdk_nvme_probe().
Is that the right way to handle it? Are there any other plans for
hotplug support moving forward I should be aware of?
Thanks for the help,
Will Del Genio
SPDK mailing list