Sponsored Content
Full Discussion: HBA cards on older FreeBSD's
Operating Systems BSD HBA cards on older FreeBSD's Post 302527825 by brightstorm on Sunday 5th of June 2011 06:34:58 PM
Old 06-05-2011
HBA cards on older FreeBSD's

Hi,

The title is a bit misleading, but it seems I can't re-edit the title after creating the post - apologies.

I have been handed a variety of servers, whereas quite a few of these are older FreeBSD (4.8, thank you legacy). I now have one of these servers which has a HBA card installed, and I'd like to find its WWN.

On Solaris and HP-UX this would be a rather simple task with fcinfo and ioscan, but as to do it on FreeBSD leaves me a bit perplexed after some google'ing. The advice which keeps coming back is to boot the server with "boot -v", but I really can't see it should be necessary to boot the server to get a simple value.

What I have found so far is this cumbersome and it doesn't really pin the tail on the donkey:

See if a HBA card's installed
Code:
#pciconf -lv
...output omitted...
isp0@pci1:2:0:  class=0x0c0400 card=0x00091077 chip=0x23001077 rev=0x01 hdr=0x00
    vendor   = 'QLogic Corporation'
    device   = 'ISP 2300 64-bit PCI FC-AL Adapter'
    class    = serial bus
    subclass = Fibre Channel
...output omitted...

Ok, fine - no WWN there but we know there's something there! Next, I peak in /var/run/dmesg.boot:

Code:
#grep 'isp0:' /var/run/dmesg.boot 
...output omitted...
isp0: <Qlogic ISP 2300 PCI FC-AL Adapter> port 0xa400-0xa4ff mem 0xdc240000-0xdc240fff irq 9 at device 2.0 on pci1
...output omitted...

Again, nothing conclusive. I next grep'd for "WWN" in the same file, which yielded several WWN's, in hexadecimal format, and there was several, about 6-7 and there is literally no way to map these WWN to their respective devices.

Do any of you have a good idea of what tool(s) to use (or install) in order to make this a bit more trivial? So far, google haven't really been overly helpful. I really just want to be able to map WWN <-> device without having to reinvent the wheel.

Thanks in advance,
/b

Last edited by brightstorm; 06-05-2011 at 07:36 PM.. Reason: Emphasize misleading title
 

10 More Discussions You Might Find Interesting

1. Solaris

Moving HBA cards to different PCI slots

Has anyone ever relocated an HBA card after already having it configured in another PCI slot? I've found that the HBA instance #'s start incrementing past the previous. It results in me having to have my instance numbers in /kernel/drv/qla2300.conf be 4,5,6,7 instead of 0,1,2,3. Cleanup with... (5 Replies)
Discussion started by: kduffin
5 Replies

2. Solaris

VxVM/Hba cards/Solaris 10 FS issue

Hi all, I have a compatibly issues with a new hardware My config is the following one : Solaris 10 V490 Hardware 2 X HBA Qlogic 2310f cards An HP EVA 5000 for storage ... Veritas VxVM 4.1 MP1 When I reboot my server, VxVM is trying to mount/use the volume before it's... (0 Replies)
Discussion started by: unclefab
0 Replies

3. Solaris

Help! Moving HBA cards to different slots

Due to speed mismatch, the server kept crashing. Sun suggests that I need to move the two HBA cards from the 66Mhz to the 33Mhz slots. There are tons of disks that are connected to these HBAs and I have Veritas volume manager. Does anyone have a list of what I need to do prior/after moving to... (3 Replies)
Discussion started by: kiem
3 Replies

4. UNIX for Advanced & Expert Users

How do I know which HBA cards' hardware I have (on Solaris 10) ?

Hi, I'm trying to determine which HBA cards are installed on my Solaris 10 (Sun-Fire-V240) machine. The relevant data I have is below, but from it I cannot ascertain for sure if I have Emulex 10000 or 11000 HBA cards. Can anyone suggest how to determine my HBA hardware ? Thanks, Ron. ... (3 Replies)
Discussion started by: ronbarak
3 Replies

5. Solaris

How do I know which HBA cards' hardware I have (on Solaris 10) ?

