Skip to contentSkip to conversation

Number of devices that SCSI can support

DISCUSSION Vinay Venkataraghavan 1 participant 1 message Jan 9, 2008 SCSI

lore
Share & tools
lore
#0 lore raw

Thank you all for responding. While I agree that the scsi stack in linux should be capable of supporting many targets, I still see this problem all the time. It seemed to consistently happen on /dev/sdbm which corresponds to the 65th lun or target.

My SAN configuration consists of: 4 targets with 16 luns each = 4 * 16 = 64 total devices.

But I ran another test by changing my targets information and saw this issue for /dev/sdbm

As mentioned on this thread, I am attaching some more information. Looks like SCSI inquiry is going through, and the inquiry succeeds. As you can see from the attached message below the /sys/class/scsi_device file also gets created:
at /sys/class/scsi_device/1\:0\:3\:15/device/

and below this we find all the related entries such as:

block/          dump            queue_depth     state
delete          generic/        rescan          timeout
detach_state    model           rev             type
device_blocked  power/          scsi_level      vendor

So from this information it looks like the scsi mid layer had detected that particular lun. But the /dev/sdbm device has not been created. It was also mentioned that it could be a udev problem.

The other curious issue is that if take the major number and the minor number from this entry and manually create the device file as such:

mknod /dev/sdbm 68 0

it works after I rescan all the targets and luns and I am able to perform I/O on this lun.

Any other ideas.

Thanks,
Vinay

----- Original Message ----
From: Andrew Vasquez <[email protected]>
To: Vinay Venkataraghavan <[email protected]>
Cc: James Bottomley <[email protected]>; [email protected]; Matthew Wilcox <[email protected]>
Sent: Wednesday, January 9, 2008 7:49:33 AM
Subject: Re: Number of devices that SCSI can support

Quoted 3 lines · Matthew Wilcox
Quoted 2 lines · James Bottomley
Quoted 1 line · Matthew Wilcox

On Tue, Jan 08, 2008 at 04:55:46PM -0800, Vinay Venkataraghavan

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line

Is there a limit on the number of devices that SCSI supports.

In other words, I have a QLogic HBA card, and I am connecting to a SAN which has 64 targets.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I've personally had over five hundred LUNs. You shouldn't be

hitting a

Quoted 6 lines
Quoted 6 lines
Quoted 1 line

limit here.

I believe the largest test that's been run was the old OSDL CGL workgroup ... they went up to 4096.

However, LUN support depends on the driver and HBA parameters as

well

Quoted 4 lines
Quoted 1 line

(some choose to have arbitrary limits).

I was using a qlogic HBA for my tests, so I don't think this is the problem -- although the original poster claims to have 64 targets,

and I

Quoted 6 lines

had only one target with 128 luns (attached 4 times).

Signature · 3 lines
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take

such

Quoted 1 line

a retrograde step."

Not sure what's going on as well, perhaps some logs could help... But the inbox qla2xxx driver in RHEL4 set's an HBA's scsi_host->max_id count to 512 (also verified with several test rings), so there shouldn't be a problem handling 64 distinct targets (FC ports). -
To unsubscribe from this list: send the line "unsubscribe linux-scsi"
in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

      ____________________________________________________________________________________

Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs