After you add or remove LUNs, scan the operating system device tree to verify that the operation completed successfully.
Linux provides several methods for rescanning the SCSI bus and identifying the devices mapped to it. These methods include the following:
To scan using HBA vendor utilities
QLogic provides a script that dynamically scans for newly-added LUNs. You can download it from the QLogic Web site. To run the script, enter the following command:
# ./ql-dynamic-tgt-lun-disc.sh
Emulex provides an HBAnywhere script. You can download it from the Emulex web site. The script has a LUN Scan Utility that dynamically scans for newly-added LUNs. To run the utility, enter the following command:
# lun_scan all