HP 3PAR RedHat and Oracle Linux Implementation Guide

where:
0 specifies the host
1 specifies the channel
2 specifies the ID
3 specifies the LUN
(The SCSI midlayer will re-scan.)
# echo "scsi add-single-device 2 0 0 14" > /proc/scsi/scsi
You can see the new LUN presented to the OS by the SCSI Mid-Layer in the /var/log/messages
file.
kernel: Vendor: 3PARdata Model: VV Rev: 0000
kernel: Type: Direct-Access ANSI SCSI revision: 03
kernel: SCSI device sdac: 524288 512-byte hdwr sectors (268 MB)
kernel: SCSI device sdac: drive cache: write back
kernel: sdac: unknown partition table
kernel: Attached scsi disk sdac at scsi2, channel 0, id 0, lun 14
kernel: Attached scsi generic sg29 at scsi2, channel 0, id 0, lun 14, type 0
Dec 12 14:08:50 sqa-dell2850-01 scsi.agent[14234]: disk at /devices/pci0000:00/
0000:00:02.0/0000:01:00.2/0000:03:0b.0/0000:04:04.0/host2/target2:0:0/2:0:0:14
NOTE: The echo command needs to be executed on multiple host lpfc HBA SCSI instances
where LUNs have been exported.
Verifying Devices Found by the Host Using the Emulex HBA
To verify that the RHEL host has discovered the exported devices, look at the contents of the
/proc/scsi/scsi file. In this example, we have LUN 0 exported to the RHEL host through eight
paths (four HP 3PAR StoreServ Storage ports connecting to two Emulex HBA ports). This file should
contain entries for the attached devices:
HP 3PAR StoreServ Storage
# cat /proc/scsi/scsi
[root@sqa-dl380g5-05 ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi4 Channel: 00 Id: 00 Lun: 00
Vendor: 3PARdata Model: VV Rev: 3110
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: 3PARdata Model: VV Rev: 3110
Type: Direct-Access ANSI SCSI revision: 05
scsi4 and scsi5 refer to the HBA adapter instances (/sys/class/scsi_host/host4 and
/sys/class/scsi_host/host5), respectively. Alternatively, use Isscsi -g for RedHat
5 or 6.
Discovering Devices with a QLogic HBA
Use one of the following methods to dynamically add new LUNs:
Discovering Devices with a QLogic HBA 107