HP 3PAR RedHat and Oracle Linux Implementation Guide

1. Issue scsi-qlascan to discover devices:
# echo "scsi-qlascan" > /proc/scsi/qla2xxx/<adapter-id>
2. Once the new LUN is visible to the QLogic driver layer, force the SCSI mid-layer to do its own
scan and build the device table entry for the new device:
# echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
The SCSI midlayer will re-scan, where 0 1 2 3 is replaced by your host, channel, ID, and
LUN.
Example:
# echo "scsi add-single-device 4 0 0 1" > /proc/scsi/scsi
NOTE: You must run the scsi add-single-device command individually for all the
newly discovered LUNs and on all host ports to which the LUNs were exported.
You can see the new LUN presented to the OS by the SCSI mid-Layer in the
/var/log/messages file.
kernel: qla2300 0000:03:08.0: scsi(4:0:0:1): Enabled tagged queuing, queue
depth 32.
kernel: SCSI device sdh: 14680064 512-byte hdwr sectors (7516 MB)
kernel: SCSI device sdh: drive cache: write back
kernel: sdh: sdh1
kernel: Attached scsi disk sdh at scsi4, channel 0, id 0, lun 1
kernel: Attached scsi generic sg8 at scsi4, channel 0, id 0, lun 2, type
0scsi.agent[1203]: disk at /devices/pci0000:03/0000:03:08.0/host4/target4:0:0/
4:0
Verifying Devices Found by the Host Using the QLogic HBA
NOTE: If you are running RHEL 4.x with QLogic In-Box driver after presenting new LUNs, the
following commands need to be executed on the host system to see the new LUNs. For example:
# echo "1" > /sys/class/fc_host/host0/issue_lip
# echo "1" > /sys/class/fc_host/host1/issue_lip
# echo "- - -" > /sys/class/scsi_host/host0/scan
# echo "- - -" > /sys/class/scsi_host/host1/scan
In the above example, host0 and host1 are adapter instances.
To verify that the RHEL host has discovered the exported devices, look at the contents of the file
/proc/scsi/scsi. In this example, LUN 0 is exported to the RHEL host through eight paths (four
HP 3PAR StoreServ Storage ports connecting to two QLogic HBA ports). This file should contain
entries for the attached devices:
Discovering Devices with a QLogic HBA 111