How to get the SAN environment information and statistics on AIX, HP-UX, Linux, Solaris, and Windows

Article: 100038435
Last Published: 2014-06-11
Ratings: 8 1
Product(s): NetBackup & Alta Data Protection

Description

NetBackup SAN Client is supported on the Linux , Solaris, Windows, HP-UX and AIX operating systems.  These environments provide the initiator device driver which can login to the SAN client media server and mount an pseudo   target device “ARCHIVE PYTHON” so that the backup or restore can be use the fiber transport (FT).  If there is an issue in the SAN environment, it is necessary to get the information/statistics from the SAN fabric for analysis.  The commands below can be used, on the respective operating system, to gather the necessary information.

If the outputs show many or steadily increasing error counts, that indicates one or more issues with  the fabric  infrastructure. The issue(s) can be caused by cabling, SFP, san switch, DWDM, HBA or ISL and those components will need to be analyzed and evaluated. 

Linux

Get the hardware information for the HBA to determine if the HBA runs fine, including the PCI registers mapping,  capabilities description, and the driver in use:

$ lspci –vv | grep "Fibre Channel"

Get the HBA WWPN:

$ cat /sys/class/fc_host/host*/port_name

Get the HBA WWNN:

$ cat /sys/class/fc_host/host*/node_name

Get the HBA Speed: 

$ cat /sys/class/fc_host/host*/speed

Get the HBA port state:

$ cat /sys/class/fc_host/host*/port_state

Get the HBA port TYPE:

$ cat /sys/class/fc_host/host*/port_type

Get the HBA statistics:

$ cat /sys/class/fc_host/host*/statistics

 

Solaris

Get the hardware information for the HBA:

$ prtconf –pvD | grep 1077

Get the initiator driver info:

$ modinfo | grep qlc   

  85 7bedc000 14e2b0 265   1  qlc (SunFC Qlogic FCA v20100301-3.00)

Get the SCSI device info, include SCSI pseudo driver, device, fabric device and disks:

$ cfgadm –la

Ap_Id                 Type       Receptacle  Occupant      Condition
c0                    scsi-sata  connected   configured    unknown
c0::dsk/c0t0d0        disk       connected   configured    unknown
c0::sg/c0t0l0         unknown    connected   configured    unknown
c1                    fc         connected   unconfigured  unknown
c2                    fc-fabric  connected   unconfigured  unknown
c2::10000000c95039fc  unknown    connected   unconfigured  unknown

Get the statistics of the HBA:

$ kstat –p qlc | grep qlc

Get HBA information, including the WWN, state, and model:

$ fcinfo hba-port

HBA Port WWN: 210000e08b84f210
OS Device Name: /dev/cfg/c1
Manufacturer: QLogic Corp.
Model: 2432
Firmware Version: 05.03.02
FCode/BIOS Version: No boot image detected
Serial Number: not available
Driver Name: qlc
Driver Version: 20100301-3.00
Type: unknown
State: offline
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: not established
Node WWN: 200000e08b84f210

Get the information for this port using the WWN displayed above.  Only available when the port runs in target mode:

$ fcinfo remote-port -p 210000e08b84f210

 

Windows

Method 1

Open storage Explorer of Windows Server 2008 R2.  You can use Storage Explorer to see detailed information about the Fibre Channel host bus adapters (HBAs) on your server, or on other servers in your storage area network (SAN).

The information that is displayed includes:

  • The name of the server where the HBA is installed
  • The HBA port World Wide Name (WWN)
  • The HBA node WWN
  • The firmware version
  • The fabric name
  • The manufacturer of the HBA
  • The serial number of the HBA
  • The hardware, driver, and read-only memory (ROM) versions
  • The product and vendor identification codes
  • HBA port statistics - such as frames and words transmitted and received, synchronization and signal loss counts, and link failures count
  • The zones to which the HBA belongs

Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure.

To display detailed HBA information:

  • In Servers, click the HBA that you want to display information about.
  • T he results pane will display some of the HBA information. To see more detailed information, in the Actions pane, click Properties.

  Method 2

Install the QConvergeConsole from the QLogic website:

https://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/

It is the GUI manager for the QLogic HBA, and can get and modify the HBA information and parameters.

