Showing posts with label CISCO MDS. Show all posts
Showing posts with label CISCO MDS. Show all posts

Thursday, March 12, 2015

MDS Series Switch Zoning via CLI


Zones are configured within VSANs. The Logical tab displays the VSANs configured in the currently discovered fabric. 
Note: zone information must always be identical for all the switches in the network fabric.

To configure a zone and assign a zone name, follow these steps:

Configuring an Alias

To create an alias using the fcalias command, follow these steps:


Command
Purpose
Step 1 
switch# config t
Enters configuration mode.
Step 2 
switch(config)# fcalias name Alias_Sample vsan 3
switch-config-fcalias#
Configures an alias name (Alias_Sample).
   Step 3
switch-config-fcalias# member pwwn xx:xx:xx:xx:xx:xx:xx:xx
Configures alias members based on the specified port WWN type and value (pWWN xx:xx:xx:xx:xx:xx:xx:xx).

Creating Zone Sets

A zone set consists of one or more zones. A zone can be a member of more than one zone set and consists of multiple zone members. Members in a zone can access each other; members in different zones cannot access each other. Devices can belong to more than one zone.
A zone set can be activated or deactivated as a single entity across all switches in the fabric. Only one zone set can be activated at any time. If zoning is not activated, all devices are members of the default zone. If zoning is activated, any device that is not in an active zone (a zone that is part of an active zone set) is a member of the default zone.
Zoning can be administered from any switch in the fabric. When you activate a zone (from any switch), all switches in the fabric receive the active zone set. Additionally, full zone sets are distributed to all switches in the fabric, if this feature is enabled in the source switch.

Command

Purpose

Step 1 
switch# config tEnters configuration mode.

Step 2 
switch(config)# zoneset name Zoneset1 vsan 3
switch(config-zoneset)#
Configures a zone set called Zoneset1.

Step 3 
switch(config-zoneset)# member Zone1Adds Zone1 as a member of the specified zone set (Zoneset1).

Step 4 
switch(config-zoneset)# zone name 
first-new-zone
switch(config-zoneset-zone)# 
Adds a zone (first-new-zone) to the specified zone set (Zoneset1).

Step 5 
switch(config-zoneset-zone)# member fcid  xxxxxxxxxx

switch(config-zoneset-zone)# 
Adds a new member (FC ID xxxxxxxxxx) to the newly created zone (first-new-zone).


Activating a Zone Set


Changes to a zone set do not take effect to a full zone set until you activate it.

To activate a zone set, follow these steps:

Command

Purpose

Step 1 
switch# config t
switch(config)#
Enters configuration mode.

Step 2 
switch(config)# zoneset activate name Zoneset1 vsan 3Activates the specified zone set.
switch(config)# no zoneset activate name Zoneset1 vsan 3Deactivates the specified zone set

show zone and show zoneset Commands 

show Command

Description

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 zone member pwwn xx:xx:xx:xx:xx:xx:xx:xx

Displays membership status.

show zone statistics

Displays zone statistics.

show zone statistics read-only-zoning

Displays read-only zoning statistics.

show zoneset active

Displays active zone sets.

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.

show running

Displays the interface-based zones.



Cisco MDS Series Swich Zoning

Fundamentally below flow chart should be followed for zoning:













Before we begin zoning please make sure you have cabled each HBA to both switches assuring the host is connected to each switch. Now let’s get started …

Configuring and Enabling Ports with Cisco Device Manager:

Once your HBAs are connected we must first Enable and Configure the ports.

1. Open Cisco Device Manager to enable port:

2. Type in the IP address, username and password of the first switch:

3. Right-click the port you attached FC cable to and select enable:



Cisco allows the usage of multiple VSANs (Virtual Storage Area Network). If you have created a VSAN other than VSAN 1 you must configure the port for the VSAN you created.

1. To do this, right-click the port you enabled and select “Configure”:




















2. When the following screen appears, click on Port VSAN and select your VSAN, then click “Apply”:














3. Save your configuration by clicking on “Admin” and selecting “Save Configuration”, once the “Save Configuration” screen pops up and requests you to select “Yes”:















Click "Yes"








Once you have enabled and configured the ports, we can now zone your Hosts HBAs to the SAN.

Login to Cisco Fabric Manager:

1. Let’s begin by opening Cisco Fabric Manager:

2. Enter FM server username and password (EMC Default admin; password) , then clock “Login”:












3. Highlight the switch you intend to zone and select “Open”:










4. Expand the switch and right-click “VSAN”, then select “Edit Local Full Zone Database”:













Creating An FC Alias:

In order to properly manage your zones and HBAs, it is important to create an “FC Alias” for the WWN of each HBA. The following screen will appear:

1. When it does, right-click “FC-Aliases” and select “Insert”, once selected the next screen will appear. Type in the name of the host and HBA ID, example: SQL_HBAO. Click the down arrow and then select the WWN that corresponds to your server, finally click “OK”:


















Creating Zones:

Now that we have created FC-Aliases, we can now move forward creating zones. Zones are what isolates connectivity among HBAs and targets. Let’s begin creating zones by:

1. Right-clicking on “Zones”.
2. Select “Insert” from the drop down menu. A new screen will appear.
3. Type in the name of the “Zone”, for management purposes use the following format <name of FC-Alias host>_<Name of FC Alias Target> Example: SQL01_HBAO_VNX_SPAO.
4. Click “OK”:




















Note: These steps must be repeated to zone the hosts HBA to the second storage controller. In our case, VNX_SPB1.

Adding Members to Zones:

Once the Zones names are created, insert the aliases into the Zones:

5. Right-click on the Zone you created.
6. Select “Insert”, and a new screen will appear.
7. Select “FC-Alias”, click on “…” box then select Host FC Alias.
8. Select the target FC Alias, click “OK”, and click “Add”:





















Happy Learning!