Upload
abdallah-ben-hamida
View
214
Download
0
Embed Size (px)
Citation preview
8/13/2019 Complement Du Cours
1/9
Annex 1: Zoning with Brocade
In a Networked Storage environnement where all hosts and storage arrays are connectedthrough a fabric, switch zoning becomes a critical task that ensures security by defining which
ports may communicate together in the SAN.
Every port connected to a SAN has a unique built-in address called WWN (World WideName) as similar to the MAC address for the NICs ports in some way, thus we can define fora specified port which other ports it can see by using their WWNs, this is called a soft zoning.
A best practice deployment supposes that we have tow fabrics connected to storage and hosts,this will provide high availability in case of a switch failure, as a concequence the tow fabricsshould have the same configuration including zoning.
A multipathing software should also be installed on the hosts connected to the fabric, in the
example we are dealing with, the windows host will see the same LUN two times, one fromthe storage controller A (SPA) through the switch A and the other from the controller Bthrough the second switch. the multipathing product such as EMC Powerpath, dm-multipathfor linux, RDAC & MPIO for AIX creates a logical device under /dev that will manage theavailable paths to reach the detected LUN usually from one path that you can read/write from.In case of a HBA or a switch failure, the multipathing software will fail back to an otheravailable path in order to reach the same LUN again.
In this article we will show, step by step, how to create a zone which includes Windows andSolaris hosts connected with a storage array. you will need to provide multipathing featuresand zone HBA ports with storage controllers accordingly.
8/13/2019 Complement Du Cours
2/9
1. Login to the Brocade switch
First of all, use a navigator and type the IP address of the SAN Brocade switch that you wantto configure and enter the administrator credentials, you need java installed.
The first panel will guide you through the different administration/monitoring tasks that youmay perform, actually we are interested with zoning the brocade, click on zone admin .
http://localhost/blog/wp-content/uploads/2012/01/first-screen.pnghttp://localhost/blog/wp-content/uploads/2012/01/login.pnghttp://localhost/blog/wp-content/uploads/2012/01/first-screen.pnghttp://localhost/blog/wp-content/uploads/2012/01/login.png8/13/2019 Complement Du Cours
3/9
2. Locate your WWNs (You may need to retrieve WWNs form hosts to make
correspondences, see Annex 2)
As a prerequisit, you have to know the WWN of each initiator and storage targets you want tozone together, please refer to this link to find out how to retreive them depending on the
running operating system.
http://localhost/blog/wp-content/uploads/2012/01/locate-WWNs.png8/13/2019 Complement Du Cours
4/9
3. Create a zone
The zone we are creating will contain each ports wwn that should communicate together.
4. Add hosts ports and storage port to the zone
Select your previously created zone and add the portss wwns, we will focus on Windows and
Solaris hostss ports (initiators) and the storage port (target).
http://localhost/blog/wp-content/uploads/2012/01/add-ports.pnghttp://localhost/blog/wp-content/uploads/2012/01/Create-zone.pnghttp://localhost/blog/wp-content/uploads/2012/01/add-ports.pnghttp://localhost/blog/wp-content/uploads/2012/01/Create-zone.png8/13/2019 Complement Du Cours
5/9
5. Add the created zone to Zone Config
once you have created the zone, add it to a running zone configuration and enable it inorder to make the switch aware of the changes.
6. Enable the configuration
http://localhost/blog/wp-content/uploads/2012/01/enable-config.pnghttp://localhost/blog/wp-content/uploads/2012/01/add-to-zone-config.pnghttp://localhost/blog/wp-content/uploads/2012/01/enable-config.pnghttp://localhost/blog/wp-content/uploads/2012/01/add-to-zone-config.png8/13/2019 Complement Du Cours
6/9
7. Confirm
Best practices
Its not recommended to create such zone in a production environment,wewant to makethings easy but it will work for sure. the two hosts will never communicate together (they areinitiators), they will initiate SCSI write/read commands to a storage port called target, thatswhy its better to create an (initiator-to-target) zoning this will ensure more flexibilityduring trablshooting.
http://localhost/blog/wp-content/uploads/2012/01/confirm.png8/13/2019 Complement Du Cours
7/9
Annex 2: find out the WWNN/WWNP of an HBA port
1. Using HBA software tools
You can use the following ways to view the WWN of each port:
HBAnyware (EmulexHBA only) SANsurfer utility (QlogicHBA only)
Usually these tools are installed with the HBA driver the first time,tray to use command lineinterface this should work with all supported operating systems.
With HBAnyware$ hbacmd listhbas
Manageable HBA List
Port WWN : 10:00:00:00:c9:49:28:42
Node WWN : 20:00:00:00:c9:49:28:42
Fabric Name: 10:00:00:60:69:80:2d:ee
Flags : 8000f980
Host Name : server01
Mfg : Emulex Corporation
Port WWN : 10:00:00:00:c9:49:28:47
Node WWN : 20:00:00:00:c9:49:28:47
Fabric Name: 10:00:00:60:69:80:0e:fc
Flags : 8000f980Host Name : fraudmgmt01
Mfg : Emulex Corporation
[ ..... ]
For more details about speed, firmware version ... run:
$ hbacmd HBAAttrib WWN
$ hbacmd PortAttrib PWWN
With SANsurfer
# scli -iHost Name : sunserverHBA Model : QLE2462HBA Alias :Port : 1Port Alias :
Node Name : 20-00-00-1B-32-XX-XX-XXPort Name : 21-00-00-1B-32-XX-XX-XXPort ID : 11-22-33Serial Number : AAAAAAA-bbbbbbbbbb
Driver Version : qlc-20080514-2.28FCode Version : 1.24Firmware Version : 4.04.01HBA Instance : 2OS Instance : 2HBA ID : 2-QLE2462
http://www.emulex.com/products/management-software/device-management.htmlhttp://www.emulex.com/products/management-software/device-management.htmlhttp://www.emulex.com/products/management-software/device-management.htmlhttp://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/default.aspxhttp://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/default.aspxhttp://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/default.aspxhttp://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/default.aspxhttp://www.emulex.com/products/management-software/device-management.html8/13/2019 Complement Du Cours
8/9
OptionROM BIOS Version : 1.24OptionROM FCode Version : 1.24OptionROM EFI Version : 1.08OptionROM Firmware Version : 4.00.26Actual Connection Mode : Point to Point
Actual Data Rate : 2 GbpsPortType (Topology) : NPortTotal Number of Devices : 2HBA Status : Online
2. Linux
On a Linux or UNIX system WWNN and WWPN are recorded in the messages log file whenHBA driver is loaded during boot process. To find WWNN/WWPN search messages file forHBA driver name or wwnn pattern:
$ cat messages | grep -i wwnn May 17 15:24:19 sunserver1 qlc: [ID 657001 kern.info] Qlogic qlc(0)WWPN=210000e08b122275: WWNN=200000e08b122275May 17 15:24:21 sunserver1 qlc: [ID 657001 kern.info] Qlogic qlc(1)WWPN=210100e08b322275: WWNN=200100e08b322275May 17 15:24:32 sunserver1 qlc: [ID 657001 kern.info] Qlogic qlc(2)WWPN=210000e08b123372: WWNN=200000e08b123372May 17 15:24:33 sunserver1 qlc: [ID 657001 kern.info] Qlogic qlc(3)WWPN=210100e08b323372: WWNN=200100e08b323372
3. AIX
Find the name of your fiber channel card:
# lsdev -Ccadapter | grep fcs
Then get the WWN (for fcs0 in this example):
# lscfg -vp -l fcs0 | grep Network Address
4. Solaris 10
# prtconf -vp | grep wwnport-wwn: 2100001b.3202f94bnode-wwn: 2000001b.3202f94b
port-wwn: 210000e0.8b90e795node-wwn: 200000e0.8b90e795
8/13/2019 Complement Du Cours
9/9
5. Windows
Install theFiber Channel Information Toolfrom Microsoft Download Center and run thefollowing on the command line:
C:\>fcinfo
There are 2 adapters:com.qlogic-QLA2300/2310-0: PortWWN: 21:00:00:e0:8b:08:95:df\\.\Scsi2:com.emulex-LP9002-1: PortWWN: 10:00:00:00:c9:30:d0:17\\.\Scsi3:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17530http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17530http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17530http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17530