Christian Bilien’s Oracle performance and tuning blog

March 22, 2007

A handy Solaris 10 command: fcinfo

Filed under: Solaris,Storage — christianbilien @ 4:14 pm

 

One the most useful new command I found in Solaris 10 is fcinfo, a command line interface that will display information on HBA ports on a host, but also many useful bits of information on connected storage remote port WWN, raid type, link status,etc.

root # fcinfo hba-port -l

HBA Port WWN: 10000000c957d408 ==> Local HBA1

OS Device Name: /dev/cfg/c4

Manufacturer: Emulex

Model: LP11000-E

Type: N-port

State: online

Supported Speeds: 1Gb 2Gb 4Gb

Current Speed: 2Gb

Node WWN: 20000000c957d408

Link Error Statistics:

Link Failure Count: 0

Loss of Sync Count: 37

Loss of Signal Count: 0

Primitive Seq Protocol Error Count: 0

Invalid Tx Word Count: 32

Invalid CRC Count: 0

HBA Port WWN: 10000000c957d512==> Local HBA2

OS Device Name: /dev/cfg/c5

Manufacturer: Emulex

Model: LP11000-E

Type: N-port

State: online

Supported Speeds: 1Gb 2Gb 4Gb

Current Speed: 2Gb

Node WWN: 20000000c957d512

Link Error Statistics:

Link Failure Count: 0

Loss of Sync Count: 41

Loss of Signal Count: 0

Primitive Seq Protocol Error Count: 0

Invalid Tx Word Count: 32

Invalid CRC Count: 0

/root # fcinfo remote-port -sl -p 10000000c957d512 ==> Which luns are seen by HBA2 ?

Remote Port WWN: 5006016839a0166a

Active FC4 Types: SCSI

SCSI Target: yes

Node WWN: 50060160b9a0166a

Link Error Statistics:

Link Failure Count: 1

Loss of Sync Count: 1

Loss of Signal Count: 11

Primitive Seq Protocol Error Count: 0

Invalid Tx Word Count: 510

Invalid CRC Count: 0

LUN: 0

Vendor: DGC

Product: RAID 10

OS Device Name: /dev/rdsk/c5t5006016839A0166Ad0s2

LUN: 1

Vendor: DGC

Product: RAID 5

OS Device Name: /dev/rdsk/c5t5006016839A0166Ad1s2

LUN: 2

Vendor: DGC

Product: RAID 10

OS Device Name: /dev/rdsk/c5t5006016839A0166Ad2s2

LUN: 3

Vendor: DGC

Product: RAID 10

OS Device Name: /dev/rdsk/c5t5006016839A0166Ad3s2

6 Comments »

  1. need to be run as root, otherwise you get that in return.

    Comment by mats — October 7, 2008 @ 12:38 pm

  2. Thank you very much for the commands.

    Comment by Suresh Kumar — March 31, 2009 @ 7:59 am

  3. I am getting below ouput :
    # fcinfo hba-port -l
    HBA Port WWN: 10000000c95a28ec
    OS Device Name: /devices/pci@80,2000/fibre-channel@2
    Manufacturer: Emulex Corporation
    Model: LP10000-M2-FJ
    Firmware Version: 1.91A1 (T2D1.91A1)
    FCode/BIOS Version:
    Type: N-port
    State: online
    Supported Speeds: 2Gb
    Current Speed: 2Gb
    Node WWN: 20000000c95a28ec
    Error: SendRLS failed for 10000000c95a28ec
    HBA Port WWN: 10000000c95a2852
    OS Device Name: /devices/pci@80,2000/fibre-channel@1
    Manufacturer: Emulex Corporation
    Model: LP10000-M2-FJ
    Firmware Version: 1.91A1 (T2D1.91A1)
    FCode/BIOS Version:
    Type: N-port
    State: online
    Supported Speeds: 2Gb
    Current Speed: 2Gb
    Node WWN: 20000000c95a2852
    Error: SendRLS failed for 10000000c95a2852

    But no output for :
    # fcinfo remote-port -sl -p 10000000c95a28ec
    Error: Failed to open adapter port. Reason ILLEGAL WWN
    fcinfo: Unable to complete operation
    # fcinfo remote-port -sl -p 10000000c95a2852
    Error: Failed to open adapter port. Reason ILLEGAL WWN
    fcinfo: Unable to complete operation

    Even cfgadm fails:
    # cfgadm -al -o show_SCSI_LUN
    cfgadm: Configuration administration not supported
    # luxadm probe
    No Network Array enclosures found in /dev/es
    No FC devices found.

    These above commands are executed on live Oracle RAC 2 node servers having Solaris 10 with 10.2.0.4 RAC

    Could you please help me in finding LUN’s details.

    -Yasser

    Comment by Anonymous — March 25, 2010 @ 10:32 am

  4. I’m getting the same issues at Yasser…

    emory{30}$ su –
    Password:
    Sun Microsystems, Inc. SunOS 5.10 June 2006
    Kyo-Wi GVBP2.4.1 – SPARC September 2006
    # /bin/bash
    bash-3.00# fcinfo hba-port -l
    HBA Port WWN: 10000000c954b827
    OS Device Name:
    Manufacturer: Emulex Corporation
    Model: LP10000-M2-FJ
    Type: N-port
    State: online
    Supported Speeds: 2Gb
    Current Speed: 2Gb
    Node WWN: 20000000c954b827
    Error: SendRLS failed for 10000000c954b827
    HBA Port WWN: 10000000c954b8ae
    OS Device Name:
    Manufacturer: Emulex Corporation
    Model: LP10000-M2-FJ
    Type: N-port
    State: online
    Supported Speeds: 2Gb
    Current Speed: 2Gb
    Node WWN: 20000000c954b8ae
    Error: SendRLS failed for 10000000c954b8ae
    bash-3.00# fcinfo remote-port -slp 10000000c954b8ae
    Error: Failed to open adapter port. Reason ILLEGAL WWN
    fcinfo: Unable to complete operation
    bash-3.00# fcinfo remote-port -slp 10000000c954b827
    Error: Failed to open adapter port. Reason ILLEGAL WWN
    fcinfo: Unable to complete operation
    bash-3.00# uname -a
    SunOS emory 5.10 Generic_144488-06 sun4us sparc FJSV,GPUZC-M
    bash-3.00#

    We just applied 10_Recommended.zip (April 2011) to this system. Then again, I don’t know if this even worked beforehand.

    Thanks,

    -BR

    Comment by Brian Raker — April 29, 2011 @ 9:31 pm

  5. Nice article. It shows the current state of the HBA, LUN’s, etc. What would be nice is to include a portion where we use Link Failure Counts, etc to understand where there are errors and what they mean.

    Comment by Anonymous — November 20, 2014 @ 4:02 pm

  6. hearthstone decks paladin

    A handy Solaris 10 command: fcinfo | Christian Bilien’s Oracle performance and tuning blog

    Trackback by hearthstone decks paladin — July 20, 2016 @ 11:02 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: