1827857 Members
1729 Online
109969 Solutions
New Discussion

Re: dynamic scsi scan

 
Maxim Rudnev
Occasional Advisor

dynamic scsi scan

How I can rescan scsi bus without restart driver?
I have redhat 8.0, emulex 952 and msa1000.
When I added LUN for this host this LUN doesn't recognized until restart lpfcdd
3 REPLIES 3
Fred Ruffet
Honored Contributor

Re: dynamic scsi scan

It must be discussed in the driver's doc, but what about a kill -1 of the driver ?
--

"Reality is just a point of view." (P. K. D.)
Dineshkumar Surpur
Frequent Advisor

Re: dynamic scsi scan

The emulex driver is not capable of scanning
on the driver layer when you add a device.
You need to do unload or reload of lpfcdd
driver

# modprobe -r lpfcdd (unload of driver)
# modprobe lpfcdd (reload of driver)

or would use insmod command
or reboot

Recently qlogic driver 6.06.10 has come up
with statements for scanning driver on qlogic layer and then the scsi layer

Qlogic scan

# echo "scsi-qlascan" > /proc/scsi/qla2300/

scsi scan

# echo "scsi add-single-device id id id id" > /proc/scsi/scsi

where id id id id represents instance bus channel lun

and we will new device dynamically and still serving I/O on the existing devices.

Emulex Driver should be enhanced to support
something like qlogic is already doing.
and the scan statement of scsi will also be
depleted in the future linux releases and i don't know to what it will be changed to.
Maxim Rudnev
Occasional Advisor

Re: dynamic scsi scan

I tryed # echo "scsi add-single-device host bus tid lun" > /proc/scsi/scsi, but there isn't any new LUN.
I tryed scsi_scan script from fiberutils too.

Linux doesn't recognize new LUNs until unload/load driver (lpfcdd.o)