5. Scanning for New Devices

5. Scanning for New Devices

If you load a driver before adding the corresponding storage device, you will likely need to manually add the new storage to the operating system. As such, you will need the corresponding logical unit number (LUN) of the added storage device.

To scan all buses and targets for new LUNs, use:

echo - - - > /sys/class/scsi_host/<host>/scan

Here, <host> refers to the host number. This can be host0, host1, host2, and so on.

For iSCSI, if the targets sends an iSCSI async event indicating new storage is added, then the scan is done automatically. Cisco MDS™ and EMC Cellera™ support this feature.

For fibre channel, you may need to rediscover the target by executing the command issue_lip.

Note that the proc interface is deprecated; as such, do not use it.