You are on page 1of 5

Article Number: 000028863 Print

Connectrix: How to troubleshoot Fibre Channel node to


switch port or SFP communication problems by means of
elimination?
Summary: This article explains how to troubleshoot Fibre Channel node to switch port or SFP
communication problems by means of elimination.

Article Content

Symptoms

How to troubleshoot Fibre Channel node to switch port or SFP communication problems by means of elimination?

Too many pro-active SFP replacements.

Link failure.

G port.
No light.

NOS (Not Operational Sequence).


Off Line Sequence (OLS).

Loss of Signal.

Faulty SFP

Troubleshoot FC port
errors on FC port

Cause

Too many SFP pro-actively replaced while the problem lies outside the SFP / switch.

Resolution

To resolve this issue:

1. Identify the node and switch port involved in the communications failure.
2. Verify that the switch port is administratively up (unblocked, no shut), or enabled.
3. Make sure there are redundant paths available to attached device before proceeding.

Warning: Before proceeding any further, make sure you know how your node will react if it gets a new FCID. Some OS versions of AIX
and HP-UX do not react well to such changes, since the FCID is built in the hardware path to the storage device. If you move the
cable, you might have data unavailable. If you have any doubts, consult with an EMC Technical Support Engineer.

4. To eliminate the SFP of being the problem, do the following:

Note: If there is an issue with the SFP, this procedure is the quickest way of bringing the device back online.

1. Check for free port on the switch.


2. Disable the identified free port on the switch.
3. Move the cable from the port to be investigated to the new disabled free port in the previous step.

5. Change the disabled port to enable state (or administratively up) and bring the device back online.
6. Clear / reset the stats / counters to zero on the switch. (See notes How to...)
7. Monitor the port with the respective commands for 4-6 hours.

If the error counters increase, the problem lies outside the switch, and the customer needs to be advised to:
The new port SFP and the Cable requires cleaning. (To prevent contamination on the SFP of a dirty cable.
Consider using the EMC cleaning kit.)
The attached device needs to be investigated further by whomever support the device.
On Cisco switch, if the "errdisabled" state comes back with no counter increase, a SR needs to be opened for
further back end investigation.
If the errors do not increase (or the Errdisabled state on Cisco switch does not come back), the SFP on the previous port
is defective, raise SR for SFP replacement providing above analysis results, SFP details (SM or MM, and speed, etc.)

Note: You can do the same procedure from Step 6 onwards if you replaced the cable and / or attached device, by checking the
counters.

Additional Information

Note:

Most of the time, if a SFP optical transceiver definitely fails, you will see a clear optics failure in the event log.

Hardware failures can easily be isolated by applying a simple algorithm to the problem; if it is not this piece of hardware, then it is
the other piece. Loop until you isolate the failure.

BROCADE EXAMPLES:

Note: For explanation / description of the counters see knowledgebase article:


Connectrix B-Series: How to Interpret the Brocade porterrshow output, and what do the counters mean.

Example 1 ENC OUT with LINK FAIL and LOSS SYNC:

porterrshow :

CURRENT CONTEXT -- 3 , 111

frames enc crc crc too too bad enc disc link loss loss frjt fbsy c3timeout pcs

tx rx in err g_eof shrt long eof out c3 fail sync sig tx rx err

xx: 849.1k 493.2k 0 0 0 0 0 0 2.3m 0 4 6 0 0 0 0 0 0

