Menu
How to create Zone and activate Zoneset Cisco MDS Switch. Here in below Example I will describe how to configure Zones and activate them to use multi pathing in Cisco Fabric Switches. Configuration may be various in different models. Simulator Of Cisco Mds 9000 Series Multilayer San Switches - posted in OTHER: Hi fellows, Can any one help me to find out the Simulator of Cisco MDS 9000 Series Multilayer SAN Switches, if available? Thanks in advance. IT Certification Forum.
The cisco fabric commands explained in this article are used to perform administration of fibre channel fabric switches including managing VSANs, administration of zonesets using Cisco MDS 9000 series fabric switches. Two Command Modes Switches in the Cisco MDS 9000 family have two main command modes:. User EXEC mode – To change the terminal settings, Display system information. Changes made in this mode are not saved across system reboot. Configuration mode – This mode is used to configure features that affect the system as a whole.
Changes made in this mode are saved across system resets. By default when you login to the switch, you will be in EXEC mode. You can change to configuration mode using “config t” on the EXEC shell prompt. The commands available to you at anytime depends on the mode you are in. To obtain a list of available commands in either mode, type a question mark (?) at the system prompt.
VSAN Basics A VSAN is a virtual storage area network (SAN). A SAN is a dedicated network that interconnects hosts and storage devices primarily to exchange SCSI traffic. In SANs you use the physical links to make these interconnections. A set of protocols run over the SAN to handle routing, naming, and zoning. You can design multiple SANs with different topologies. VSAN is used to create a multiple logical SANs over a common physical infrastructure. Each VSAN can contain up to 239 switches and has an independent address space that allows identical Fibre channel ID’s (FC Ids) to be used simultaneously in different VSANs.
VSAN 1 also known as default SAN is used for communication, management and testing purposes. Hence do not use VSAN1 as your production SAN. For example, in a company you may have Application servers, Database servers, Print servers, etc. Each classification may need to access storage and it can be on the separate VSAN on the switches. Application team’s servers can be on VSAN10, Database teams servers can be on VSAN20 & Print servers can be on VSAN30. The physical switches are grouped together while creating a VSAN. You can group SwitchA and SwitchB on VSAN10 and the same switches can be grouped on VSAN20 and so on but remember each FC port can be on only one VSAN.
The geographic location of the switches and the attached devices is independent of their segmentation into logical VSANs. No communication between VSANs is possible. Within each VSAN, all members can talk to one another. VSAN Advantages The following are few essential VSAN advantages:. Traffic isolation —Traffic is contained within VSAN boundaries and devices reside only in one VSAN ensuring absolute separation between user groups, if desired.
Scalability —VSANs are overlaid on top of a single physical fabric. The ability to create several logical VSAN layers increases the scalability of the SAN. Per VSAN fabric services —Replication of fabric services on a per VSAN basis provides increased scalability and availability. Redundancy —Several VSANs created on the same physical SAN ensure redundancy.
If one VSAN fails, redundant protection (to another VSAN in the same physical SAN) is configured using a backup path between the host and the device. Ease of configuration —Users can be added, moved, or changed between VSANs without changing the physical structure of a SAN.
Moving a device from one VSAN to another only requires configuration at the port level, not at a physical level. Up to 256 VSANs can be configured in a switch. Of these, one is a default VSAN (VSAN 1), and another is an isolated VSAN (VSAN 4094). User-specified VSAN IDs range from 2 to 4093.
All the commands that are available and its description from the EXEC mode on the switch can be obtained by typing “?” at the EXEC prompt. Since the command list is large, I am posting only some of the useful commands that may need to handle daily tasks.
Display VSANs To show the VSANs you can use the below command, SwitchA# show vsan vsan 1 information name:VSAN0001 state:active interoperability mode:default loadbalancing:src-id/dst-id/oxid operational state:up vsan 10 information name:VSAN10 state:active interoperability mode:default loadbalancing:src-id/dst-id/oxid operational state:up vsan 20 information name:VSAN20 state:active interoperability mode:default loadbalancing:src-id/dst-id/oxid operational state:up vsan 4094:isolatedvsan 2. Create new VSAN You can use the below commands to create the new VSAN and add the FC interfaces to the VSANs. SwitchA# config t SwitchA(config)# vsan database SwitchA(config-vsan-db)# vsan 20 (Creates the new VSAN with VSAN ID 20) SwitchA(config-vsan-db)# vsan 20 name VSAN20 updated vsan 20 SwitchA(config-vsan-db)# end SwitchA# config t SwitchA(config)# vsan database SwitchA(config-vsan-db)# vsan 20 interface fc1/32 (add the interface fc1/32 to VSAN20) SwitchA(config-vsan-db)# end 3. Show FCS Commands Below is the list of show commands available to display the port and FCS database information and to find the interfaces statistics on the switch. SwitchA# show fcs?
Database Show local database of FCS ie Show Interconnect Element Objects Information internal Show FCS internals platform Show Platform Objects Information port Show Port Objects Information statistics Show statistics for FCS packets. Vsan Show list of all the VSANs and plat-check-mode for each 4. Create Zones and Zone Sets A zoneset is a colections one or more zones. Each zone in a zoneset consists of multiple zone members.
These zones members can be FC ports of the initiator (also known as Hosts) and target (also known as Storage). Members in a zone can access each other and members in different zones cannot access each other. Also zone member can be part of multiple zones. Zones and zonesets can be managed from any switch in the fabric. When zone is activated, all the members of the fabric gets the activated zoneset information and it is distributed across all the switches in the fabric. Here is an example for how to create zonesets and zones. SwitchA# config t SwitchA(config)# zoneset name TestZoneset1 vsan 10 SwitchA(config-zoneset)# member TestZone1.
The first command is used to enter in to configuration mode. The second command creates a zoneset known as “TestZoneset1” with VSAN 10. So all the FC members with VSAN10 can be part of this zone. The third command, is used to add the zone to the newly created zoneset. You can use the below commands to create a new zone and add FC members to the zone First, change to configuration mode. SwitchA# config t Create the zone name “TestZone1” on vsan10 SwitchA(config)# zone name TestZone1 vsan 10 SwitchA(config-zone)# 5.
Add Member to a Zone The below commands is used to add member to a zone. The members can be fcalias, FCID, pWWN, fWWN or a domain ID. The syntax is given below, SwitchA(config-zone)# member To add pWWN(generally known as Host port) to a zone: SwitchA(config-zone)# member pwwn 10:00:00:XX:XX:XX:XX:XX To add Fabric fWWN(Generally known as storage port) to a zone: SwitchA(config-zone)# member fwwn 10:01:10:XX:XX:XX:XX:XX To add FC ID to a zone: SwitchA(config-zone)# member fcid 0xce00d1 To add FC alias to a zone SwitchA(config-zone)# member fcalias Host110 Note: you can create the fcalias for a WWPN as shown in the next topic. To Add Domain ID to a zone: SwitchA(config-zone)# member domain-id 2 portnumber 23 6.
Create Alias The below commands are used to create alias name for the FC ports WWPN’s which can be used in the zoning. SwitchA(config)# fcalias name Host110 vsan 10 SwitchA-config-fcalias# member pwwn 10:00:00:XX:XX:XX:XX:XX The above commands create alias called Host110 for the PWWN (10:00:00:XX:XX:XX:XX:XX) on the VSAN 10. These are other examples to create alias for FCID, PWWN, FWWN SwitchA-config-fcalias# member fcid 0x222222 Configures alias members based on the specified FC ID type and value (0x222222). SwitchA-config-fcalias# member pwwn 10:00:00:XX:XX:XX:XX:XX Configures alias members based on the specified port WWN type and value (pWWN 10:00:00:23:45:67:89:ab). SwitchA-config-fcalias# member fwwn 10:00:00:XX:XX:XX:XX:XX Configures alias members based on the specified fWWN type and value (fWWN 10:01:10:01:10:ab:cd:ef). Activate Zoneset Once the zone are created, you need to activate it otherwise the changes will not take effect Here are the steps to activate a zoneset, SwitchA# config t SwitchA(config)# zoneset activate name TestZoneset1 vsan 10 The following are few show zone sets commands that you might use frequently:. show zone – Displays zone information for all VSANs.
show zone vsan 1 – Displays zone information for a specific VSAN. show zoneset vsan 1 – Displays information for the configured zone set.
show zoneset vsan 2-3 – Displays configured zone set information for a range of VSANs. show zone name Zone1 – Displays members of a zone. show fcalias vsan 1 – Displays fcalias configuration. show zoneset brief – Displays brief descriptions of zone sets. show zone active – Displays active zones.
show zone status – Displays zone status. show zone – Displays zone statistics.
Recently I’ve been lucky enough to be challenged with learning a bit about Fibre Channel Switching, but I’m even luckier in that I’m getting to know it on a set of MDS switches running NX-OS (previously referred to as SAN-OS). So far, I’ve learned the basics of getting things to work, but nothing really beyond that. As the SAN world has always been a mystery to me, I figured I would share what I’ve learned with other engineers that are at least looking for a baseline look into the storage network. New Terminology First, lets familureize ourselves with a few terms that we may run into when dealing with the very basics of FC switching. WWN: World Wide Name, think 8-byte MAC address.
Also pWWN/sWWN (Port/Switch WWN) — This is the addressing of the Fibre Channel world. All of our configs are going to use pWWNs (Port World Wide Names, which actually refer to the node, or Nport). vSAN: A vSAN is a virtual collection of ports, sort of like a VRF, or even a vDC (but within the same management plane) — Each port can only be a member of one vSANs. — From my understanding, This is a Cisco specific technology typically used to create at least one unique vSAN per switch. This defines the two (or more) distinct fabric paths.
Zone: a Zone is a grouping of ports inside a vSAN used to control which devices can speak with other devices. Devices can be members of multiple zones. Devices in different Zones cannot speak to each other. — Think VLAN. Nport: Node Port — Could be a Host, or Storage device. Fport: Fabric port — Connects to an Nport. FLOGI: Fibre Channel Logins — Used to exchange device information.
Including WWNs Configuration First, we’re going to define the group of ports we’re using. Descriptions are set, and since the MDS is licensed per port, you have to enable the license for that port. I also ensure that each of these ports are not shutdown. Network engineer currently servicing the enterprise data center market. I started working on networks in the ’90s and still feel like that was just a few years ago. Jack of all trades, master of none; I love to learn about everything. Feel free to ask me about photography, woodworking, nhra, watches, or even networking!
— For feedback, please leave a comment on the article in question, and I’ll gladly moderate it several weeks later. For everything else including fan mail or death threats, contact me via twitter.