[CentOS] Automatically detecting LUNs without a reboot

Gabriel Tabares gabriel.tabares at roboreus.com
Wed Sep 1 05:16:56 EDT 2010

  On 01/09/2010 05:00, cpolish at surewest.net wrote:
> On Tue, Aug 31, 2010 at 04:48:01PM +0100, Gabriel Tabares wrote:
>>    From there, I went to
>> http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/html/Online_Storage_Reconfiguration_Guide/rescan-scsi-bus.html
>> Where it says :
>> "In order for |rescan-scsi-bus.sh| to work properly, |LUN0| must be the
>> first mapped logical unit. The |rescan-scsi-bus.sh| can only detect the
>> first mapped logical unit if it is |LUN0|. The |rescan-scsi-bus.sh| will
>> not be able to scan any other logical unit unless it detects the first
>> mapped logical unit even if you use the |--nooptscan| option. "
>> So I went to the array interface, deleted the volumes and tried
>> re-creating a new volume with a LUN ID of 0, and I get the following error:
>> "Unable to create volume vd01_v001.
>> LUN zero is reserved as the SCC/SES device on this host. (vd01_v001) -
>> The LUN specified (0) must be in the range of 1 - 511."
>> I can't create a LUN with ID 0, which means that rescan-scsi-bus.sh will
>> not work, as per the above text.
>> Any more suggestions?
>> Thanks
>> Gabriel
> rescan-scsi-bus is a shell script. It accepts this argument:
> --luns=LIST     Scan only lun(s) in LIST
> so it may work for you after all?
OK, let me do my best Homer Simpson impersonation. DUH!!!!

That worked! How did I miss that?

Thank you so very much!


More information about the CentOS mailing list