QLogic cards

Softpanorama

Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
May the source be with you, but remember the KISS principle ;-)
Bigger doesn't imply better. Bigger often is a sign of obesity, of lost control, of overcomplexity, of cancerous cells

News

Linux Disk Management

Linux Networking

Recommended Links

QLA2xxx driver

installing QLE2460

LVM
Manage Your Disk By UUID System Configuration Configuring multipath-tools Enabling the Multipath Deamon Querying the Status Tuning the Failover Managing IO
Software RAID udev Trunking / Bonding Solaris Multipathing Humor Etc

For some info about qlogic driver see Qlogic QLA2xxx driver

systools -av -c fc_host

NEWS CONTENTS

Old News

[May 24, 2010] IT Resource Center forums - Show Qlogic HBAs WWIDs on Redhat

On Redhat 5 do:

# systool -c fc_host -v

If you want to see info about the WWIDs on the other end of your link do:

# systool -c fc_transport -v

Another useful tip: you can use the port_id number to find out the Domain ID and port number of the FC Switch you're connected to. The first two numbers are the ID and the next two the port. Just convert from hex to decimal. e.g.

port_id = "0x2C1000"

# bc
ibase=16
2C
44 <-- domain ID
11
17 <-- port number

There are a couple of Redhat knowledgebase articles on this subject you might like to read too.

DOC-19446

DOC-19446

DOC-9937

QLogic View Thread

I've been asked to step in an see if i can find why a server
is running very slow. From what I have seen so far it has
to do with I/O to/from our SAN. Some of the FC cards
are connected (via a director) to tape drives.

I know I have not dug very deep, but any pointers would be
helpful.

Thanks

-pete


# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)

HP585, 64 bit

# systool -m qla2xxx -v | more
Module = "qla2xxx"
Attributes:
refcnt = "16"
srcversion = "8E5C954A6D1720A8316FA9B"
version = "8.01.07-k1"
[root@tsmserver proc]# lspci | grep -i ql
07:09.0 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
07:09.1 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
07:0a.0 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
07:0a.1 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
08:0b.0 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
08:0b.1 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
08:0c.0 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)
08:0c.1 Fibre Channel: QLogic Corp. ISP2312-based 2Gb Fibre Channel to PCI-X HBA (rev 02)

[root@tsmserver proc]# lsmod | grep q
qla2xxx 791725 16
scsi_transport_fc 73161 1 qla2xxx
scsi_mod 184057 7 lin_tape,st,sg,qla2xxx,scsi_transport_fc,cciss,sd_mod

CTX120172 - How to Rescan the Qlogic Host Bus Adapter for New Logical Unit Numbers in XenServer - Citrix Knowledge Center

Document ID: CTX120172 / Created On: Apr 6, 2009 / Updated On: Sep 11, 2009

Average Rating: not yet rated

Summary

This document describes how to rescan QLogic Host Bus Adapter (HBA) for new Logical Unit Numbers (LUNs), and query the HBA or ISCSI in XenServer 5.0, Hotfix1, and later. There is a different process in XenServer 4.x, because those versions use a different driver.

Requirements

• XenServer with Hotfix 1 and later

• Basic Command Line Interface skills

Procedure

Repeat the following steps on each server in the pool.

1. Find the scsi_host directory
To be able to send the command for rescan you must find the correct scsi_host directory. Use the following command:
# cat /proc/scsi/scsi

Host: scsi3 Channel: 00 Id: 00 Lun: 01
Vendor: NETAPP Model: LUN Rev: 0.2
Type: Direct-Access ANSI SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 01
Vendor: NETAPP Model: LUN Rev: 0.2
Type: Direct-Access ANSI SCSI revision: 04

You can see that that the HBA driver is mapped to host scsi3 and scsi2, which XenServer translates to host2 and host3.

Note: Servers in the pool may have different scsi_host numbers.

2. Display the current LUN count:
# scli -t

3. Send the rescan command and check the LUN count update:
# echo "- - -" > /sys/class/scsi_host/host2/scan
# scli –t

# echo "- - -" > /sys/class/scsi_host/host3/scan
# scli –t

4. Display the LUN details:
# scli –l 0
# scli –l 1

5. Display HBA and SCSI details using systool:

• To examine some simple information about the Fibre Channel HBAs in a unit:
# systool -c fc_host –v

• To look at verbose information regarding the SCSI adapters present on a system:
# systool -c scsi_host –v

• To see what Fibre Channel devices are connected to the Fibre Channel HBA cards:
# systool -c fc_remote_ports -v –d

• For Fibre Channel transport information:
# systool -c fc_transport –v

• For information on SCSI disks connected to a system:
# systool -c scsi_disk –v

• To examine more disk information including which hosts are connected to which disks:
# systool -b scsi –v

• Use the sg_map command to view more information about the SCSI map:
# sg_map –x

• To obtain driver information, including version numbers and active parameters:
For Qlogic HBAs:
# systool -m qla2xxx –v

For Emulex HBAs:
# systool -m lpfc –v

I know certain ways to find WWNs of HBAs. For instance, check /sys/class/{fc,scsi}_host/hostn/port_name, or use the command below:

egrep -i 'port=|Portname' /proc/scsi/*/*

e.g.

% egrep -i 'port=|Portname' /proc/scsi/*/*
/proc/scsi/qla2xxx/3:scsi-qla0-adapter-port=2100001b321c1d2d;
/proc/scsi/qla2xxx/4:scsi-qla1-adapter-port=2101001b323c1d2d;

However, I can not find the WWNs of QLogic Corp. ISP4032-based iSCSI TOE IPv6 HBA on SuSe 10.3.

% cat /etc/issue

Welcome to SUSE Linux Enterprise Server 10 SP3 (x86_64) - Kernel \r (\l).


% /sbin/lspci | grep -i -e hba
37:0d:01.1 Network controller: QLogic Corp. ISP4032-based iSCSI TOE IPv6 HBA
39:0d:01.3 Network controller: QLogic Corp. ISP4032-based iSCSI TOE IPv6 HBA

% ls -l /sys/class/{fc,scsi}_host/host?/port_name
ls: /sys/class/fc_host/host?/port_name: No such file or directory
ls: /sys/class/scsi_host/host?/port_name: No such file or directory

% egrep -i 'port=|Portname' /proc/scsi/*/*
/proc/scsi/qla4xxx/5:scsi-qla0-adapter-port="iqn.1994-05.com.redhat:de43ae8b9a48";
/proc/scsi/qla4xxx/6:scsi-qla1-adapter-port="iqn.1994-05.com.redhat:de43ae8b9a48";

Apparently, what's returned by 'egrep' is not WWN.

Is it true that QLogic Corp. ISP4032-based iSCSI TOE IPv6 HBA DOES NOT have WWNs?



Etc

Society

Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers :   Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism  : The Iron Law of Oligarchy : Libertarian Philosophy

Quotes

War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda  : SE quotes : Language Design and Programming Quotes : Random IT-related quotesSomerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose BierceBernard Shaw : Mark Twain Quotes

Bulletin:

Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 :  Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method  : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law

History:

Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds  : Larry Wall  : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOSProgramming Languages History : PL/1 : Simula 67 : C : History of GCC developmentScripting Languages : Perl history   : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history

Classic books:

The Peter Principle : Parkinson Law : 1984 : The Mythical Man-MonthHow to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite

Most popular humor pages:

Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright © 1996-2018 by Dr. Nikolai Bezroukov. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) in the author free time and without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to make a contribution, supporting development of this site and speed up access. In case softpanorama.org is down you can use the at softpanorama.info

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.

The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: October 03, 2017