- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to view the HBA cards in linux (redhat)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2010 07:44 AM
тАО03-22-2010 07:44 AM
Just now we have purchase on HP ProLiant DL 380 G6 and installed RHEL 5.3
It has 2 HBA Qlogic cards with two prots.
I am not able to see the Qlogic cards in linux.
I used following method to see:
# cd /proc/scsi
# ll -d qla2xxx
But here it showing nothing.
1)Do we need to install the driver for Qlogic?
2)If yes, how to install the driver and from where we can get the drivers?
3)If not, how to solve this?
Solved! Go to Solution.
- Tags:
- HBA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2010 10:24 AM
тАО03-22-2010 10:24 AM
Re: How to view the HBA cards in linux (redhat)
drivers should already be in RHEL 5.3 (lsmod |grep qla) if not go get from qlogic ( I would at least get the qlogic utilities as they let you rescan and view the fabric)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2010 10:52 AM - last edited on тАО11-03-2020 08:15 PM by Vajith V
тАО03-22-2010 10:52 AM - last edited on тАО11-03-2020 08:15 PM by Vajith V
SolutionFirst, can the card be detected on the system bus?
# lspci
If not, double-check that the card is properly inserted in the slot.
Second, has the default Qlogic driver been loaded successfully?
# lsmod | grep qla2xxx
If the driver has not auto-detected the card, you will probably need a newer version of the driver. If the card was purchased through HP, the driver should be available at https://support.hpe.com/hpesc/public/home as usual.
If the old /proc/scsi/qla2xxx exists but is empty, it might mean all the data has already been moved to /sys in that driver version.
In RHEL4 and older, each FC driver had its own way of reporting statistics and other information. There was no easily-scriptable way to e.g. find out the firmware version numbers of FC cards.
Then the Linux developers started to standardize the FC driver interface a bit. In RHEL 5, the work is still on-going, but you can expect to find the HBA information in two places:
- the FC-specific information should be available in virtual files at /sys/class/fc_host/host*/ directories (one for each FC port).
- the information that's applicable to any SCSI-like device should be available at /sys/class/scsi_host/host*/ directories.
The Emulex programmers seemed to get this wrong at first: the standard lpfc driver in RHEL 5.3 puts a lot of FC-specific parameters to /sys/class/scsi_host/host*/ directory, using custom lpfc_ -prefixed file names.
Once the interface becomes well-defined and stable, it will be possible to develop uniform tools, applicable to all FC cards, like "ifconfig" for NICs, or "fcmsutil" on HP-UX. Maybe in RHEL 6 or 7...
MK
[Note: broken link removed by Mod]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2010 05:43 PM - last edited on тАО11-03-2020 08:13 PM by Vajith V
тАО03-22-2010 05:43 PM - last edited on тАО11-03-2020 08:13 PM by Vajith V
Re: How to view the HBA cards in linux (redhat)
RHEL 5.3 has moved everything to /sys
This package contains hp_rescan which will help you see the controllers
Linux Fibre Channel Enablement Kit for RHEL 5.3/5.4, SLES 10 SP3 and SLES 11
https://access.redhat.com/solutions/528683
[Note: broken link removed by Mod]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 04:24 AM
тАО03-23-2010 04:24 AM
Re: How to view the HBA cards in linux (redhat)
I am able to find the Qlogic HBA cards from my RHEL 5.3.
I have found that using following methods as you described above.
method 1: Cheked whether the qlogic is detected
#lspci
07:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
07:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
0a:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
0a:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
1)So they are detected , am i correct?
method 2: Checked whether driver (modules) available for Qlogic:
# lsmod | grep qla2xxx
qla2xxx 1107173 0
scsi_transport_fc 73801 1 qla2xxx
scsi_mod 196569 9 scsi_dh,sr_mod,sg,usb_storage,qla2xxx,scsi_transport_fc,libata,cciss,sd_mod
2)So Qlogic drivers are available , am i correct?
method 3: Checked FC information in /sys
# cd /sys/class/scsi_host
ll
total 0
drwxr-xr-x 2 root root 0 Mar 23 06:25 host0
drwxr-xr-x 2 root root 0 Mar 23 06:25 host1
drwxr-xr-x 2 root root 0 Mar 23 06:25 host2
drwxr-xr-x 2 root root 0 Mar 23 06:25 host3
drwxr-xr-x 2 root root 0 Mar 23 06:25 host4
drwxr-xr-x 2 root root 0 Mar 23 06:25 host5
AND
# cd /sys/class/fc_host/
ll
total 0
drwxr-xr-x 3 root root 0 Mar 23 06:52 host2
drwxr-xr-x 3 root root 0 Mar 23 06:25 host3
drwxr-xr-x 3 root root 0 Mar 23 06:25 host4
drwxr-xr-x 3 root root 0 Mar 23 06:25 host5
3) So I believe host2, host3, host4 and host5 are Qlogic FC and host0 & host1 are local SCSI ports available in mother board, Am I correct?
4)So as per above outputs my Qlogic FC card has been detected and I can use them in SAN network with out installing any drivers further, am i correct?
5)The purpose of "Fibre Channel Enablement Kit" is to see available FC controllers and rescan the FC controller to check for new LUNs with out restarting the linux, am i correct?
Please answer to my questions one by one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 05:19 AM
тАО03-23-2010 05:19 AM
Re: How to view the HBA cards in linux (redhat)
The way I learned, because lspci didn't always work, was to go through the /proc/pci directory and find the HBA device there. For qlogic, you need to know the model ahead of time and the look for it. I.e., '...qla###.."
cd /proc/pci
ls | grep -i "*qla*"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 07:37 AM
тАО03-23-2010 07:37 AM
Re: How to view the HBA cards in linux (redhat)
Why are you using a pci bus command successfully to find the qlogic devices, but then use a SCSI command to fail to find them?
A pci device isn't going to be on a SCSI bus.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 08:21 AM
тАО03-23-2010 08:21 AM
Re: How to view the HBA cards in linux (redhat)
These hba cards act like scsi cards, as in they provide disk in a format that the OS understands.
Clearly above, method 1 does appear to work.
The drivers are build into the OS for these HBA's however full functionality with HP tools did not work for me without installation of PSP.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2010 08:25 AM
тАО03-23-2010 08:25 AM
Re: How to view the HBA cards in linux (redhat)
Really?
(* Still learning. *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2010 03:08 AM
тАО03-24-2010 03:08 AM
Re: How to view the HBA cards in linux (redhat)
Could you please answer to my questions one by one so that it will be very useful to me?
Hi Michael Steele,
I am not able to cd in to /proc/pci.
I believe the directory "/proc/pci" is not available.
Hi Steven E. Protter,
I have downloaded HP Fibre Channel Enablement Kit.
1)Are you saying that we need to install PSP even after installing HP Fibre Channel Enablement Kit to work the full functionality of HP tools in linux?
2)what is PSP?
3)Where we can download PSP from?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2010 06:31 AM
тАО03-24-2010 06:31 AM
Re: How to view the HBA cards in linux (redhat)
This was the correction that SEP was pointing out to me. 'lspci' as a command, /proc/scsi/ to check the kernel. I.e.,
HBA is a QLogic with model # qla#####
In /proc/scsi you would check for ...
cat /proc/scsi/qla#####
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2010 06:58 AM
тАО03-24-2010 06:58 AM
Re: How to view the HBA cards in linux (redhat)
senthil_kumar:
1) Yes, the cards can be detected on the bus, so the physical connection is fine.
2) Yes, the qla2xxx driver has automatically been loaded and is using the various SCSI-layer service modules. Looks good.
> 3) So I believe host2, host3, host4 and host5 are Qlogic FC and host0 & host1 are local SCSI ports available in mother board, Am I correct?
Yes, that's true.
Both /sys/class/fc_host/hostX and the equivalent /sys/class/scsi_host/hostX refer to the same FC port.
> 4)So as per above outputs my Qlogic FC card has been detected and I can use them in SAN network with out installing any drivers further, am i correct?
Yes, looks like it.
> 5)The purpose of "Fibre Channel Enablement Kit" is to see available FC controllers and rescan the FC controller to check for new LUNs with out restarting the linux, am i correct?
Yes... but rescanning the controllers is possible even without the Fibre Channel Enablement Kit, but the procedure is slightly more difficult.
See RedHat Online Storage Reconfiguration Guide:
https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/html/Online_Storage_Reconfiguration_Guide/index.html
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2010 07:10 AM
тАО03-24-2010 07:10 AM
Re: How to view the HBA cards in linux (redhat)
Please refer Jimmy Vance's post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2010 10:17 AM
тАО03-24-2010 10:17 AM
Re: How to view the HBA cards in linux (redhat)
(still learning how to be a hobbyist :-) *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2010 11:48 AM
тАО03-24-2010 11:48 AM
Re: How to view the HBA cards in linux (redhat)
PSP
Proliant Service Pack
It is a set of tools available for Proliant Servers that make managing the systems, especially fiber attached storage much easier.
There are web based tools, even disk partitioning tools that are a system administrators friend.
On certain Proliant systems with qlogic cards, I have had to install PSP to insure stable access to HBA/Fiber attached storage.
Sorry, I though using G6 servers you knew about PSP. My bad. No points for me please.
SEP
22 Points to Linux Olympus with a penguin on top.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2013 02:43 AM
тАО04-23-2013 02:43 AM
Re: TO FIND HBA FIRMWARE VERSION SEE BELOW
2. systool -c scsi_host -v gives the serial number (if available), firmware, and other information of HBAs. For example:
# systool -c scsi_host -v
Class = тАЬscsi_hostтАЭClass Device = тАЬhost0тА│
Class Device path = тАЬ/sys/class/scsi_host/host0тА│
84xx_fw_version = тАЬтАЭ
beacon = тАЬDisabledтАЭ
cmd_per_lun = тАЬ3тА│
driver_version = тАЬ8.03.01.04.05.05-kтАЭ
fabric_param = тАЬ1280тА│
flash_block_size = тАЬ0├Ч10000тА│
fw_state = тАЬ0├Ч3 0├Ч3 0xb100 0├Ч0 0├Ч4тА│
fw_version = тАЬ4.04.09 (85)тАЭ
host_busy = тАЬ0тА│
isp_id = тАЬ0000 0000 0000 0000тА│
isp_name = тАЬISP2532тА│
max_npiv_vports = тАЬ255тА│
model_desc = тАЬHP 8Gb Single Channel PCI-e 2.0 FC HBAтАЭ
model_name = тАЬHPAK344AтАЭ
mpi_version = тАЬтАЭ
npiv_vports_inuse = тАЬ0тА│
optrom_bios_version = тАЬ2.12тА│
optrom_efi_version = тАЬ2.05тА│
optrom_fcode_version= тАЬ2.03тА│
optrom_fw_version = тАЬ4.04.04 128тА│
pci_info = тАЬPCIe (5.0Gb/s x4)тАЭ
phy_version = тАЬтАЭ
proc_name = тАЬтАЭ
scan =
serial_num = тАЬтАЭ
sg_tablesize = тАЬ255тА│
state = тАЬLink Up тАУ F_PortтАЭ
total_isp_aborts = тАЬ0тА│
uevent =
unchecked_isa_dma = тАЬ0тА│
unique_id = тАЬ0тА│
vlan_id = тАЬтАЭ
vn_port_mac_address = тАЬтАЭ
vport_create =
vport_delete =
zio_timer = тАЬ200 usтАЭ
zio = тАЬDisabledтАЭ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2014 06:13 AM
тАО05-27-2014 06:13 AM
Re: TO FIND HBA FIRMWARE VERSION SEE BELOW
hi,
Try below command
#dmesg | grep -i fibre