Pages

kernel: scsi: host X channel Y id Z lun has a LUN larger than allowed by the host adapter



You gets the below error , because the LUN number  <xxx> is greater than lpfc module parameter lpfc_max_luns , because by default emulex controllers support a maximum of 255 LUNs by default. This may be increased to 65535 ,This issue can be also seen if you have a LUN ID that is greater than 255 even though you have a much fewer number of LUNs than 255.


kernel: scsi: host X channel Y id Z lun<xxx> has a LUN larger than allowed by the host adapter

To check the present lpfc_max_luns value

#cat /sys/module/lpfc/parameters/lpfc_max_luns
255

To change the same follow the below steps

1: Add the following to /etc/modprobe.conf file

#vi /etc/modprobe.conf
----------------------------------------------
.
.
options lpfc lpfc_max_luns=<nnn>
.
.
-----------------------------------------------

Note : <nnn> Max lun required a number between 255 and 65535

2: Rebuild Initrd / Initramfs

RHEL 5

#mkinitrd -f -v /boot/initrd-<uname -r>.img  <uname -r>

RHEL 6

#dracut -f


No comments:

Post a Comment