Hi, I'm trying to determine which HBA cards are installed on my Solaris 10 (Sun-Fire-V240) machine. The relevant data I have is below, but from it I cannot ascertain for sure if I have Emulex 10000 or 11000 HBA cards. Can anyone suggest how to determine my HBA hardware ? Thanks, Ron. ... (4 Replies)
Discussion started by: ronbarak
4 Replies

6. Solaris

What is an HBA..?

Helo experts What is an HBA? How can i know about that on any server? Thanx in advance... (7 Replies)
Discussion started by: younus_syed
7 Replies

7. Solaris

Command to get the details and number of HBA cards

Hiii... Every one.... I want to know the command to get the details and number of HBA cards attached to a server. I know that we can use "powermt display", but nither my cards are connected to the storage nor powerpath is active. I am using SUN server with Solaris -9. Thanks in... (4 Replies)
Discussion started by: Reboot
4 Replies

8. Programming

Application crashes in FreeBSD 7.1 while working ok in FreeBSD 6.3

Hello there, My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64. It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386). The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies

9. Solaris

How to enable hba port of a two port hba card

Hi, i have a two port hba card in solaris 10 system one of which is disabled. How to enable and configure the other port. ---------- Post updated at 08:17 AM ---------- Previous update was at 03:40 AM ---------- please help :( (7 Replies)
Discussion started by: rishiraaz
7 Replies

10. Red Hat

Command for viewing hba cards on rhel7

hi all, I am trying to view the hba cards on a rhel7 server (storage says they are there, but I am not seeing them. I tried lspci -nn | grep -i hba lspci |grep qla I tried looking in /sys/class/fc_host.. but it is empty. I am not sure if I am looking in the right spot... (0 Replies)
Discussion started by: gartie
0 Replies
HBA_OpenAdapter(3HBAAPI)		      Common Fibre Channel HBA Information Library Functions			  HBA_OpenAdapter(3HBAAPI)

NAME
HBA_OpenAdapter, HBA_OpenAdapterByWWN, HBA_CloseAdapter - open and close a specific adapter SYNOPSIS
cc [ flag... ] file... -lHBAAPI [ library... ] #include <hbaapi.h> HBA_HANDLE HBA_OpenAdapter(char *adaptername); HBA_STATUS HBA_OpenAdapterByWWN(HBA_HANDLE *handle, HBA_WWN wwn); void HBA_CloseAdapter(HBA_HANDLE handle); PARAMETERS
adaptername the name of the adapter to open, as returned by HBA_GetAdapterName(3HBAAPI) handle HBA_OpenAdapterByWWN() a pointer to an HBA_HANDLE HBA_CloseAdapter() the open handle of the adapter to close, as returned by HBA_OpenAdapter(3HBAAPI) wwn the WWN to match the Node WWN or Port WWN of the HBA to open DESCRIPTION
The HBA_OpenAdapter() function opens the adapter specified by adaptername and returns a handle used for subsequent operations on the HBA. The HBA_OpenAdapterByWWN() function opens a handle to the HBA whose Node or Port WWN matches the wwn argument. The HBA_CloseAdapter() function closes the open handle. RETURN VALUES
Upon successful completion, HBA_OpenAdapter() returns a valid HBA_HANDLE with a numeric value greater than 0. Otherwise, 0 is returned. The HBA_OpenAdapterByWWN() function returns the following values: HBA_STATUS_OK The handle argument contains a valid HBA handle. HBA_STATUS_ERROR_ILLEGAL_WWN The wwn argument is not a valid port WWN on the specified HBA. HBA_STATUS_ERROR_AMBIGUOUS_WWN The WWN is matched to multiple adapters. HBA_STATUS_ERROR An error occurred while opening the adapter. EXAMPLES
Example 1: Open an adapter. The following example opens the specified adapter. handle = HBA_OpenAdapter(adaptername); if (handle == 0) { fprintf(stderr, "Unable to open HBA %d with name " ""%s". ", hbaCount, adaptername); continue; } ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard: FC-MI 1.92 (API | | |version 1) | +-----------------------------+-----------------------------+ | |Standard: FC-HBA Version 4 | | |(API version 2) | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
HBA_GetAdapterName(3HBAAPI), HBA_OpenAdapter(3HBAAPI), libhbaapi(3LIB), attributes(5) T11 FC-MI Specification SunOS 5.10 1 Sep 2003 HBA_OpenAdapter(3HBAAPI)
All times are GMT -4. The time now is 03:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy