LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2012, 12:56 AM   #1
mohbrsu
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Rep: Reputation: 0
Linux - LUN Recognition


Hi,

I am using Asinux 4.0 (RHEL 6.0 flavor) and allocated 256 LUNs to the server. But I could see only 232 LUNs on the server under "cat /proc/scsi/scsi & ls /dev/mapper".

I have uploaded the configuration details. Kindly look thru and all the help would be of great help to me.

I am using Emulex LPe12002 HBA..

Thanks is Advance,

Regards,
Mohan
Attached Files
File Type: txt Asianux-Emulex.txt (4.7 KB, 30 views)
 
Old 05-12-2012, 11:34 AM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 380

Rep: Reputation: 103Reputation: 103
Mohan, it's been two days, so it doesn't look like anyone that would be an authority on this is going to answer.

I'm not an authority, but I've had similar problems in older versions of Red Hat and with a different SAN HBA and driver. I have no RHEL6 experience yet with this, but...

The questions I would ask are, how many paths do you have to the 256 LUNS? Do you only have 232 /dev/sdX devices showing, or is it up at the DM-Multipath layer that they're missing?

(My guess (without enough information to go on) is that your problem is not with DM-Multipath, but below that.)

If they're missing at the SCSI layer, 'lsscsi' will show that ('lsscsi | wc -l' to count the number of scsi devices plus your LUNS * paths).

See the following info at http://support.bull.com/ols/product/...inst/PrKB11417
Quote:
LUN number supported

The maximum number of LUNs depends on a few factors:

the SCSI kernel module
the adapter module

If you run the command "modinfo scsi_mod" you will see the following output: (For current values, check out the files under /sys/module/scsi_mod/parameters.)

parm: max_luns: Last SCSI LUN (should be between 1 and 2^32-1) (int) This works out at 4,294,967,295, which is large.

parm: max_report_luns: REPORT LUNS maximum number of LUNS received (should be between 1 and 16384) (int) (See http://en.wikipedia.org/wiki/SCSI_Report_LUNs_Command for reference.) The maximum value the SCSI layer will allow when using REPORT LUNS is 16384.

It also depends on the driver being used, as the limit can also be set by the HBA driver, ie, most drivers such as qla2xxx and lpfc have module parameters that allow you to support large numbers of devices: (check the command "modinfo lpfc")

parm: lpcf_max_luns: Maximum allowed LUN (int)

# modinfo lpfc

These values can range from 8, for older parallel SCSI drivers, up to the maximum number of supported SCSI devices for Fibre Channel.
'modinfo scsi_mod' doesn't seem to show too much; 'cat /sys/module/scsi_mod/parameters/max_luns' shows 512 and 'cat /sys/module/scsi_mod/parameters/max_report_luns' shows 511 on my RHEL6.1 and 5.6 systems. 'modinfo lpfc' may show you something.

I would look at the documentation for your Emulex LPe12002 HBA driver to see if there is a parameter there that you can specify if you are missing the low level SCSI devices (the /dev/sdX's).

Hope this helps.
 
Old 05-15-2012, 02:31 AM   #3
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
you can install the pkg #yum install sysfsutils* in rhel6 & using systool command
#systool -c scsi_host -v
#systool -c fc_host -v
#systool -c fc_transport -v

find what u required
 
Old 05-21-2012, 01:41 AM   #4
mohbrsu
LQ Newbie
 
Registered: Jul 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for your kind help.

There was some problem with the storage device. I have deleted the LUNs, RAID groups and recreated. It works fine.

Thanks once again.

~Mohan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing 200 GB LUN with 100 GB LUN in LVM rajaniyer123 Linux - Enterprise 4 03-27-2012 12:32 PM
how to scan a new LUN in Linux? aol.aman Linux - Newbie 2 02-10-2012 08:14 PM
Lun multipathing in linux? aparna8877 Linux - General 6 01-28-2012 11:42 PM
How do I used mapped raw LUN in Linux? patmut Linux - Virtualization and Cloud 2 01-23-2012 01:57 AM
LUN Device Mapping: 2 devices map to same lun DantePasquale Linux - Distributions 0 09-24-2007 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration