Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
101
CCIE
SAN
Study
Group
FICON
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) SAN-OS Mainframe
Configuring FICON
FICON
FICON Terminology
FICON
FICON
Introduction to FICON
FICON Protocol Layer
FICON is Fibre Channel FC-4 layer protocol It is at the same layer as FCP protocol Fibre Channel Single Byte Command Code mapping protocol is described in FCSB3, FC-SB4 FC-SB2 is an older version. FC-SB3-4 is superset.
Ref: www.t11.org
Physical Variant
2010 Cisco Systems, Inc. All rights reserved.
SCSI 3/4
FC - 4 FC - 3
FC-SB2/FC-SB3 (FICON)
Common Services FC - 2 FC - 1 FC - 0
FICON
Encode/Decode (8/10)
FICON Terminology
A Channel is a physical entity/element of the processor, acting as the interface between the CPU and the CU
A Channel Image instantiates multiple, logical channels behind a physical channel
A Channel Path includes the interface adapter, physical fiber pair, and up to two intervening FICON switches/directors between the channel and the CU A Channel Path Identifier (CHPID) is a single hexadecimal byte value identifying each channel path to the system
FICON
FICON Terminology
Outboard I/O processors called Control Units (CUs)
CUs can be stand-alone or integrated in peripheral devices CUs are identified by a two-byte hexadecimal CUNUMBER A Control Unit Image instantiates multiple, logical CUs behind a physical CU
A Device Address (aka Unit Address) is a decimal value that selects a specific device on a given CU image
FICON
FICON Terminology
A Channel is an entity typically mapped to an N-port in a host computer which performs access to I/O devices
M A I N F R A M E
IBM
N Port
A Control Unit is the interface to I/O devices such as printer, disks etc.
N Port
Legend
Physical Logical
FICON
There can be multiple Control Unit images behind each Control Unit
8
FICON Terminology
A Logical Partition (LPAR) is a subset of mainframe resources, dedicated to implementing a particular programming environment
Each LPAR functions independently of other LPARs and is protected against the actions of poorly-behaved LPARs Resources such as CHPIDs (Channel Path Identifier) may be shared between LPARs
FICON
MIF
LPARs can share channels Multiple Image Facility (MIF)
MIF LPAR 1
N_Port CU
Channel
N_Port
LPAR 2
LPAR n
N_Port CU
FICON
10
FICON Terminology
An Output Port is the FICON director or switch port that connects to the CU
In a switched point-point environment, it can be a single byte hexadecimal value identifying the director/switch port number connected to the CU FICON port numbering schemes are proprietary to the switch vendor/ model; typically different than whats used for FC config The port number may also be added with the switch domain ID to form a two-byte Output Port value if supported by the CU In a cascaded environment, Output Port must be a two-byte value derived from the non-Entry Switch
FICON
11
CH = Initiator CU = Target
Switch ID = Domain ID
FICON
12
FICON Terminology
The Input Output Control Program (IOCP) is a mainframe application that defines the Input Output Control Data Set (IOCDS), which the mainframe uses to define & identify control units, devices, channel paths, channels and their relationships to each other. I/O definition file (IODF) All of the terms weve just covered are required IOCP/ IOCDS parameters
FICON
13
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
14
FICON Topologies
A Point-to-Point (direct connection) A Switched Point-Point Environment results when there is one FICON director/switch in the channel path between the channel and CU A Cascaded Environment results when two FICON directors/ switches are connected in series along the channel path between the channel and CU An Entry Switch is the FICON director or switch connected to the channel via the channel path
In a cascaded environment, the Entry Switch is first switch encountered in the channel path from the channel to the CU The Entry Switch is identified by a single hexadecimal byte equal to its FC domain ID
FICON
15
FICON
16
FICON Addressing
8
Link address
Link Address
FICON defines concept of link address. Each channel and control unit have one unique link address. In older versions, link address used to be single byte and could only be used in single switch environment FC-SB3 defines two byte link addresses which allow more than one switch in FICON path. Link addresses are mapped to FCID as depicted in figure.
Domain
Area
Port
Domain
Area
Port
19
FICON
20
HCD Cascaded
FICON
21
22
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
23
CH to Switch
CH to CU
FICON
24
Defined In FC-FS
Defined In FC-GS
port-wwn (vendor) :50:05:07:63:00:c2:04:2b (IBM) node-wwn :50:05:07:63:00:c0:04:2b class :2,3 node-ip-addr :0.0.0.0 ipa :ff ff ff ff ff ff ff ff fc4-types:fc4_features:scsi-fcp fcsb2-ch-cu fcsb2-cu-ch [snip]
FICON
25
26
QSA Accept
QSA Accept sent if Security Features enabled
Bit Meaning 0 1 2 3 4 5 6
0000 0011 Bit 0 & 1 are on 7654 3210 BIT numbers
Fabric Binding Static DomainID Soft Zoning Hard Zoning SLAP SRP MS CT Authentication
7-31 Reserved
27
FICON
FICON
28
FICON
29
RNID Accept
Accept is broken into two sections:
Common ID Field - shows pWWN and nWWN. Ignored by FICON Specific ID Data shows SB-2, FCID, Name, Manufacturer, Model..
FICON 2010 Cisco Systems, Inc. All rights reserved.
30
31
Channel to Control Unit to verify optional parameters and verify logical path LPE Sent from Control Unit to Channel as verification of logical path and pass optional parameters LACK Close exchange
FICON
32
Frame Format
FC-SB-3 Frame Format
Bytes: 4 Idles
S O F
24
FC Header
32
FICON Header
4
E CRC O F
4 Idles
Bit 0
Reserved IUI Reserved
7 8
CH_ID DH_FLGS Device Address
15 16
Reserved
23 24
CU_ID Reserved CCW Number Token
31
Command / Data / Status / Control / Link Header Reserved IU Count LRC DIB Data Count
DIB Header
FICON
33
FICON Channel
Command DIB (READ) Command DIB (RSP) Data DIB Data DIB Status DIB
FICON CU
FCP Initiator
FCP_READ FCP_DATA FCP_DATA FCP_RSP
FCP Target
FICON
34
FICON Channel
Command DIB (WRITE) Command DIB (RSP) Data DIB Data DIB Status DIB
FICON CU
FCP Initiator
FCP_WRITE FCP_XFER_RDY FCP_DATA FCP_DATA FCP_RSP
FCP Target
FICON
35
Flow Control
FICON uses standard FC-2 BB_Credit flow control FICON also uses IU Pacing: Similar to Fibre Channel EE_Credits IU Pacing credit is sent to the channel by the CU Indicates the maximum number of IUs a channel can send before a command response IU is expected
IU Pacing CRR
Channel N_Port
CMR Frames
F_Port E_Port E_Port F_Port
CU N_Port
FC-2 BB_Credit
FICON 2010 Cisco Systems, Inc. All rights reserved.
36
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
37
Linux Support
IBM zSeries supports Linux LPARs: Allows Linux to access ESCON/FICON storage Linux also supports open systems FCP: Same adapters used for FICON and FCP Different firmware versions Applications: CPU-intensive workloads FICON Server/storage FICON consolidation LINUX FCP NPIV (like MIF for FCP channels)
z/OS FICON
FICON
FC FC
FC FC
FC
FC
FC
FC
zSeries server
FICON 2010 Cisco Systems, Inc. All rights reserved.
38
FICON
39
FICON
40
Channel Extension
Channel extension is different than distance extension:
Distance extension simply means extending FICON over a WAN Channel extension involves protocol translation Channel extenders proxy some commandse.g. writesto increase performance over distance MDS does not do channel extension in SAN-OS 3.X
FICON
41
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
42
Explanation
Since Link addresses are mapped to FC-ID, FICON requires FC-Ids to be predictable and persistent. FICON also requires uniform port byte (last byte in FC-ID) in FICON fabric.
Link Incident Record (LIR) ELS reports link level events in the fabric to the channel N-port. Examples of link incidents are loss of signal or synchronization, primitive sequence timeout, Invalid primitive sequence, NOS received Concept similar to RSCN
Report Node Identification (RNID) ELS Large Buffer to Buffer Credit Allocation
RNID is an ELS command, which can have common and specific Node data. FICON defines a specific node data field format. FICON requires 60 B2B credit for 100 Km and 6 B2B credit for 10 Km. MDS 9000 FICON supports up to 255 B2B Credits per Port + extended buffer credits
FICON
43
Explanation
Since Link addresses are mapped to FC-ID, FICON requires FC-Ids to be predictable and hence Domain ID to be static in cascaded FICON switches.
In-order Delivery
Fabric Binding feature prevents unauthorized switches joining the fabric based on switch WWNs. Exchange Fabric Membership Data (EFMD) is used to distribute this information fabric wide.
FICON requires Fabric Binding and Insistent Domain ids to be enabled in the entire fabric. Query Security Attribute (QSA) is used by Channels to ensure these features are turned on. Exchange Security Attribute (ESA) is used by switches to validate these attributes during E port bringup.
FICON
44
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
45
FICON
46
FICON Manager
FICON Manager is responsible for:
- Providing CMI interface for configuration - Serialization of FICON config - Maintain and apply FICON configuration files - Port Number Allocation and assignment - Port Address Allocation and assignment - Consistency Checks during enabling of FICON - Maintaining port numbers in FICON VSANs - Interact with ACL Manager for necessary ACLs during port bringup - Exchanging new ELS During E-port bringup
FICON
47
SNMP
GUI
FC2
Others
Vsan Manager
Port Manager
FICON
48
Shared lock for file access Proprietary IBM format IPL contains the following attributes for each implemented port:
- Port Address Name - Host Control - Block - Prohibit Dynamic Connectivity Mask
FICON
49
Slot
1 2 3 4 5 6 7 8 9 10 11 12 13 Max Physical* Port Channels
9509
0 - 31 32 - 63 64 - 95 96 - 127 --128 - 159 160 - 191 192 - 223
9513
0 - 15 16 - 31 32 - 47 48 - 63 64 - 79 80 - 95 --96 - 111 112 - 127 128 - 143 144 - 159 160 - 175
Installed/Uninstalled Port
Only ports participating in FICON VSANs are considered installed i.e. If port 4 is in a FICON VSAN on a 16 port line card in a chassis, then ports 0-3, 5-31 are considered uninstalled
Port number is the physical location on the switch Port address is:
- - - - Port name Block/Unblock state Connectivity attributes Same as port number unless port swapped
256 possible port number/addresses for 9509 (8 bits, some unimplemented) 0xFE and 0xFF reserved An FCIP tunnel must be explicitly bound to a port number for FICON
- Available port numbers depends on the slot the IPS blade is located in
40 40-55
64 64-79
128 128-143
224 224-249
FICON
51
FICON States
Various states for FICON STATE Enabled Disabled Up Down Meaning
User has configured FICON on a given VSAN. User configures a non-FICON vsan. FICON enabled and all prerequisites met FICON enabled, but one or more prerequisites not satisfied
FICON
52
FICON Prerequisites
Before FICON is up, FICON manager must check prerequisite conditions:
In-order delivery enabled Fabric Binding Insistent Domain ID No conflicting persistent FCIDs - Does not allow user configuration for reserved range: D.0.0 thru D.MaxPa.0 where: D is domain MaxPa is max Port Addr implemented in FICON
FICON
53
FICON
54
FICON
55
Physical Port A
FICON 2010 Cisco Systems, Inc. All rights reserved.
Physical Port B
56
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
57
FICON
58
(FCD)
- Acquiring persistent pWWN for Control Device - Uses Key-Based Chassis Specific (KCS) WWNs - Uses VSAN based nWWN - Acquiring FCID from FPort server - 0xFE is well defined address required - FCID will be <domain, 0xFE, 00> for Control Device - Device allegiance based Serialization of FICON config - Support for both SB-3 configuration and query commands
FICON
59
FICON
60
HCD - CUP
FICON
61
switch2# show flogi database vsan 1977 --------------------------------------------------------------------------INTERFACE VSAN FCID PORT NAME NODE NAME --------------------------------------------------------------------------sup-fc0 1977 0x4dfe00 22:00:00:05:30:00:46:e0 27:b9:00:05:30:00:46:df Total number of flogi = 1.
FICON 2010 Cisco Systems, Inc. All rights reserved.
62
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
63
FICON
64
Next we move interfaces fc1/9 and fc2/1 into PortChannel 1 switch1(config-if)# int fc1/9 switch1(config-if)# channel-group 1 force fc1/9 added to port-channel 1 and disabled please do the same operation on the switch at the other end of the port-channel,then do "no shutdown" at both ends to bring them up switch1(config-if)# int fc2/1 switch1(config-if)# channel-group 1 force fc2/1 added to port-channel 1 and disabled please do the same operation on the switch at the other end of the port-channel,then do "no shutdown" at both ends to bring them up
FICON
65
FICON
66
CLI RLIR
MDS-1# show rlir ?
erl history internal recent statistics Show Established Registration List Show link incident history Show RLIR internal Show recent link incident Show RLIR Statistics
FICON
67
FICON
68
FICON
69
FICON
70
FICON
71
FICON
72
FICON
73
FICON
74
FICON
75
FICON
76
FICON
77
FICON
78
Offline SW = Enables ability for Host to disable FICON or offline MDS Sync Time = Enables ability for Host to sync MDS time with Host Port Control Host = Enables ability for Host to Name, Prohibit, Block MDS ports Port Control SNMP = Enables ability for Device Manager to Name, Prohibit, Block MDS ports Active=Saved = Enables ability for IPL (ficon running configuration) to be saved automatically and immediately
FICON
79
FICON
80
FICON
81
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
82
FICON
83
FICON
84
Vary devices D40 through D74 online. I/O errors occur because the volumes at these addresses are not initialized. V D40-D74,ONLINE IEF503I UNIT 0D50 I/O ERROR IEF503I UNIT 0D51 I/O ERROR ... Following command automatically executed based on the range that was varied on in previous command. D U,,,0D40,00052,L=OZI-Z VARY RANGE DISPLAY IEE457I 10.55.06 UNIT STATUS 198 UNIT TYPE STATUS VOLSER VOLSTATE 0D40 3390 O PPRD40 PRIV/RSDNT 0D41 3390 O PPRD41 PRIV/RSDNT 0D50 3390 OFFLINE /RSDNT
FICON
85
TSO
FICON
86
FICON
87
FICON
88
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
89
Default configuration
- No change for 1, 2, 6 and 9 slot chassis
- 13 slot chassis will have 11 slots w/ 16 port-numbers each
HA compatibility
FICON
90
Configuring Port-Numbers
Consider the following 9509 with LC modules in slots 2, 3, 4, and 8 switch1# sh Mod Ports --- ----2 24 3 8 4 16 5 0 6 0 8 4 module Module-Type -------------------------------1/2/4 Gbps FC Module IP Storage Services Module 1/2 Gbps FC Module Supervisor/Fabric-1 Supervisor/Fabric-1 10 Gbps FC Module
Finding out what is assigned this example show the defaults for a 9509
switch1# show ficon port-numbers assign ficon slot 1 assign port-numbers 0-31 ficon slot 2 assign port-numbers 32-63 ficon slot 3 assign port-numbers 64-95 ficon slot 4 assign port-numbers 96-127 ficon slot 7 assign port-numbers 128-159 ficon slot 8 assign port-numbers 160-191 ficon slot 9 assign port-numbers 192-223 ficon logical-port assign port-numbers 224-249
FICON
91
Configuring Port-Numbers
Unreserve FICON port-numbers from an unused slot, slots 1, 7, & 9 in this case switch1# show ficon port-numbers assign ficon slot 1 assign port-numbers 0-31 ficon slot 2 assign port-numbers 32-63 ficon slot 3 assign port-numbers 64-95 ficon slot 4 assign port-numbers 96-127 ficon slot 7 assign port-numbers 128-159 ficon slot 8 assign port-numbers 160-191 ficon slot 9 assign port-numbers 192-223 ficon logical-port assign port-numbers 224-249 switch(config)# no ficon slot 1 assign port-numbers 0-31 switch(config)# no ficon slot 7 assign port-numbers 128-159 switch(config)# no ficon slot 9 assign port-numbers 192-223
FICON
92
Configuring Port-Numbers
The output should reflect the current status for all the ports switch(config)# do show ficon vsan 2 portaddress brief | inc fc2 0x80 0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 0x8a 0x8b 0x8c 0x8d 0x8e 0x8f 0x90 0x91 0x92 0x93 0x94 0x95 0x96 0x97 0x80 0x81 0x82 0x83 0x84 0x85 0x86 0x87 0x88 0x89 0x8a 0x8b 0x8c 0x8d 0x8e 0x8f 0x90 0x91 0x92 0x93 0x94 0x95 0x96 0x97 fc2/1 fc2/2 fc2/3 fc2/4 fc2/5 fc2/6 fc2/7 fc2/8 fc2/9 fc2/10 fc2/11 fc2/12 fc2/13 fc2/14 fc2/15 fc2/16 fc2/17 fc2/18 fc2/19 fc2/20 fc2/21 fc2/22 fc2/23 fc2/24 off off off off off off off off off off off off off off off off off off off off off off off off not not not not not not not not not not not not not not not not not not not not not not not not installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed installed -------------------------------------------------
FICON
93
Configuring Port-Numbers
Also the running config will show the newly reserved ports
Switch-9509(config)# do sh run | incl assign no ficon slot 1 assign port-numbers ficon slot 2 assign port-numbers 128-151 force no ficon slot 7 assign port-numbers no ficon slot 9 assign port-numbers
FICON
94
Configuring Port-Numbers
Assign logical port-numbers for FCIP interfaces and Port-channels switch(config)# ficon logical-port assign port-numbers 16-31,224-249
Switch-9509(config)# do sh run | incl assign no ficon logical-port assign port-numbers no ficon slot 1 assign port-numbers ficon slot 2 assign port-numbers 128-151 force no ficon slot 7 assign port-numbers no ficon slot 9 assign port-numbers ficon logical-port assign port-numbers 16-31, 224-249 force
FICON
95
FICON Applications MDS Requirements FICON Manager FICON Control Unit Process (FCD) Configuring FICON SAN-OS Mainframe SAN-OS 3.0 Update Troubleshooting FICON Summary
2010 Cisco Systems, Inc. All rights reserved.
FICON
96
FICON
97
CUP Troubleshooting
Collect the following:
show tech-support details show ficon control-device sb3 show ficon control-device internal info show ficon control-device internal event-history vsan x (x=ficon vsan) show ficon control-device internal event-history errors show ficon control-device internal event-history msgs show ficon control-device internal event-history vsan <x> sh ficon internal event-history errors sh ficon internal event-history msgs sh ficon internal event-history vsan <x>
FICON
98
Basic Troubleshooting
Troubleshoot port problems (performance, failing) like any other case. Assume the switch is the problem and rule it out! attach mod x term len 0 show hardware internal debug-info interface fc x/x clear asic-cnt list-all-devices clear asic-cnt all clear asic-cnt device-id 3 From Supervisor show flogi internal event interface fcx/y (for both CH and CU interfaces) show port internal event-history interface fcx/y show ficon internal event-history vsan x interface fcx/y. show ficon internal event-history vsan 1 show ficon internal event-history msgs show ficon internal event-history errors show ficon internal info
FICON
99
Basic Troubleshooting
The list of commands that are useful from SAN-OS(later NX-OS) CLI: Setup ficon ficon slot X assign port-numbers 48-63 show ficon port-numbers assign slot 3 show ficon port-numbers assign logical-port show ficon vsan X portaddress brief show ficon vsan vsan-id file name filename portaddress show ficon vsan 20 portaddress 8 counters ficon swap portnumber old-port-number new-port-number ficon swap interface old-interface new-interface clear ficon vsan 1 allegiance ficon vsan 2 apply file SampleFile ficon vsan vsan-id offline ficon vsan vsan-id online show ficon control-device sb3 vsan X show flogi database vsan X
FICON
100
FICON
101
Summary / Review
FICON uses the Single-Byte Command Code Sets-3 (SB-3) and Single-Byte Command Code Sets-4 (SB-4) Three types of FICON topologies: Point-to-point, Switched point-topoint (via a FICON Director) ,Cascaded FICON Directors (through two FICON Directors) For FICON, there is a maximum of 1 hop from CH to CU Allow for fabric-binding between FICON fabrics Utilize setup ficon command Utilize GUI (FM - DM) for basic troubleshooting / configuration
FICON
102
References
FICON Planning and Implementation Guide: http://www.redbooks.ibm.com/abstracts/sg246497.html?Open MDS FICON Configuration Guide: http://www.cisco.com/en/US/docs/switches/datacenter/ mds9000/sw/4_1/configuration/guides/cli_4_1/ficon.html MDS Fabric Manager Configuration Guide http://www.cisco.com/en/US/docs/switches/datacenter/ mds9000/sw/4_1/configuration/guides/fm_4_1/ficon.html
FICON
103
Thanks for attending this session and Good Luck in your CCIE Journey
FICON
104
FICON
105