ceph-iscsi-config icon indicating copy to clipboard operation
ceph-iscsi-config copied to clipboard

Restrict the number of LUNs to 256

Open dillaman opened this issue 7 years ago • 2 comments

This is the maximum supported by Linux and defining more than 256 images results in the rbd-target-gw crashing and burning

dillaman avatar Sep 14 '17 14:09 dillaman

One correction to what I wrote in the email to QE.

In older distro kernels like in RHEL 7 there is a hard coded limit of 256 in the kernel target layer. There is also a limit in some versions of rtslib.

In the current upstream kernel and rtslib we are probably limited by the system. There is a SCSI spec limit due to the LUN being limited to 8 bytes. I think in the target code though we use a uint32_t in some places so that is probably the max in theory. I think we would hit some memory or other resource limit before getting 2^32 LUNs.

mikechristie avatar Sep 14 '17 22:09 mikechristie

There are two limits here - one is the number of storage objects defined to the target, and the other the number of SO's masked to a client. It sounds like for now we should make them the same - but the goal would be to lift the SO's per target to something like 4096

pcuzner avatar Sep 14 '17 22:09 pcuzner