How do I setup multiple LUNs on Red Hat Enterprise Linux?

Solution Verified - Updated -

Issue

  • How do I setup multiple LUNs on Red Hat Enterprise Linux?
  • receive this message:

    kernel: scsi: On host 3 channel 0 id 1 only 511 (max_scsi_report_luns) of 522 luns reported, 
                     try increasing max_scsi_report_luns
    
  • need to see more than the default setup of 511 luns (RHEL5,6)

  • need to see more than the default setup of 16,383 luns (RHEL7)
  • how do I configure max_luns and max_report_luns for the scsi_mod kernel module?
  • In releases of RHEL 5 and prior, the scsi_mod module parameters such as, max_luns and max_report_luns could be changed by modifying /etc/modprobe.conf, how do I do the same in RHEL 6 and RHEL 7?
  • How to increase the max_luns parameter?

Environment

  • Red Hat Enterprise Linux
    • Red Hat Enterpirse Linux 8 and later kernels
    • Red Hat Enterprise Linux 7
    • Red Hat Enterprise Linux 6
    • Red Hat Enterprise Linux 5
    • Red Hat Enterprise Linux 4
    • Red Hat Enterprise Linux 3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content