Professional Documents
Culture Documents
Solution:
1)
2)
3)
We can get the above said parameters using the different command, for me I am using systool and
sg_map command
# systool -c fc_host -v
Note: In the above command output, class device path is 3:0:0, that is in the order of
HBA number:channel on HBA:SCSI Target id (H:C:T). Here port name is the storage's
wwpn id.
# sg_map -x
/dev/sg0
0 0 0 0
/dev/sg1
0 0 1 0
/dev/sg2
0 1 0 0
/dev/sg3
3 0 0 0
/dev/sg4
3 0 0 31
/dev/sg5
3 0 1 0
/dev/sdb
/dev/sg6
3 0 1 1
/dev/sdc
/dev/sg7
3 0 2 0
/dev/sdd
/dev/sg8
3 0 2 1
/dev/sde
/dev/sda
Note: In the above command output, first four digits as represents H C T L also known
as Host, Bus, Target, Lun (H B T L). From this we can identify how many luns are already
mapped.
4)
Note: If u are having dual channel HBA card means scan both the HBA numbers using
the above command .
5)
Now check with the fdisk command, whether the LUN is detected or not. If not means use the below
command
# echo 1 > /sys/class/fc_host/hostH/issue_lip
Note: The above command instruct the driver to rediscover the remote ports. LIP (Loop
Initialization Protocol).
6)
Now confirm with the fdisk command and use the LUN as usual.
Find the below command to list the HBA Interfaces on your system
[root@server99 ~]# lspci -nn|grep -i hba
05:00.0 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel
to PCI Express HBA [1077:2532] (rev 02)
05:00.1 Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel
to PCI Express HBA [1077:2532] (rev 02)
below command.
-" > /sys/class/scsi_host/host0/scan
-" > /sys/class/scsi_host/host1/scan
-" > /sys/class/scsi_host/host2/scan