General Reason:
Only valid, if port statistics have been cleared within the last 24 hours. Otherwise classify these counters as historical. Please clear
port statistics (https://support.emc.com/kb/304525) and retake data after 4-6 hours.

From the errors, we can see the link fail and loss of sync PLUS enc out errors, these can also include loss sig error.
These combinations of errors generally indicate a host reboot or a link reset external to the switch. THe enc out errors are caused
during the speed negotiation as part of a link initialization.

Expected Actions:
Verify that the device attached to the port had a legitimate reason to go offline/ online i.e. host reboot. If not, raise a SR.

Example 2 ENC OUT:

porterrshow :
CURRENT CONTEXT -- 3 , 111

frames enc crc crc too too bad enc disc link loss loss frjt fbsy c3timeout pcs

tx rx in err g_eof shrt long eof out c3 fail sync sig tx rx err

xx: 849.1k 493.2k 0 0 0 0 0 0 2.3m 0 0 0 0 0 0 0 0 0

General Reason:
Only valid, if port statistics have been cleared within the last 24 hours. Otherwise classify these counters as historical. Please clear
port statistics (https://support.emc.com/kb/304525) and retake data after 4-6 hours.

Enc out errors without any associated errors indicate dirty cable.

Expected Actions:
Inspect and clean all optic faces on cable and SFP connected to this port and attached devices.

Example 3 CRC and CRC G_EOF:

porterrshow :

CURRENT CONTEXT -- 3 , 111

frames enc crc crc too too bad enc disc link loss loss frjt fbsy c3timeout pcs
tx rx in err g_eof shrt long eof out c3 fail sync sig tx rx err

xx: 849.1k 493.2k 0 1.2k 1.2k 0 0 0 0 0 0 0 0 0 0 0 0 0

General Reason:
Only valid, if port statistics have been cleared within the last 24 hours. Otherwise classify these counters as historical. Please clear
port statistics (https://support.emc.com/kb/304525) and retake data after 4-6 hours.

The frame is entering the switch port with a bad CRC but with the end of the frame still marked as good.
This is an indication that this is the first port to register the bad frame so the issue is either the SFP / Cable / Attached device
interface on this specific port.

Expected Actions:
See default action in the resolution.

For an ISL port, clear stats with statsclear and slotstatsclear commands, wait 4-6 hours, and collect supportsaves from both
switches and open SR for normal troubleshooting.

Example 4 CRC:

porterrshow :

CURRENT CONTEXT -- 3 , 111

frames enc crc crc too too bad enc disc link loss loss frjt fbsy c3timeout pcs

tx rx in err g_eof shrt long eof out c3 fail sync sig tx rx err

xx: 849.1k 493.2k 0 1.2k 0 0 0 0 0 0 0 0 0 0 0 0 0 0

General Reason:
Only valid, if port statistics have been cleared within the last 24 hours. Otherwise classify these counters as historical. Please clear
port statistics (https://support.emc.com/kb/304525) and retake data after 4-6 hours.

The port is recording a frame entering the switch with a bad CRC frame, but with the frame already marked as bad. Normally see this
on an ISL and NPIV F-ports.

Expected Actions:
If CRC errors are logging on NPIV port, have the device investigated by maintaining vendor !
For an ISL port, check all ports in the fabric for any port logging crc g_oef and action as in Example 3.

Example 5 PCS ERR with LINK FAIL and LOSS SYNC:

porterrshow :

CURRENT CONTEXT -- 3 , 111

frames enc crc crc too too bad enc disc link loss loss frjt fbsy c3timeout pcs

tx rx in err g_eof shrt long eof out c3 fail sync sig tx rx err

xx: 849.1k 493.2k 0 0 0 0 0 0 0 0 4 4 0 0 0 0 0 466

General Reason:
Only valid, if port statistics have been cleared within the last 24 hours. Otherwise classify these counters as historical. Please clear
port statistics (https://support.emc.com/kb/304525) and retake data after 4-6 hours.

This is applicable only on platforms that support 10 Gbps or 16 Gbps ports (6505/6510/6520/DCX-8510) and it was introduced with
Condor3 ASIC, the GEN5 Platform. ER_PCS_BLK shows the number of Physical Coding Sublayer (PCS) block errors. This counter is
equivalent with enc_out for 8Gb/4Gb link and it's used only for 10GB and 16Gb speed.
From the errors, we can see link fail and loss of sync plus pcs err errors, these can also include loss sig error.
These combinations of errors generally indicate a host reboot or link reset external to the switch.
The pcs err errors are caused during the speed negotiation as part of link initialization.

Expected Actions:
Verify that the device attached to the port had a legitimate reason to go offline/online i.e. host reboot. If not, raise SR.

Example 6 PCS ERR:

porterrshow :

CURRENT CONTEXT -- 3 , 111

frames enc crc crc too too bad enc disc link loss loss frjt fbsy c3timeout pcs

tx rx in err g_eof shrt long eof out c3 fail sync sig tx rx err

xx: 849.1k 493.2k 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 466


General Reason:
Only valid, if port statistics have been cleared within the last 24 hours. Otherwise classify these counters as historical. Please clear
port statistics (https://support.emc.com/kb/304525) and retake data after 4-6 hours.

PCS ERR errors without any associated errors indicate dirty cable.

Expected Actions:
Inspect and clean all optic faces on cable and SFP connected to this port and attached devices.

CISCO EXAMPLES:

Example 1:

Errdisabled - no interface errors incrementing

fc1/1 is down (Error disabled - bit error rate too high)

Hardware is Fibre Channel, SFP is short wave laser w/o OFC (SN).

5 minutes input rate 0 bits/sec, 0 bytes/sec, 0 frames/sec

5 minutes output rate 0 bits/sec, 0 bytes/sec, 0 frames/sec

179 frames input, 7668 bytes

0 discards, 0 errors

0 CRC, 0 unknown class

0 too long, 0 too short

23 frames output, 1320 bytes

0 discards, 0 errors

1 input OLS, 1 LRR, 0 NOS, 1 loop inits

2 output OLS, 0 LRR, 0 NOS, 1 loop inits

Interface last changed at Thu Jun 5 01:51:00 2014

General Reason:

The "Errdisabled" state of an interface can be a bit misleading as interface counters can be clean on the front end and the
switch seems to down the port with "errdisabled" state, and error counters increasing on the back end (ASIC / internal /
linecard).

Expected Actions:

See default action in the resolution. If re-occurring, collect tech support details output and open SR.

Note: Information on "Errdisabled" state from Cisco: The bit errors can occur for the following reasons:

Faulty or bad cable.


Faulty or bad SFP.
SFP is specified to operate at 1 Gbps but is used at 2 Gbps.
SFP is specified to operate at 2 Gbps but is used at 4 Gbps.
Short haul cable is used for long haul or long haul cable is used for short haul.
Momentary sync loss.
Loose cable connection at one or both ends.
Improper SFP connection at one or both ends.

A bit error rate threshold is detected when 15 error bursts occur in a 5-minute period. By default, the switch disables the interface
when the threshold is reached. You can enter a shutdown and no shutdown command sequence to reenable the interface.

You can configure the switch to not disable an interface when the threshold is crossed. By default, the threshold disables the
interface.

Example 2:

CRCs incrementing

fc13/1 is down (Initializing)

Port description is ***

Hardware is Fibre Channel, SFP is long wave laser cost reduced

5 minutes input rate 32 bits/sec, 4 bytes/sec, 0 frames/sec


5 minutes output rate 32 bits/sec, 4 bytes/sec, 0 frames/sec

162 frames input, 6136 bytes

0 discards, 17 errors
17 CRC, 0 unknown class

0 too long, 17 too short

74 frames output, 6304 bytes

2 discards, 0 errors

108 input OLS, 54 LRR, 2 NOS, 0 loop inits

83 output OLS, 26 LRR, 56 NOS, 0 loop inits

Interface last changed at Tue May 27 08:37:20 2014

General Reason:

The port is recording a frame entering the switch with a bad CRC but a good end of frame. The CRC counter only increments on
the specific ingress port logging the error and any investigations should be done on this physical link.

Expected Actions:

See default action in the resolution.

Clearing stats on Cisco switches:

Use the commands:

To clear interface counters:

MDS-9509# clear counters interface all

To clear interface counters if port-channels are configured:

MDS-9509# clear counters interface port-channel <1-256>

To clear ASIC counters, it is required to 'attach' to all line cards. Example:

MDS-9509# attach module 1

Attaching to module 1 ...

To exit type 'exit', to abort type '$.'

Bad terminal type: "ansi". Will assume vt100.

module-1# clear asic-cnt all

Article Properties

Affected Product

Connectrix

Product

Connectrix, Connectrix B-Series Hardware, Connectrix MDS-Series Hardware

Last Published Date


28 Feb 2021

Version

Article Type

Solution

You might also like