probing LUN's

Tony Maher tonymaher at optushome.com.au
Wed Jul 23 14:00:44 PDT 2003


On Thu Jul 24 2003 Nate Lawson wote:
> On Wed, 23 Jul 2003, Andrew Heybey wrote:
>>>>On Wed, 23 Jul 2003 21:25:44 +1000 (EST), Tony Maher said:
>>   tonymaher> I assume this means that CAM does not probe all LUN's if
>>   tonymaher> no device at LUN 0 or sys/cam/cam_xpt.c has quirk entry
>>   tonymaher> for device that disables LUN probing.  There is quirk for
>>   tonymaher> {"HITACHI", "DK31*"} but the SAN reports as Hitachi
>>   tonymaher> DF600F (I think, sorry its at work and I cannot access it
>>   tonymaher> currently) so the second case shouldn't be a problem.
>>
>> You need the ispfw driver (either compiled-in or modloaded) to probe
>> luns beyond LUN 0 for the QLogic FC card.  If that is not your
>> problem, then I do not know...

Whether I use ispfw or the onboard firmware, I still need explicit
camcontrol.

> That's true.  However, if camcontrol rescan 1:0:4 works for him, then he
> can try setting CAM_QUIRK_HILUNS for his device to get other luns probed
> when 0 doesn't respond.

I will checkout this quirk setting.

However in private email with Matthew Jacob, he confirms my suscpicions:

    > If you haven't gotten anything at lun 0, the scan, in the CAM layer in
    > FreeBSD, won't scan further. See cam_xpt.c around line 5000:
    >
    >                     if ((lun_id != 0) || (device != NULL)) {
    >                             if (lun_id < (CAM_SCSI2_MAXLUN-1) || phl)
    >                                     lun_id++;
    >                     }
    > So, if the probe fails for lun_id == 0, then the scan terminates.

thanks for the suggestions.
--
tonym


More information about the freebsd-scsi mailing list