Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The scsi_mod has this option max_luns which is the "last scsi LUN". How can I view the current setting and change it?

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
The modinfo command does not give the current settings (values), only the description of the parameters ... – Aleksandr Levchuk Nov 13 '10 at 3: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 3: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 5:28
OK, I'm glad it works for you, and changed the answer accordingly. – Hans Nov 13 '10 at 22:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.