The scsi_mod has this option max_luns which is the "last scsi LUN". How can I view the current setting and change it?
View current settings:
If not on your Debian system yet, you can install systool with
-If you don't have the file /etc/modprobe.d/local, create it.
n is the number you want to have.
Reboot, or remove (modprobe -r) and reinsert (modprobe) the module, and after that check with modinfo.