Friday, 14 September 2012

FC switch configuration(cisco & Brocade)


FC switch configuration.
To configure the SAN environment in NetApp first check by inter-operability matrix tool that each and every component is supported by NetApp check whether the switch, Ontap version, switch firmware version, the OS version, is supported by NetApp or not.
Data Ontap support the given fabric.
Single –fabric
Multifabric
Direct-attached
Mixed

Switch should have unique domain id. NetApp recommend starting the domain id from 10, because some devices already reserve some ids, so it is recommended to start the domain id from 10 to escape the conflict. And it there are two fabrics then gives the odd numbers to the 2nd fabric.

Zoning:
Advantage of zoning
Zoning reduces the number of paths between a host and logical unit number (LUN).
Zoning keeps the primary and the secondary path in different zones.
Zoning improves the security by limiting the access between nodes.
Zoning increases the reliability by isolating the problems.
Zoning also reduces the cross talks between the host initiators and the hba.

The two method of zoning
Port zoning: zoning done by grouping physical switch ports.
WWN: worldwide Name zoning the zones are created by the wwpn(worldwide port name) or wwnn(worldwide node name).
Brocade switch only uses the hardware switch enforcement and cisco switch uses both the hardware and software switch enforcement, means the in hardware enforcement everywhere will be used as WWN name format and it is highly performance output and if we use the software enforcement mixed WWPN and WWNN are used which does not give performance as hardware enforcement method.

FC Zoning recommendations by NetApp
 Use WWPN zoning.
When there is 4 or more than 4 server then do the zoning.
Limit zone size
Use single –Initiator zoning.

Configuring the Brocade FC switch.
1.       Perform the initial configuration steps.
2.       Upgrade firmware if needed.
3.       Assign the domain ID.
4.       Assign the port speed.
5.       Verify the configuration.
6.       Verify the host and storage connectivity.
7.       Create the FC zones.
8.       Save and backup the configuration.
9.       Obtain the technical support.


Brocade Switch: Perform the initial Configuration steps.

Configure the Management Interface
Give the IP address, subnet mask, Gateway address.

Give the Host name of the switch
Give the administration password
The default access for the brocade switch is login: admin and password: password

It is best practice to use the same version of firmware or Fabric OS in the entire SAN switch
By giving the “version” cmd we can check the current version on the switch.
And by giving the “FirmwareDownlad” cmd we can use for the Brocade switch upgradation.
 By default the Domain ID of the switch is 1 you should change the ID as per the best practice of the brocade documentation.

Step to change the ID of the switch.
1.       Enter the switchDisable cmd.
2.       Enter the configure cmd
3.       At the Fabric parameter prompt enter “yes”.
4.       At the Domain prompt enter the Domain ID.
5.       And at all the other prompt press Enter and let it is the default.
6.       Use the switchEnable cmd to enable the switch.

After you assign the Domain Id you should assign the port speed to avoid negotiation error.
 The cmd to configure the port speed is portCfgSpeed [slot/]port, speed
For ex:
Brocade>portCfgSpeed 0, 2

Use the swithcShow cmd to verify the switch configuration.
Check the switch Domain ID.
Check the port speed , the port speed is 1G, 2G,4G,8G and the negotiation speed is N1, N2, N4, N8.

Now the last step is to create the Alias and the zone.
1.       Create alias by aliCreate cmd
For ex:
aliCreate  WinA, 21:00:00:00:1b:32:1a:8b:1c

2.       Create Zones by zoneCreate cmd
For ex:
zoneCreate WinpriA, “winA;Fas01A”

3.       create configuration cfgCreate cmd
For ex:
cfgCreate Wincfg, “WinpriA;WinpriB”

4.       store the configuration by cfgSave cmd

5.       Activate the configuration by cfgEnable cmd.

We can use the supportSave cmd to retrieve the support data. This cmd will generate the support log files and you can save this support files to some server by giving the server IP.

