Beruflich Dokumente
Kultur Dokumente
zoneAdd
zoneCopy
zoneCreate
zoneDelete
zoneRemove
zoneRename
zoneShow
Rename a zone
Print zone information
cfgClear
cfgDisable
cfgEnable
cfgSave
cfgSize
cfgActvShow
cfgTransAbort
Reading through (i.e., running help <command>) the help sections prior to implementing your zone
layout will save you a lot of hassle, especially when you start to ask yourself questions like Does
cfgremove or cfgdelete remove an entry from a configuration?. Well, that is all for today. Tomorrow I
will discuss aliases, and how to use the ali* commands to create and manage them.
port
7: id N2 No_Light
Once you know the port numbers or WWNs, you can run the alicreate command, passing it the name
of the alias to create, as well as the port or WWN to associate with the alias (if you assign more than
one port or WWN to the alias, they need to be separated with a semi-colon):
Fabric1Switch1:admin> alicreate CentosNode2Port1, 21:00:00:e0:8b:1d:f9:03
After an alias is created, you can view it with the alishow command:
Fabric1Switch1:admin> alishow CentosNode2Port1
alias: CentosNode2Port1
21:00:00:e0:8b:1d:f9:03
If you make a typo while adding a WWN or port to an alias, you can run aliadd to add the correct
WWN or port to the alias, and then execute aliremove to remove the entry that was incorrectly added.
If you make a typo in the alias name, you can run alirename to rename the entry. That is all for today.
In my next blog post, I will talk about how to create zones.
Now that we have a zone, we need to add it to the switch configuration and then enable that
configuration. I will discuss that in more detail when I discuss managing Brocade configurations.
administrative unit, which you can then apply to a switch. Brocade has a number of commands that
can be used to manage configurations, and they start with the string cfg:
cfgadd Add a member to the configuration
cfgcopy Copy a zone configuration
cfgcreate Create a zone configuration
cfgdelete Delete a zone configuration
cfgremove Remove a member from a zone configuration
cfgrename Rename a zone configuration
cfgshow Print zone configuration
To create a new configuration, you can run the cfgcreate command with the name of the configuration
to create, and an initial zone to place in the configuration:
Fabric1Switch1:admin>cfgcreate SANFabricOne, CentOSNode1Zone1
Once the configuration is created, you can add additional zones using the cfgadd command:
Fabric1Switch1:admin> cfgadd SANFabricOne, CentOSNode1Zone2
To ensure that your changes persistent through switch reboots, you can run cfgsave to write the
configuration to flash memory:
Fabric1Switch1:admin> cfgsave
Starting the Commit operation...
0x102572c0 (tRcs): May 8 08:51:37
INFO ZONE-MSGSAVE, 4, cfgSave completes successfully.
cfgSave successfully completed
zone: CentOSNode1Zone2
21:01:00:1b:32:24:86:c3
10:00:00:00:c9:3e:4c:ea
zone: CentOSNode2Zone1
10:00:00:00:c9:3e:4c:eb
21:00:00:e0:8b:1d:f9:03
zone: CentOSNode2Zone2
10:00:00:00:c9:3e:4c:ea
21:01:00:e0:8b:3d:f9:03
Now you may notice in the output that there is a defined and effective configuration. The effective
configuration contains the configuration that is currently running on the switch, and the defined
configuration contains the configuration that is saved in flash. To make the configuration in flash
effective, the cfgenable command needs to be run (this should be run after you make
alias/switch/configuration changes and issue a cfgsave):
Fabric1Switch1:admin> cfgenable SANFabricOne
Starting the Commit operation
0x1024f980 (tRcs): Apr 29 20:44:39
INFO ZONE-MSGSAVE, 4, cfgSave completes successfully.
cfgEnable successfully completed
Once the cfgenable runs, the effective configuration will be updated to match the configuration you
have defined and saved. This completes this part of the Brocade series, and the final installation will
cover switch backups and putting all the pieces together.
configuration, cfgenable will replace the active configuration with the specified
configuration.
example : cfgenable "c2config"
cfgdisable : Deactivates a specified configuration
example : cfgdisable "c2config"
cfgsave : Saves zoning information to switch's flash memory. Configuration will
not survive a reboot of the switch until the configuration is saved.
cfgclear : Deactivates and removes all zoning information from active memory.
To remove a configuration from flash memory, run cfgsave after cfgclear.
zoneshow : Shows zoning configuration.
switchshow : Shows overall configuration of switch. WWNs, login types (F-port,
L-Port etc.) port status and some general switch info show up in switchshow.
Setting up a zoning configuration
The following example sets up a switch so that the LUNs presented on controller
0 of a DF350 Fibre unit are presented either to controller 2 or controller 3 of a
Sun Solaris host depending on which configuration is activated.
Please note : If ANY ports on a switch are in an active zone
configuration, ALL ports on the switch MUST be zoned in order to be
useable. Since this example only uses ports 4-7 of the switch, ports 0-3
would not be useable until they were included in the active zoning
configuration.
'Another note : Usually it is best to zone by WWN, rather than by port
number. That way, if a port goes bad the user just has to move the
affected interface cable to a different port on the switch and the zoning
should still be in place.
login: admin
Password:
sw2400_68:admin> switchshow
switchName: sw2400_68
switchType: 3.2
switchState: Online
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:00:60:69:20:13:c0
port 0: sw No_Light
port 1: sw No_Light
port 2: sw No_Light
port 3: sw No_Light
port 4: sw Online F-Port 50:00:0e:10:00:00:00:5d
port 5: sw Online F-Port 50:00:0e:10:00:00:00:17
port 6: sw Online F-Port 20:00:00:e0:69:c0:08:23
port 7: sw Online F-Port 20:00:00:e0:69:c0:08:45
sw2400_68:admin> alicreate "df350_intfc_0", "50:00:0e:10:00:00:00:17"
sw2400_68:admin> alicreate "df350_intfc_1", "50:00:0e:10:00:00:00:5d"
sw2400_68:admin> alicreate "snowtop_c2", "20:00:00:e0:69:c0:08:45"
sw2400_68:admin> alicreate "snowtop_c3", "20:00:00:e0:69:c0:08:23"
sw2400_68:admin> zoneshow
Defined configuration:
alias: df350_intfc_0
50:00:0e:10:00:00:00:17
alias: df350_intfc_1
50:00:0e:10:00:00:00:5d
alias: snowtop_c2
20:00:00:e0:69:c0:08:45
alias: snowtop_c3
20:00:00:e0:69:c0:08:23
Effective configuration:
no configuration in effect
sw2400_68:admin> zonecreate "c2zone", "snowtop_c2; df350_intfc_1"
sw2400_68:admin> zonecreate "c3zone", "snowtop_c3; df350_intfc_1"
sw2400_68:admin> zoneshow
Defined configuration:
zone: c2zone snowtop_c2; df350_intfc_1
zone: c3zone snowtop_c3; df350_intfc_1
alias: df350_intfc_0
50:00:0e:10:00:00:00:17
alias: df350_intfc_1
50:00:0e:10:00:00:00:5d
alias: snowtop_c2
20:00:00:e0:69:c0:08:45
alias: snowtop_c3
20:00:00:e0:69:c0:08:23
Effective configuration:
no configuration in effect
sw2400_68:admin> cfgcreate "c2config", "c2zone"
sw2400_68:admin> cfgcreate "c3config", "c3zone"
sw2400_68:admin> zoneshow
Defined configuration:
cfg: c2config
c2zone
cfg: c3config
c3zone
zone: c2zone snowtop_c2; df350_intfc_1
zone: c3zone snowtop_c3; df350_intfc_1
alias: df350_intfc_0
50:00:0e:10:00:00:00:17
alias: df350_intfc_1
50:00:0e:10:00:00:00:5d
alias: snowtop_c2
20:00:00:e0:69:c0:08:45
alias: snowtop_c3
20:00:00:e0:69:c0:08:23
Effective configuration:
no configuration in effect
sw2400_68:admin> cfgenable "c2zone"
error: "c2zone" is not a configuration
sw2400_68:admin> cfgenable "c2config"
zone config "c2config" is in effect
sw2400_68:admin> zoneshow
Defined configuration:
cfg: c2config
c2zone
cfg: c3config
c3zone
zone: c2zone snowtop_c2; df350_intfc_1
zone: c3zone snowtop_c3; df350_intfc_1
alias: df350_intfc_0
50:00:0e:10:00:00:00:17
alias: df350_intfc_1
50:00:0e:10:00:00:00:5d
alias: snowtop_c2
20:00:00:e0:69:c0:08:45
alias: snowtop_c3
20:00:00:e0:69:c0:08:23
Effective configuration:
cfg: c2config
zone: c2zone 20:00:00:e0:69:c0:08:45
50:00:0e:10:00:00:00:5d
What does this configuration look like on the Sun Solaris host?
After a reconfiguration boot, this is what the host sees when the " c2config "
configuration is used on the switch.
# format
Searching for disks...done