Professional Documents
Culture Documents
Zoning in Brocade FC SAN Switch For Beginners - SAN Enthusiast
Zoning in Brocade FC SAN Switch For Beginners - SAN Enthusiast
SAN Enthusiast
Everything related to Storage area networks, Storage, Virtualization, Cloud, HPC.
Dear reader, Welcome to the ᮛ鮛ber channel world. When you are
learning Storage Area Network and Storage technology the instructor
will often talk about zoning and zones. Data access from a centralized
location to hosts in data centers is achieved using a switched network.
Zoning allows us to create a path from host to a storage array. In other
words, zoning is a process in which the fabric is logically partitioned. In
this article, we discuss what is zoning and how it is done on a Brocade
switch.
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 1/12
7/3/2016 Zoning in Brocade FC SAN switch for beginners SAN Enthusiast
Why Zone?
Typically most SAN switches will have at least 8 to 16 ports. At most SAN
directors will have the ports more than 250. In a traditional data center, fabric
and the storage array is given more importance and are always redundant to
avoid unexpected and unnecessary downtime. A single switch with 8 ports can
connect to 8 di삔鴀erent devices or 4 devices (two connections per device for
redundancy). What if the switch itself goes o쁽埿ine? In that case, nothing can be
done. Therefore, even a small server room with SAN fabric is designed with two
or more switches for redundancy.
Why zone? The answer is, to be able to avoid unnecessary tra䃨�c between
devices participating in fabric and to enhance security. By creating zones we are
logically partitioning the fabric so that the communication happens only with
the intended devices. Most popular vendors of storage networking are Brocade
and Cisco. Devices from both these vendors do the same thing but the
con䃎 guration greatly varies. In this article, we discuss how we perform zoning
in 䃎 ber channel switches manufactured by Brocade. Before jumping into the
procedure let’s spend some time to understand the basics of zoning.
Basics of Zoning
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 2/12
7/3/2016 Zoning in Brocade FC SAN switch for beginners SAN Enthusiast
Each device in a 䃎 ber channel fabric will have a unique Word Wide Name
(WWN). WWN is a unique identi䃎 er which is burned into the hardware. Each
vendor gets their own identi䃎 er. It is a 64-bit address. It is similar to an MAC
address that you 䃎 nd in a NIC. There are two types of WWNs,
What this means in terms of zoning is that we can identify devices in fabric
using WWNN or WWPN. The idea is to bind WWPN’s of intended devices (ports)
together. This binding is called zoning and it enables the devices to
communicate with each other. The following picture describes our environment
for which we are going to perform zoning. The steps illustrated in the article
must be performed on the switch shell access. If you are by any chance logged
in to the GUI, login to switch using SSH or Telnet.
Preparation
When you access shell of a device you carry a great responsibility. Executing
wrong commands or typos will cause adverse e삔鴀ects, In order to avoid such
mistakes, we must note down the WWN’s of the device which we are going to
zone together and must decide on naming convention for them. Most IT
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 3/12
7/3/2016 Zoning in Brocade FC SAN switch for beginners SAN Enthusiast
switch:admin> switchshow
The 10:XX:XX:XX:XX:XX:XX:XX that you see on the image is the WWPN of the
device connecting in that port. It can be a storage array, HBA port or another
switch. We will use this WWPN of the connecting device to zone with another.
As an example let’s assume the following values,
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 4/12
7/3/2016 Zoning in Brocade FC SAN switch for beginners SAN Enthusiast
In the next step we are going to zone HBA1 with Storage Array port 1 and HBA2
with Storage Array port2.
The WWPN that we just noted down is not easy to remember and it is not easy
to type while zoning. To reduce the complexity and to avoid error we create an
“Alias” for each WWPN or a group of WWPN’s. Alias is a logical group of a
single WWPN or a number of WWPN’s.
Step 1: Let’s assign an alias for each WWPN Following is the syntax,
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 5/12
7/3/2016 Zoning in Brocade FC SAN switch for beginners SAN Enthusiast
Step 2: Now we are going to create two zones with two aliases in them (1 host
port and 1 storage port)
Step 3: Next step is to create a con䃎 guration which will hold the zones that we
just created. The following command creates a con䃎 guration named
“AppServer” and then adds both zones to it.
Final Step: Now that we have created a con䃎 guration we must enable it for it to
act, following syntax enables AppServer con䃎 guration. At any given time there
can be only one active con䃎 guration. But in switch database, there can be
multiple.
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 6/12
7/3/2016 Zoning in Brocade FC SAN switch for beginners SAN Enthusiast
And we are done, congratulations! The switch should be able to let the host and
storage talk to each other. Hope you 䃎 nd this useful. Zoning in Cisco is a work
in progress. Below are some important commands that makes zoning easier. Got
question? post it in the comments section.
Related:
In "Cisco"
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 8/12
7/3/2016 Zoning in Brocade FC SAN switch for beginners SAN Enthusiast
In "Brocade"
Sometimes the port on Brocade SAN Switch change its state to No_Sync, It means the SFP is
seeing light but the frames are out of sync. This state change can occur on any type of port. If there is
a host connected simply reboot the host or disable and enable the…
In "Brocade"
Author: Azhagarasu A
Follow me on Twitter : https://twitter.com/Azhagarasu View all posts by Azhagarasu A
Update: The entire post is re written to include more basic information. Hope
you find it useful. Thank again for the feedback.
△ ▽ • Reply • Share ›
Dwan,
Thank you for the feedback, I will edit the post to include more information.
△ ▽ • Reply • Share ›
# cfgsave “cfg1″
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 9/12
7/3/2016 Zoning in Brocade FC SAN switch for beginners SAN Enthusiast
# cfgsave “cfg1″
Whatever you have mentioned from Brocade Best Practices Guide makes
absolute sense. Hard and Soft is definitely about Enforcement Method but at the
same time we should also remember there is nothing wrong in using it as an
Identification Type.
Hard is not a wrong terminology which can be used as identification even though
it really means the enforcement method.
Please remember this topic is posted for Beginners in San World and i dont think
there is anything wrong in using these terms
△ ▽ • Reply • Share ›
I don't agree to the above stated because as you know plogi should
happen for the devices to establish a session. for plogi to happen a
zonning has to be defined (otherwise there should be defzone
enabled) plogi aka port login is nothing but exchange of ULP,
buffer credit etc.. between devices. So the nature of zoning really
does matter if you have done port based login and connected
initiators in all the ports it really not going to make any sense. For
example let us consider "single initiator zoning" a single initiator
(single HBA port) and any number of target ports is always
recommended to be in one zone. why do all vendors recommend
single initiator zoning? because to avoid collision between
initiators and to segment the total available bandwidth.
Why we don't follow port based zoning very often? (hard zoning)
The answer is simple, in case the port goes bad you do not have to
modify zoning instead you can just swap the cable to a unused
port.
I have worked in support and i have seen such cases very often
even in 16 Gbps platform.
△ ▽ • Reply • Share ›
1. Take all the LUNs offline which are provisioned from this array
2. Gracefully shut down the nodes one by one or all at a same time (if there is an
option)
3. Power down the disk enclosures one by one follow top to bottom approach.
http://sanenthusiast.com/zoninginbrocadefcsanswitchforbeginners/ 12/12