Operating System - Linux
1748044 Members
4841 Online
108757 Solutions
New Discussion юеВ

How to find FC card information in RHEL linux

 
SOLVED
Go to solution
hemant dubey_1
Advisor

How to find FC card information in RHEL linux

Could some help me to find below FC card information in Linux server.

1. How many FC card are there and what is the sppeed like 1G/2G/4G.

2. how to find FC card is single port ot dual port.

3. How tape drive is connected to server means on which device file ?


[root@escort log]# lspci | grep -i fibre
09:01.0 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
09:01.1 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
0e:02.0 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
0e:02.1 Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
[root@escort log]# cd /proc/scsi
[root@escort scsi]# cd qla2300/
[root@escort qla2300]# ll
total 0
-rw-r--r-- 1 root root 0 Jun 23 06:18 3
-rw-r--r-- 1 root root 0 Jun 23 06:18 4
-rw-r--r-- 1 root root 0 Jun 23 06:18 5
-rw-r--r-- 1 root root 0 Jun 23 06:18 6
crwxrwxrwx 1 root root 253, 0 Jun 23 06:18 HbaApiNode
[root@escort qla2300]#
6 REPLIES 6
Matti_Kurkela
Honored Contributor

Re: How to find FC card information in RHEL linux

Hmm... is this a RHEL 3 or some other system that uses a 2.4.xx kernel? In 2.6 kernel series, the /proc/scsi/* directory is usually named /proc/scsi/qla2xxx.

QLA2312 is the type of the HBA chip. A bit of googling reveals its maximum speed is 2 Gbps. One chip of this type can provide only one interface, so the number of chips = number of interfaces. You have 4 FC ports in total.

The PCI device numbers are of the form bus:slot:function. In server hardware, there are usually multiple PCI buses for increased performance, so that only one or two physical slots are on each bus. The devices with identical bus+slot numbers but different function numbers are normally located on the same card, so I'd guess that you have 2 dual-port cards.

(Some dual-port or multi-function cards might include a PCI bridge chip, in which case the numbering might be more complex.)

Ignore the reported file size, and run "cat /proc/scsi/qla2300/3".

Also run "lspci -s 09:01.0 -v" to get more details about the PCI device. The subsystem ID might allow the card to be identified.

If the lspci command on the host cannot interpret the number, run "lspci -s 09:01.0 -v -n" to see the device IDs in numeric form. In your case, the vendor:device pair will be 1077:2312, and the subsystem ID pair will be something different.

Here's a direct link to the PCI ID repository's page on QLogic QLA2312 devices.
If the numeric subsystem IDs match to the devices listed on this page, you'll know the exact model of the card.
http://pci-ids.ucw.cz/read/PC/1077/2312

If your cards' subsystem IDs are not listed in the PCI ID repository, please consider submitting the subsystem information to the repository to help others.

MK
MK
dirk dierickx
Honored Contributor

Re: How to find FC card information in RHEL linux

also check your dmesg boot entries (found in /var/log/dmesg).

QLogic Fibre Channel HBA Driver
ACPI: PCI Interrupt 0000:0a:01.0[A] -> GSI 97 (level, low) -> IRQ 225
qla2300 0000:0a:01.0: Found an ISP2312, irq 225, iobase 0xf8826000
qla2300 0000:0a:01.0: Configuring PCI space...
qla2300 0000:0a:01.0: Configure NVRAM parameters...
qla2300 0000:0a:01.0: Verifying loaded RISC code...
qla2300 0000:0a:01.0: Waiting for LIP to complete...
qla2300 0000:0a:01.0: LOOP UP detected (2 Gbps).
qla2300 0000:0a:01.0: Topology - (F_Port), Host Loop address 0xffff
scsi0 : qla2xxx
qla2300 0000:0a:01.0:
QLogic Fibre Channel HBA Driver: 8.02.09.02.04.08-d
QLogic QLA2342 -
ISP2312: PCI-X (133 MHz) @ 0000:0a:01.0 hdma+, host#=0, fw=3.03.20 IPX
Vendor: DGC Model: RAID 3 Rev: 0226
Type: Direct-Access ANSI SCSI revision: 04
qla2300 0000:0a:01.0: scsi(0:0:0:0): Enabled tagged queuing, queue depth 32.
Vendor: DGC Model: RAID 3 Rev: 0226
Type: Direct-Access ANSI SCSI revision: 04
qla2300 0000:0a:01.0: scsi(0:0:0:1): Enabled tagged queuing, queue depth 32.

it contains a lot of info you are looking for right there, you will find all qlogic cards have their entry (even if nothing is connected), the configured speed on a port, it will also list all ports of that card. you will see a description for all devices discovered on that port, a tape drive will show as, for example;

qla2300 0000:0a:01.1:
QLogic Fibre Channel HBA Driver: 8.02.09.02.04.08-d
QLogic QLA2342 -
ISP2312: PCI-X (133 MHz) @ 0000:0a:01.1 hdma+, host#=1, fw=3.03.20 IPX
Vendor: HP Model: Ultrium 2-SCSI Rev: K710
Type: Sequential-Access ANSI SCSI revision: 03
Jan Soska
Honored Contributor

Re: How to find FC card information in RHEL linux

Steven E. Protter
Exalted Contributor
Solution

Re: How to find FC card information in RHEL linux

Shalom,

Your lspci command gives you the model number of the device file pretty nicely. To see the port layout, either look at the system or check the qlogic website. There really is no information stored on the system about number of ports.

Though ll /proc/ssci/qla2300/ | wc -l might give some interesting answers.

hp_rescan from PSP and other PSP tools will give you the best information in this area if its an HP branded server.

Sadly there is no universal tool like HP-UX ioscan which works perfectly because the variety of hardware that Linux runs on is wide.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
hemant dubey_1
Advisor

Re: How to find FC card information in RHEL linux

Thanks guys....

I have got my answer I can see in lspci output that there are 2 HBA card with dual port and I have cross verified as in /proc/scsi/qla2300 as there are 4 files for each port and 2 ports of same HBA card has the same serial no.

Thanks for you time
hemant dubey_1
Advisor

Re: How to find FC card information in RHEL linux

Thanks guys for you time