Professional Documents
Culture Documents
SAN-3608
Cisco Public
Agenda/First Half
Overview of Data Gathering Capabilities of SAN/OS Network DesignKeep Troubleshooting in Mind Analyzer Uses Trace and Fabric Manager Tool Uses Tie Each Learned Skill to a Lab Exercise
Cisco Public
Cisco Public
Requires admin privileges to run debugs Debugs can only be run from CLI No debugging available from Fabric Manager or Device Manager
N 12527_04_2006_c1
SAN -3608 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
Debug Logging
1. Display captured debug to screen
Tip: use show debug to see name of debug file TOP-9216i# show debug logfile networkers_debug
Cisco Public
N 12527_04_2006_c1
SAN -3608
Cisco Public
Debug Outputs
Debug Example
TOP-9216i# debug flogi ? action Configure debugging of flogi actions all Configure all debug flags of flogi demux Configure debugging of flogi message demux error Configure debugging of flogi error event Configure debugging of flogi FSM and Events ha Configure debugging of flogi HA init Configure debugging of flogi adds, deletes and inits timers Configure debugging of flogi message timers trace Configure debugging of flogi trace warning Configure debugging of flogi warning
Some debugs are selfexplanatory, others not Drilling down to most single item you wish to view like the interface or VSAN helps in narrowing output Debugs are usually run as part of a recreate for an issue such as a bad Fibre Channel ID being assigned or a Host login issue Some debugs require expertise in state machine and good general knowledge of FC and SCSI standards
N 12527_04_2006_c1
SAN -3608
Cisco Public
Show Commands
Hundreds of show commands Unlike debug commands, much information from show commands is available via the fabric manager and device manager Many show commands can be several screen pages. Use show terminal command to see information about your telnet terminal properties.
Screen will pause at each screen unless terminal length is temporally configured different for current output
Setting terminal length = 0 helpful in gathering long outputs, i.e. show tech-support detail
N 12527_04_2006_c1
SAN -3608 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
Cisco Public
FC Analyzer Remote
Ethernet
Out-of-Band Management Network
FC Analyzer Local
Server2
Terminal
BOT-9216i
TOP-9216i
Server3 PAA
Fabric Manager and Device Manager Debugs and Show Commands, Telnet or Console
SAN -3608 12527_04_2006_c1
PC
Seagate 92:7b:94-S
Seagate 92:7b:c5-S
Seagate 67:67:87-S
Using Ethereal on PC (local and remote) Using the MDS port analyzer adapter w/SPAN Using an external FC Analyzer tester in line or with SPAN
Cisco Public
11
Output can go direct to your console screen or to a workstation running Ethereal program
Cisco Public
12
FC Analyzer Options
Local or remoteWhere to send the trace. Can be to local devices or remote PAA attached to different MDS switch.
Brief or detailedHeader information vs. full output of frame including hex. Detail is default.
Limit-captured-framesNumber of frames to capture. Default is FC analyzer will trace 100 frames. Specifying zero is unlimited frame capture. Limit-capture-sizeAllows to capture N number of bytes of frame. Useful for not capturing frame data when it is not relevant to troubleshooting.
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
13
Display-Filter Options
When not specified, FC analyzer will capture all traffic on VSAN 1
Example: fcanalyzer local brief
To specify a different VSAN, use a display-filter and specify the VSAN to be captured in hex or decimal
Example for 100 (note the two equal signs): fcanalyzer local display-filter mdshdr.vsan==0x64 or mdshdr.vsan==100
Recommend to use remote capture method for ease of filter capabilities on the Ethereal GUI
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
14
The file name on volatile: filesystem will have extra characters appended. Issue following command to see contents of filesystem and then copy the file via tftp/ftp
dir volatile: copy volatile:capture_00001_20050321172628.trc tftp://<tftp server ip addr>/capture.trc Added Characters
When File Is Written
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
15
Cisco Public
16
Brief Option Used to get Single Line Caption Along with a Display Filter to Narrow Output to only VSAN 2 Control-C Stops Trace Capture
Display filters are a must for narrowing output on a busy network. See MDS Config Guide for other filter types. Capture is done by default to console screen, so make sure you are able to save output to large capture buffer or log with your telnet application
N 12527_04_2006_c1
SAN -3608 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
17
VSAN 2
Class 3 Device
N 12527_04_2006_c1
Cisco Public
18
At DOS Prompt:
ethereal -i rpcap://10.91.42.183/eth2
Management 10/100 Port on MDS Address 10.91.42.183 SCSI HBA Workstation Running Ethereal IP Address 10.91.42.167
N 12527_04_2006_c1
SAN -3608 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
19
Ethereal on PC
Filters applied after capture or before. Filters are stored in application cache for later use.
Same Output as FC Analyzer Local but in Nice Format with the Ethereal GUI
Cisco Public
20
Cisco has released decodes for all FC protocols, the encapsulation header and SCSI decoder to public domain
Part of the popular Ethereal protocol analyzer
SAN -3608 12527_04_2006_c1
Cisco Public
21
TOP-9216i FC
FC
SD Port FC 2/16
Raid Array
Cisco Public
22
FC 1/2
FC 1/2 RX input is sent to FC 1/13 SD port FC 1/2 TX input is sent to FC 1/13 SD port Dropped
span session 1 destination interface fc1/13 source interface fc1/2 rx source interface fc1/2 tx
SAN -3608 12527_04_2006_c1
TX RX
TX RX
FC Analyzer
Cisco Public
24
RSPAN Requirements
All switches must be running MDS code 1.2 or later No cable should be attached to the SFP in the ST (SPAN Tunnel) port Make sure FC tunnel is UP before starting frame collection FC Analyzer can be a PAA and PC running Ethereal, or a Finisar-like analyzer
Cisco Public
25
Cisco Public
26
Cisco Public
27
Cisco Public
28
Lab 1
Lab intro Debug output example Ethereal tool usage PAA and SPAN usage FM and DM tool navigation
Seagate 92:7b:c5-S fc1/5 Server2 Seagate 92:7b:94-S
fc1/6 fc1/6 fc1/6
PAA
Seagate 92:7a:47-S
fc1/6
TOP-9216i
fc1/1
iscsi1/1 fc1/1
iqn.1991-05.com. mds-speed.server2
Server1
iqn.1991-05.com. microsoft:server2
Cisco Public
29
Inter-Switch LinkUnderstanding and Troubleshooting Switch Domains and VSANs Zoning Details Inter-VSAN RoutingIVR
Lab
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
30
SCSI
FC-3place holder for future functions FC-4defines how different protocols are mapped to use Fiber Channel
SCSI, IP, Virtual Interface Architecture, others
Cisco Public
31
Cisco Public
32
AC
AC
NOS
LF
LF
OLS LR
OL
LRR
LR LR
Idle
AC
Idle
AC
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
33
Tip:
Clear Counters and Monitor to Verify Active Issues, Use Device Manager Monitor Tool to Monitor Live; Set and Activate Threshold Manager to Alert You; TOP-9216i# clear counters interface fc 1/1
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
34
Cisco Public
35
Cisco Public
36
FC
TX RX
TX RX
FC Analyzer
N 12527_04_2006_c1
SAN -3608
Cisco Public
37
Cisco Public
38
Save off switch configurations or even complete show tech-support details regularly
Use CLI scheduler in SAN/OS to simplify process
Cisco Public
39
module-1# show hardware internal fc-mac port 2 stateinfo (older Line Cards) module-1# show hardware internal fc-mac2 port 2 state-info-log (newer Line Cards F-Port Point to Point Negotiated
LINK: 052 022180c5 LINK: 051 022180c3 LR_RECEIVE(03) =>ACTIVE(01) OLS_TRANSMIT(07) =>LR_RECEIVE(03)
LINK: 050 022180c1 SENTINAL(00) =>OLS_TRANSMIT(07) LOOP: 049 022180c1 HW_ALPAS(0d) MASTER_LISA_WAIT(1f)=> OLD_PORT(3f) LOOP: 048 022180c1 HW_ALPAS(0d) MASTER_LISA(1e)=> MASTER_LISA_WAIT(1f) LOOP: 047 022180c1 HW_ALPAS(0d) MASTER_LIHA_WAIT(1d)=> MASTER_LISA(1e) LOOP: 046 022180c1 HW_ALPAS(0d) MASTER_LIHA(1c)=> MASTER_LIHA_WAIT(1d) LOOP: 045 022180c1 HW_ALPAS(0d) MASTER_LIPA_WAIT(1b)=> MASTER_LIHA(1c)
LOOP: 044 022180c1 HW_ALPAS(0d) MASTER_LIPA(1a)=> MASTER_LIPA_WAIT(1b) LOOP: 043 022180c1 HW_ALPAS(0d) MASTER_LIFA_WAIT(19)=> MASTER_LIPA(1a) LOOP: 042 022180c1 HW_ALPAS(0d) MASTER_LIFA(18)=> MASTER_LIFA_WAIT(19) LOOP: 041 022180c1 HW_X_ARB(0c) MASTER_START(17)=> MASTER_LIFA(18) LOOP: 040 022180c1 HW_LISM0(0a) OPEN_INIT_SELECT_MASTER(06)=> MASTER_START(17) LOOP: 039 022180bf HW_R_LIP(09) OPEN_INIT_START(05)=> OPEN_INIT_SELECT_MASTER(06) LOOP: 038 022180bf HW_X_LIP(08) NORMAL_INITIALIZE(04)=> OPEN_INIT_START(05) LOOP: 037 022180bf HW_R_LIP(09) LPSM_STARTED(01)=> NORMAL_INITIALIZE(04) LOOP: 036 022180b0 HW_OLDP(07) LPSM_DISABLED(00)=> LPSM_STARTED(01) LINK: 035 022170e8 ACTIVE(01) =>SENTINAL(00)
2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
40
N 12527_04_2006_c1
SAN -3608
Cisco Public
41
Cisco Public
42
Target or Initiator Passed to Switch via PROCESS ACCEPT and ACCEPT Frames During Nameserver Login
OUI is Part of the PWWN and Is IEEE Assigned. 00:e0:8b is Assigned to Qlogic, 00:00:c9 is Assigned to Emulex, and 00:04:cf is Assigned to Seagate, Many Others
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
43
Cisco Public
44
Cisco Public
45
Cisco Public
46
HBA Login
Ethereal Application View
HBA and FC port on switch finish physical level handshake and HBA logs into port server a FF.FF.FE Login Server assigns FCID from Domain 6f (VSAN 200) 6F.02.00 HBA logs into Fabric Name Server HBA registers for State Change Notification, response comes back in frame 7 HBA asks Name Server for FC-4 FC devices registered in the server. Response comes back in frame 24 Name Server from VSAN 200 MDS9216-TOP quires HBA Name Server from VSAN 200 MDS9216-Bottom quires HBA HBA Port logs to FC-4 devices received from accept frame 24 HBA talks to SCSI devices
SAN -3608
N 12527_04_2006_c1
Cisco Public
47
Cisco Public
48
Gathering Internal Counter Information for Unknown Issues and Plaguing Connectivity Problems
Determine what ports on which switches you need to examine, this is done by narrowing to physical switch, VSAN, zone Look at path through complete network, initiator and target-side along with ISLs One stop shopping on each switch for all the data:
Attach to Line Card Module that has the interface you need information on
Cisco Public
49
show hardware internal fc-mac2 port 2 link-status show hardware internal fc-mac2 port 2 port-info show hardware internal fc-mac2 port 2 misc-statistics
Cisco Public
50
Lab 2
HBA Login Lab Physical Layer Troubleshooting Debugging Fibre Channel services
Cisco Public
51
ISL Connection
ISL connections require proper standards operation
FSPF routing Proper capabilities and parameter exchange
ISL will not fully initialize unless FC-SW rules are complete
TOP-9216i
BOT-9216i
Cisco Public
52
Cisco Public
53
Switch 2
Switch 3
Switch 4
Switch 5
Switch 6
N 12527_04_2006_c1
SAN -3608
Cisco Public
54
The selection process chooses a principal switch, which is then designated to assign domain identifiers to all the switches in the fabric, existing and new
Cisco Public
55
N 12527_04_2006_c1
SAN -3608
Cisco Public
56
Whenever a switch receives a BF/RCF, the switch starts F_S_TOV timer and enters the BF/RCF state; it forwards BF/RCF out of all E_ports except the incoming port (only once) and waits for the timer to expire When the timer expires, BF/RCF propagation state is over and principal switch selection begins
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
57
Domain IDs
CLI View
Cisco Public
58
Cisco TE EISL
TE Port SPAN to PAA
ACK1 Filter Applied Exchange Link Parameters Exchange Switch Capabilities Exchange Peer Parameters (This Is Proprietary to MDS Only to Determine if Connecting Switch Is Another MDS) Exchange Fabric Parameters Build Fabric Domain ID Assign by Existing Principal Switch Request Domain ID from New Switch Enhanced Zoning Merge Request Resource Allocation (New in FCSW3 Standard) Zone Merge Request
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
59
Domain ID Problems
Show interface Check fabric manager Check event logs
MDS9216-Bottom# sh int fc 1/9 fc1/9 is down (Isolation due to domain overlap) Hardware is Fibre Channel, SFP is short wave laser w/o OFC (SN) Port WWN is 20:09:00:0d:ec:0d:0c:c0 Admin port mode is E, trunk mode is off Port vsan is 500 Receive data field Size is 2112 Beacon is turned off 5 minutes input rate 360 bits/sec, 45 bytes/sec, 0 frames/sec 5 minutes output rate 264 bits/sec, 33 bytes/sec, 0 frames/sec 2433 frames input, 198208 bytes 0 discards, 0 errors 0 CRC, 0 unknown class 0 too long, 0 too short 2423 frames output, 128924 bytes 0 discards, 0 errors 19 input OLS, 22 LRR, 1 NOS, 26 loop inits 310 output OLS, 107 LRR, 13 NOS, 10 loop inits 255 receive B2B credit remaining 255 transmit B2B credit remaining
Cisco Public
60
Troubleshooting Zoning
Show zoning information from CLI on all switches in fabric
Show zone status
Is zone configuration stored and controlled from one switch or any/all switches? Make sure you are working with active zone when in CLI
zone copy active-zoneset full-zoneset vsan 5
*Key concern when working in mixed vendor interop VSANs
Verify distribution and default values (permit-deny) See event logs for clues about issues Verify device in logged into fabric
SAN -3608 12527_04_2006_c1 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
61
Zoneset Tools in FM
Where Is Active ZoneSet in Each VSAN Applied? Backup Zone Configuration to File on Server
Cisco Public
62
Cisco Public
63
ACC
Move the Zone Data to the Switches Trigger Switches to Activate the New Zoneset Unlock the Fabric
Cisco Public
64
Cisco Public
65
Domain ID limit rules in Interop VSANs also apply to the IVR Domains (97127 rule)
Cisco Public
66
TOP-9216i# sh ivr zoneset brief active zoneset name IvrZoneSet1 zone name Server2-IVR zone name Server1-IVR
Cisco Public
67
Lab 3
TE port initialization
Detailed look
Domain ID assignments
Adding a domain (switch) to the SAN
Zone merge
Rules of zoning
Cisco Public
68
Cisco Public
69
Q and A
Cisco Public
70
Recommended Reading
Continue your Networkers learning experience with further reading from Cisco Press
Cisco Public
71
Cisco Public
72
Cisco Public
73