Configuring the Cisco FC switch.
1.       Perform the initial configuration steps.
2.       Upgrade firmware if needed.
3.       Create the VSAN and assign the port.
4.       Assign the domain ID.
5.       Assign the port speed.
6.       Verify the configuration.
7.       Verify the host and storage connectivity.
8.       Create the FC zones.
9.       Save and backup the configuration.
10.   Obtain the technical support.

Cisco Switch: Upgrade the Firmware steps.
1.       Use the show version cmd to check the current version of the Fabric Ware version.
2.       Use the show impact all system cmd to verify the image and the system impact.
3.       Use the install all system command to install and upgrade.
4.       Use the show install all status to confirm the upgrade.

Cisco switch allow to create the VSAN , VSAN is the virtual switch created on the physical switch work as a independent fabric switch  Each cisco switch must have at least one active VSAN as  VSAN1 , VSAN 1 should not be used for the production traffic.

How to create the VSAN in cisco switch.
1.       Go to the configuration mode by typing config t cmd.
2.       Go to the VSAN database configuration mode by typing the vsan database cmd.
3.       Create the vsan by tying vsan id cmd for ex : vsan 2
4.       vsan can be activated when it has atleast one physical port assigned to it.
5.       Assign the physical port by typing the cmd vsan id interface fcslot/port for ex: vsan 2 interface fc1/8
6.       Repeat the each activation step for the each interface that has to be added to the vsan.


Assign the Domain Id.
Each VSAN has a unique domain id.
In cisco there are two type of Domain id.
Static: join with the given id or not at all.
Preferred: Try to join with the given id but join with the other id if necessary.

Use  the fcdomain domain domain_id static vsan vsan_id
For ex:
Switch> config t
Switch(config)> fcdomain domain 10 static vsan 2.
Switch(config)> end

Assign port speed.
1.       Enter the config t
2.       Enter the interface fc slot/port, where slot is the slot number and port is the port number.
3.       Enter the switchport speed x, where x is 1000,2000,4000, or 8000 Mbps.
For ex;
Switch>config t
Switch(config)>interface fc 1/1
Switch(config)>switchsport speed 8000
Switch(config)> cntrl Z

Verify the switch configuration
1.       Verify the vsan port assignment. By show vsan membership.
2.       Verify one or more domain ids by show fcdoamin.
3.       Verify the port speed configuration by show interface brief and confirm that it should show the spped as 1g ,4g,8g not as auto.
4.       Verify that the host and storage port are online: show flogi database




Cisco switch: Create FC zones
Create aliases, repeating the commands for each alias:
Enter the device-alias database
Enter the device-alias name aliname pwwn wwpn
Where aliname is the name of the new alias and wwpn is the WWPN of device.

After creating the aliases, commit the changes:
Enter the cmd: exit
Enter the cmd: device-alias commit

Create the zone:
zone name zname vsan vid, where zname is the name of the new zone and vid is the VSAN ID.

Assign aliases to the zone, repeating the cmd for each alias:
-member devices-alias aliname, where aliname is the name of alias that you are going to assign to the zone.

Exit configuration mode.
exit.

For ex:
Switch# config t
Switch(config)# device-alias database
Switch(config-device-alias database)# device-alias name x pwwn 21:01:00:e0:8b:2e:80:93
Switch(config-device-alias-db)# end
Switch# config –t
Switch(config)# device-alias commit
Switch(config)# zone name myzone vsan 2
Switch(config-zone)# member device-alias x
Switch(config-zone)# exit
Switch#

Create and activate zoneset.
Create a zoneset:
Switch# config t
Switch(config)# zoneset name zoneset1 vsan2
Switch(config-zoneset)# member myzone
Switch(config-zoneset)# end
Switch# config t
Switch(config)# zoneset activate name zoneset1 vsan2
Switch(config)#

Save the configuration
Switch# copy running-config startup-config











No comments:

Post a Comment