How to zone a Brocade SAN switch in command line base?
2014-06-03 08:45
417 查看
Here are the basics to add a new device to a Brocade SAN fabric. I’m working with a Brocade DCX switch. In this
scenario, there is a new server come with 2 HBA card that going to attach to the SAN switches.
Terminology
HBA -
Host Bus Adapter, HBA card is the device that connects the servers to a Storage Area Networks (SAN) via Fibre Channel.
WWN -
World Wide Name, a unique 8-byte number identifying the HBA. Each WWN is an 8-byte number derived from an IEEE OUI (for the first 3 bytes) and vendor-supplied information.
FC Zone - Fibre Channel Zone, a partitioned subset of the fabric. Members of a zone are allowed to communicate with
each other, but devices are not allowed to communicate across zones.
Steps to Zone Brocade Switch
Plug in the FC Connector into an open port on the switch.
Login to the server and verify the HBA connection. It should see the switch but not the storage device.
Check the Brocade Switch Port. To do so, telnet to the brocade switches and login as user admin.
switch 1 - fabric A (SWITCH_1)
switch 2 - fabric B (SWITCH_2)
Create aliases for the hosts HBA's on each switch
Example:
switch_1> alicreate " HOSTNAME01_HBA_0","10:00:00:c9:69:3d:53"
switch_2> alicreate " HOSTNAME01_HBA_1","10:00:00:c9:69:ae:4e"
Tips: Do a switchshow to capture the WWN before start the aliases creation.
Create the storage zones using the aliases on each switch
switch_1> zonecreate "Z_HOSTNAME01_A", "HOSTNAME01_HBA_0"
switch_2> zonecreate "Z_HOSTNAME01_B", "HOSTNAME01_HBA_1"
Check the configuration
switch_1> zoneshow Z_HOSTNAME01_A
switch_2> zoneshow Z_HOST01_B
Add the zones to the fabrics on each switch
switch_1> cfgshow SWITCH_A
switch_1> cfgadd "SWITCH_A","Z_ HOSTNAME01_A"
switch_1> cfgsave
switch_1> cfgenable SWITCH_A
Check the configuration
switch_1> zoneshow
switch_2> cfgshow SWITCH_B
switch_2> cfgadd " SWITCH_B","Z_ HOSTNAME01_B"
switch_2> cfgsave
switch_2> cfgenable SWITCH_A
Check the configuration
switch_2> zoneshow
Login back in to the server to verify. It should now see the storage devices
scenario, there is a new server come with 2 HBA card that going to attach to the SAN switches.
Terminology
HBA -
Host Bus Adapter, HBA card is the device that connects the servers to a Storage Area Networks (SAN) via Fibre Channel.
WWN -
World Wide Name, a unique 8-byte number identifying the HBA. Each WWN is an 8-byte number derived from an IEEE OUI (for the first 3 bytes) and vendor-supplied information.
FC Zone - Fibre Channel Zone, a partitioned subset of the fabric. Members of a zone are allowed to communicate with
each other, but devices are not allowed to communicate across zones.
Steps to Zone Brocade Switch
Plug in the FC Connector into an open port on the switch.
Login to the server and verify the HBA connection. It should see the switch but not the storage device.
Check the Brocade Switch Port. To do so, telnet to the brocade switches and login as user admin.
switch 1 - fabric A (SWITCH_1)
switch 2 - fabric B (SWITCH_2)
Create aliases for the hosts HBA's on each switch
Example:
switch_1> alicreate " HOSTNAME01_HBA_0","10:00:00:c9:69:3d:53"
switch_2> alicreate " HOSTNAME01_HBA_1","10:00:00:c9:69:ae:4e"
Tips: Do a switchshow to capture the WWN before start the aliases creation.
Create the storage zones using the aliases on each switch
switch_1> zonecreate "Z_HOSTNAME01_A", "HOSTNAME01_HBA_0"
switch_2> zonecreate "Z_HOSTNAME01_B", "HOSTNAME01_HBA_1"
Check the configuration
switch_1> zoneshow Z_HOSTNAME01_A
switch_2> zoneshow Z_HOST01_B
Add the zones to the fabrics on each switch
switch_1> cfgshow SWITCH_A
switch_1> cfgadd "SWITCH_A","Z_ HOSTNAME01_A"
switch_1> cfgsave
switch_1> cfgenable SWITCH_A
Check the configuration
switch_1> zoneshow
switch_2> cfgshow SWITCH_B
switch_2> cfgadd " SWITCH_B","Z_ HOSTNAME01_B"
switch_2> cfgsave
switch_2> cfgenable SWITCH_A
Check the configuration
switch_2> zoneshow
Login back in to the server to verify. It should now see the storage devices
相关文章推荐
- How to zone a Brocade SAN switch in command line base?
- How to monitor Nginx web server from the command line in real time
- Java: How to compile and run Java application in command line(在命令行中编译运行java程序)
- How To Properly Set SVN svn:externals Property In SVN Command Line
- Siebel HOW TO: How to change log level in command-line
- How to run java and junit in command line
- How to install oracle by Command Line Interface(CLI) in silent mode on Linux
- How to create and execute JAR file in Java – Command line Eclipse Netbeans
- how to query name server with command line in Windows.
- 《How to run one script by command line in 3dsMax》
- how to enable #ifdef macro in the command line of make?
- How to find a file or folder in MS-DOS or Windows command line
- How to do non greedy regex match in command line
- How to Take Ownership of a File/Folder Using Command-Line in Windows 7 or newer version System
- How to access Dropbox from the command line in Linux
- HOWTO: Include Base-64 Encoded Binary Image Data (data URI scheme) in Inline Cascading Style Sheets (CSS)(转)
- How to resolve "can not start db2 in windows command line"
- [quote] How to determine what target is given in Makefile from the make command-line?
- How to use VirtualBox in Terminal / Command line
- Siebel HOW TO: How to change log level in command-line