+ All Categories
Home > Documents > MDS San Command Reference

MDS San Command Reference

Date post: 16-Oct-2015
Category:
Upload: loriss
View: 50 times
Download: 2 times
Share this document with a friend
Description:
MDS San Command Reference

of 12

Transcript

Quick ReferenceF. Mohaideen Abdul Kader

HOME STORAGES & SAN SWITCHES OS SERVER LEARNINGS USEFUL PDF FILES TAPE LIBRARIES & BACKUP EC DATACisco MDS San Switch Command Reference

To Collect Information from Cisco Switch Use the below mentioned commands

# term len 0# show tech-support details

To collect basic information use the below mentioned commands

# show module# show version# show running-config# show logging log# show interfaces brief# show fcns# show flogi# show hardware internal errors# show zoneset active# show accounting log

Configuring Cisco MDS Zones via CLI

The topic of this post is how to use the command-line interface (CLI) to configure zones on a Cisco MDS 9000 series Fibre Channel switch.

I wont go into great detail on the purpose of zones and that sort of thing; Ill just focus on the mechanics of how its done.

First, create some aliases for your own use instead of having to remember the Fibre Channel World Wide Port Names (WWPNs). This will make life aloteasier, in my opinion. You create aliases using thefcaliascommand, like this (where applicable in this command and all other commands in this post, replaceXXXwith the appropriate VSAN number):

switch(config)# fcalias name stor-array-processor-a vsanXXXswitch(config-fcalias)# member pwwnAA:BB:CC:DD:EE:FF:00:11switch(config-fclias)# exitswitch(config)#

Replace the fake WWPN I used in the command above with the correct WWPN for that device. Repeat this process for all the storage processor ports, server HBAs, etc. From this point forward, you can use the alias in place of the WWPN when creating zones.

Next, create zones. Each zone should have a single initiator and (ideally) a single target, although multiple targets is usually acceptable. To create a zone, use thezoneandmembercommands like this:

switch(config)# zone name first-new-zone vsanXXXswitch(config-zone)# member fcalias stor-array-processor-aswitch(config-zone)# member fcalias server-hbaswitch(config-zone)# exitswitch(config)#

Since each zone contains only a single initiator, youll need to repeat this process for each initiator.

Once you have all the zones created, next create a zoneset. You can create a new zoneset just using thezonesetcommand, or you can use an existing zoneset &Add the new zones youve defined to the zoneset like this:

switch(config)# zonesetexisting-zoneset-namevsanXXXswitch(config-zoneset)# member first-new-zoneswitch(config-zoneset)# member second-new-zoneswitch(config-zoneset)# exit

Finally, activate the zoneset:

switch(config)# zoneset activate nameexisting-zoneset-namevsanXXX

Then save the configuration withcopy runn startand you should be good to go!

Adding a new alias , zone or zoneset

Adding a new alias, zone, or zoneset is similar to modifying an existing alias, zone, or zoneset. For example, to add a new alias to an existing zone, you would use these commands:

switch(config)# zone name existing-zone-name-here vsanXXXswitch(config-zone)# member fcalias new-alias-to-addswitch(config-zone)# exit

Likewise, adding a new zone to an existing zoneset is similar to defining a new zoneset:

switch(config)# zoneset name existing-zoneset-name vsanXXXswitch(config-zoneset)# member new-zone-to-addswitch(config-zoneset)# member another-new-zoneswitch(config-zoneset)# exit

Attaching the Sample SAN Switch Zoning

Creating Alias

fcalias name docmgmt vsan 3member pwwn 10:00:00:05:1e:c6:45:e2exit

fcalias name SE9985_1A vsan 3member pwwn 50:06:0e:80:14:44:80:50exit

Creating Zone

zone name docmgmt_SE9985_1A vsan 3member fcalias SE9985_1Amember fcalias docmgmtexit

Adding Zone to the Zoneset

zoneset name gatisw2config vsan 3member docmgmt_SE9985_1Aexit

Activating Zoneset

zoneset activate name gatisw2config vsan 3

Copying Running configuration to startup configuration

copy runn startCisco MDS 9100 Series Zoning

Before we begin zoning pleasemakesure you have cabled each HBA to both switches assuring the host is connected to each switch. Now lets 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. Lets 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. Lets 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 _ 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:

Create afree websitewith


Recommended