For the Emulex HBA ,download the OneCommandManager from

https://www.emulex.com/downloads/emulex/drivers/windows/windows-server-2008-r2/management/

 

HP-UX

List all fabric devices:

$ ioscan -fnC fc 

Class  I  H/W Path  Driver S/W State   H/W Type   Description

=================================================================

fc  0  0/3/1/0  fcd  CLAIMED   INTERFACE  HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1)  /dev/fcd0

fc  1  0/3/1/1  fcd  CLAIMED   INTERFACE  HP A6826-60001 2Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2) /dev/fcd1

 

Get information for the fabric devices displayed above:

$fcmsutil /dev/fcd0

Vendor ID is = 0x1077
Device ID is = 0x2422
PCI Sub-system Vendor ID is = 0x103C
PCI Sub-system ID is = 0x12D7
PCI Mode = PCI-X 133 MHz
ISP Code version = 5.2.0
ISP Chip version = 3
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x3d0000
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x50060b000069fed5
N_Port Port World Wide Name = 0x50060b000069fed4
Switch Port World Wide Name = 0x200000051e584bf7
Switch Node World Wide Name = 0x100000051e584bf7
N_Port Symbolic Port Name = hp3600b_fcd0
N_Port Symbolic Node Name = hp3600b_HP-UX_B.11.31
Driver state = ONLINE
Hardware Path is = 0/6/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.1003 Jan  5 2010

Get the statistics of the devices displayed above:

$ fcmsutil /dev/fcd0 stat -s

Channel Statistic
Statistics From Link Status Registers ...
Loss of signal     2    Bad Rx Char     182
Loss of Sync       40   Link Fail       4
Received EOFa      0    Discarded Frame 0
Bad CRC            0    Protocol Error  0

Get all detailed statistics for the fabric device:

$ fcmsutil /dev/fcd0 devstat all

 

AIX

Get the fabric device(s) which are attached to the host:

$ lsdev -Cc adapter -S a | grep fcs

fcs0      Available 09-08 FC Adapter
fcs1      Available 09-09 FC Adapter

Get the information about each HBA displayed above:

$ lscfg -vpl fcs0

fcs0             U787B.001.DNWG664-P1-C1-T1  FC Adapter
Part Number.................10N8620
Serial Number...............1B74404468
Manufacturer................001B
EC Level....................A
Customer Card ID Number.....5759
FRU Number.................. 10N8620
Device Specific.(ZM)........3
Network Address.............10000000C96E2898
ROS Level and ID............02C82138
Device Specific.(Z0)........1036406D
Device Specific.(Z1)........00000000
Device Specific.(Z2)........00000000
Device Specific.(Z3)........03000909
Device Specific.(Z4)........FFC01159
Device Specific.(Z5)........02C82138
Device Specific.(Z6)........06C12138
Device Specific.(Z7)........07C12138
Device Specific.(Z8)........20000000C96E2898
Device Specific.(Z9)........BS2.10X8
Device Specific.(ZA)........B1F2.10X8
Device Specific.(ZB)........B2F2.10X8
Device Specific.(ZC)........00000000
Hardware Location Code......U787B.001.DNWG664-P1-C1-T1

Get statistics of each HBA:

$ fcstat fcs0

FIBRE CHANNEL STATISTICS REPORT: fcs0
Device Type: FC Adapter (df1000fd)
Serial Number: 1B60804A86
Option ROM Version: 02C82792
ZA: B1F2.72A2
World Wide Node Name: 0x20000000C97671D2
World Wide Port Name: 0x10000000C97671D2
 
FC-4 TYPES:
  Supported: 0x0000012000000000000000000000000000000000000000000000000000000000
  Active:    0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 4 GBIT
Port Speed (running):   4 GBIT
Port FC ID: 0x0b0b00
Port Type: Fabric
 
Seconds Since Last Reset: 2318113
 
        Transmit Statistics     Receive Statistics
        -------------------     ------------------
Frames: 275464                  275577
Words:  4640256                 7397632
 
LIP Count: 0
NOS Count: 0
Error Frames:  0
Dumped Frames: 0
Link Failure Count: 0
Loss of Sync Count: 2
Loss of Signal: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 130
Invalid CRC Count: 0
 

Was this content helpful?