The scsi_mod has this option max_luns which is the "last scsi LUN". How can I view the current setting and change it?
Asked
Active
Viewed 895 times
1 Answers
1
View current settings:
#systool -v -m scsi_mod
If not on your Debian system yet, you can install systool with
#apt-get install sysfsutils.
-If you don't have the file /etc/modprobe.d/local, create it.
-Add the following line:
options scsi_mod max_luns=n
n is the number you want to have.
Reboot, or remove (modprobe -r) and reinsert (modprobe) the module, and after that check with modinfo.

Hans
- 160
- 3
-
The modinfo command does not give the current settings (values), only the description of the parameters ... – Aleksandr Levchuk Nov 13 '10 at 03:46
-
You're right, I overlooked said issue. Maybe try "systool -m scsi_mod"? It's provided in the package "sysfsutils" it seems. – Hans Nov 13 '10 at 03:58
-
Yes, that works. The command is "systool -v -m scsi_mod" with the -v option. Please edit you answer so others won't have to read the comments. Thanks for your help! -Alex – Aleksandr Levchuk Nov 13 '10 at 05:28
-
OK, I'm glad it works for you, and changed the answer accordingly. – Hans Nov 13 '10 at 22:28