Skip to main content

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

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

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    unknownc0::sg/c0t0l0         unknown    connected   configured    unknownc1                    fc         connected   unconfigured  unknownc2                    fc-fabric  connected   unconfigured  unknownc2::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: 210000e08b84f210OS Device Name: /dev/cfg/c1Manufacturer: QLogic Corp.Model: 2432Firmware Version: 05.03.02FCode/BIOS Version: No boot image detectedSerial Number: not availableDriver Name: qlcDriver Version: 20100301-3.00Type: unknownState: offlineSupported Speeds: 1Gb 2Gb 4GbCurrent Speed: not establishedNode 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.
  • The 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:
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

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 = 0x1077Device ID is = 0x2422PCI Sub-system Vendor ID is = 0x103CPCI Sub-system ID is = 0x12D7PCI Mode = PCI-X 133 MHzISP Code version = 5.2.0ISP Chip version = 3Topology = PTTOPT_FABRICLink Speed = 4GbLocal N_Port_id is = 0x3d0000Previous N_Port_id is = NoneN_Port Node World Wide Name = 0x50060b000069fed5N_Port Port World Wide Name = 0x50060b000069fed4
Switch Port World Wide Name = 0x200000051e584bf7Switch Node World Wide Name = 0x100000051e584bf7N_Port Symbolic Port Name = hp3600b_fcd0N_Port Symbolic Node Name = hp3600b_HP-UX_B.11.31Driver state = ONLINEHardware Path is = 0/6/1/0Maximum Frame Size = 2048Driver-Firmware Dump Available = NODriver-Firmware Dump Timestamp = N/ADriver Version = @(#) fcd B.11.31.1003 Jan  5 2010
Get the statistics of the devices displayed above:
$ fcmsutil /dev/fcd0 stat -s
Channel StatisticStatistics From Link Status Registers ...Loss of signal     2    Bad Rx Char     182Loss of Sync       40   Link Fail       4Received EOFa      0    Discarded Frame 0Bad 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 Adapterfcs1      Available 09-09 FC Adapter
Get the information about each HBA displayed above:
$ lscfg -vpl fcs0
fcs0             U787B.001.DNWG664-P1-C1-T1  FC AdapterPart Number.................10N8620Serial Number...............1B74404468Manufacturer................001BEC Level....................ACustomer Card ID Number.....5759FRU Number.................. 10N8620Device Specific.(ZM)........3
Network Address.............10000000C96E2898ROS Level and ID............02C82138Device Specific.(Z0)........1036406DDevice Specific.(Z1)........00000000Device Specific.(Z2)........00000000Device Specific.(Z3)........03000909Device Specific.(Z4)........FFC01159Device Specific.(Z5)........02C82138Device Specific.(Z6)........06C12138Device Specific.(Z7)........07C12138Device Specific.(Z8)........20000000C96E2898Device Specific.(Z9)........BS2.10X8Device Specific.(ZA)........B1F2.10X8Device Specific.(ZB)........B2F2.10X8Device Specific.(ZC)........00000000Hardware Location Code......U787B.001.DNWG664-P1-C1-T1
Get statistics of each HBA:
$ fcstat fcs0
FIBRE CHANNEL STATISTICS REPORT: fcs0Device Type: FC Adapter (df1000fd)Serial Number: 1B60804A86Option ROM Version: 02C82792ZA: B1F2.72A2World Wide Node Name: 0x20000000C97671D2World Wide Port Name: 0x10000000C97671D2 
FC-4 TYPES:  Supported: 0x0000012000000000000000000000000000000000000000000000000000000000  Active:    0x0000010000000000000000000000000000000000000000000000000000000000Class of Service: 3Port Speed (supported): 4 GBITPort Speed (running):   4 GBITPort FC ID: 0x0b0b00Port Type: Fabric 
Seconds Since Last Reset: 2318113 
        Transmit Statistics     Receive Statistics        -------------------     ------------------Frames: 275464                  275577Words:  4640256                 7397632 
LIP Count: 0NOS Count: 0Error Frames:  0Dumped Frames: 0Link Failure Count: 0Loss of Sync Count: 2Loss of Signal: 0Primitive Seq Protocol Error Count: 0Invalid Tx Word Count: 130Invalid CRC Count: 0

Comments

Popular posts from this blog

Interpreting the output of lspci

On Linux, the lspci command lists all PCI devices connected to a host (a computer). Modern computers and PCI devices communicate with each other via PCI Express buses instead of the older Conventional PCI and PCI-X buses since the former buses offer many advantages such as higher throughput rates, smaller physical footprint and native hot plugging functionality. The high performance of the PCI Express bus has also led it to take over the role of other buses such as AGP ; it is also expected that SATA buses too will be replaced by PCI Express buses in the future as solid-state drives become faster and therefore demand higher throughputs from the bus they are attached to (see this article for more on this topic). As a first step, open a terminal and run lspci without any flags (note: lspci may show more information if executed with root privileges): lspci   This is the output I get on my laptop: 00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Co

Boot process hangs at dracut: Switching root

Environment Red Hat Enterprise Linux 6 Issue When server is booting the boot process hangs at  dracut: Switching root , and never displays anything else. Raw device-mapper: ioctl: 4.33.1-ioctl (2015-8-18) initialised: xx-xxxx@redhat.com udev: starting version 147 dracut: Starting plymouth daemon dracut: rd_NO_DM: removing DM RAID activation dracut: rd_NO_MD: removing MD RAID activation scsi0 : ata_piix scsi1 : ata_piix ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc120 irq 14 ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc128 irq 15 Refined TSC clocksource calibration: 2599.999 MHz. virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10 virtio-pci 0000:00:07.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 virtio-pci 0000:00:08.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11 input: ImExPS/2 Gener