Dynamically scan your LUNs for new hosts without reboot
echo “- – -” > /sys/class/scsi_host/<host listings>/scan
<host listings> refer to the scsi host instances (for the hbas). if you do a listing of the scsi_host directory, you will see something similar to the following:
[root@r08u6 scsi_host]# ll
drwxr-xr-x 2 root root 0 Aug 4 15:52 host0
drwxr-xr-x 2 root root 0 Aug 4 15:52 host1
drwxr-xr-x 2 root root 0 Aug 4 15:52 host2
as you can see, on this server it shows 3 instances of scsi host entries. by using the echo command above on each of these directory’s “scan” files it will force a re-read of the specific scsi bus.
This procedure has been tested on RHEL5 successfully without interruption to the system.
If you have PowerPath installed on the system, run “powermt config” to look for the new devices.
For RHEL 3:
echo “scsi scan-new-devices” > /proc/scsi/scsi