large number of hot plug disks
pkrempa at redhat.com
Tue Sep 8 12:38:17 UTC 2020
On Tue, Sep 08, 2020 at 08:19:21 -0400, Alexander Wels wrote:
> I am working on a project, and one of the requirements is that I can
> hotplug a large number of disks. Think several dozens to potentially 100+.
> The guest OS will be some linux flavor so it should have no problem with a
> large number of disks.
> During my experimentation I quickly ran into the "No available PCI slots"
> limit. I found https://libvirt.org/pci-hotplug.html explaining to me why
> the limit is there. Now I could add a bunch of pcie-root-ports ahead of
> time, but there is likely a limit to that as well. So before I go down some
> crazy paths, I figured I would ask on here if there is a better plan than
> adding a bunch of root ports for adding a large number of hotplugged disks?
I strongly suggest using a virtio-scsi controller and plugging disks
into it. You can have a fairly large number of LUNs per controller, so
that will severely decrease the amount of required PCI slots. You can
obviously add more controllers if you need even more LUNs.
More information about the libvir-list