HP 3PAR SUSE Linux Enterprise Implementation Guide

Vendor: 3PARdata Model: VV Rev: 0000
Type: Direct-Access ANSI SCSI revision: 05
scsi0 and scsi1 refer to the HBA adapter instance (/sys/class/scsi_host/host0 &
/sys/class/scsi_host/host1). The ID refers to the HP 3PAR StoreServ Storage target port
(four HP 3PAR StoreServ Storage target ports exist: Id 0, 1, 2, 4).
Discovering Devices with a QLogic HBA
There are several methods of dynamically adding new LUNs:
Method 1: Use rescan-scsi-bus.sh
Method 2: Use the echo statement following the QLogic scan scsi-qlascan
Method 3: Use the echo scsi add statement
If the rescan-scsi-bus.sh fails, HP recommends that you use the echo statement method
where the scan is performed using the sys device tree.
Scan Methods for LUN Discovery
You can use the following methods to discover LUNs from the SUSE host.
Method 1: Use sysfs scan through the echo statement for adding multiple devices at once.
Method 2: Use add single device for adding a single device at a time.
Method 3: Use the rescan-scsi-bus.sh method described in “Discovering Devices with
a QLogic HBA (page 52).
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 47), use the QLogic scan scsi-qlascan to discover devices by completing the
following steps:
NOTE: If you are using the QLogic driver that is installed during the OS installation, use the
following echo command, as the scsi-qlascan script would not be available with the inbox
driver:
# 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>
In the following example, 0 is the HBA instance created by the 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.
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
52 Allocating Storage for Access by the SUSE Host