HP 3PAR RedHat and Oracle Linux Implementation Guide

The method of echo statement following the QLogic scan scsi-qlascan and the method of
echo scsi add statement. .
Use the scsi-qlascan command.
Use the echo statement following the QLogic scan scsi-qlascan
Use the echo scsi add statement
HP recommends that you use the echo statement method where the scan is performed using the
sys device tree
Scan Methods for LUN Discovery
Use one of the following methods to discover LUNs from the RHEL host:
Method 1: Uses sysfs scan through the echo statement for adding multiple devices at once
Method 2: Uses add single device for adding a single device at a time
Method 1 - sysfs Scan Using the echo Statement
After exporting VLUNs to the host using the createvlun command in “Exporting LUNs to the
Host (page 104), use the QLogic scan scsi-qlascan command to discover devices by completing
the following steps:
NOTE: If you are using the QLogic driver that is installed during the OS installation, you can
skip performing the scsi -qlascan script and scan for devices using the following echo
command:
# echo " - <target number> <LUN number>" > <device scan path>
1. Run the scsi-qlascan script by issuing the following command:
# echo "scsi-qlascan" > /proc/scsi/qla2xxx/<adapter-id>
NOTE: The scsi-qlascan command works only if the QLogic driver was installed from
the QLogic website. A limited number of QLogic drivers are available on the QLogic website
for older versions of Linux.
In the following example, 0 is the HBA instance created by qla2xxx driver module:
# echo "scsi-qlascan" > /proc/scsi/qla2xxx/0
2. Repeat for any other HBA instances created by the driver module. The QLogic scan will allow
the driver layer to discover the HP 3PAR StoreServ Storage.
NOTE: The qla2xxx directory instance is created only if the QLogic driver was installed
from the QLogic website for older versions of Linux.
Example:
# cat /proc/scsi/qla2xxx/0
QLogic PCI to Fibre Channel Host Adapter for QLA2462:
Firmware version 4.06.03 [IP] [84XX] , Driver version 8.02.23
BIOS version 1.29
FCODE version 1.27
EFI version 1.09
108 Allocating Storage for Access by the RHEL Host