Brocade – Alias and Zone syntax. Or how FOS is a love / hate thing.

I’ve been spending a lot of time recently working through some storage performance issues at a client. One of the outcomes of this work was that a serious amount of remediation was required within their two FC fabrics, as they were running a lot of multi-initiator – multi-target zoning and other crazy stuff. I spent a lot of time rebuilding the configs for the Brocade-based fabrics, and had a colleague double-check my work.

Now, for those of you playing along at home, you might remember that I’ve spent the last 7 years or so working primarily on Cisco MDS environments, so doing work with Brocade gear was meant to be a refreshing change. And for the most part it was. In any case, I generated 148 new aliases and 365 new zone sets, and hoped like heck I hadn’t missed anything.

Here’s the syntax of the commands I was using.

alicreate "SAN1_SPA5","50:06:01:65:3e:a0:1e:d7"
alicreate "SAN1_SPB4","50:06:01:6c:3e:a0:1e:d7"
alicreate "A-HOST1_HBA0","20:00:00:00:c9:53:71:ba"
zonecreate "A-HOST1_HBA0_SAN1_SPA5","A-HOST1_HBA0;SAN1_SPA5"
zonecreate "A-HOST1_HBA0_SAN1_SPB4","A-HOST1_HBA0;SAN1_SPB4"
cfgcreate "PROD1","A-HOST1_HBA0_SAN1_SPA5"
cfgadd "PROD1","A-HOST1_HBA0_SAN1_SPB4"
cfgsave
cfgenable "PROD1"

In this example, I’m creating an alias for two FE ports on a VNX and one host port, zoning them together, and creating a new configuration and adding the zone sets to it. The naming convention I generally use is HOSTNAME_HBAx. Nothing spectacular, and it all looks okay in theory. Except when I saved and enable the configuration, a whole bunch of hosts were missing paths. Anyway, great story Dan, but what was the problem?

Dashes.

Seriously, the problem was dashes in the aliases. The CLI was just ignoring them. Change those to underscores and you’re good to go.

Am I overreacting when I feel really disappointed that this is still a thing with FOS 7.x? If someone wants to set me straight I’m happy to hear the whys and wherefores about this. In the end it was all sorted fairly rapidly, and there were no outages which was great.

Brocade – 2 simple, yet useful commands

A few Brocade CLI commands to lighten the post-Christmas mood are in order. These two are very basic, but I invariably forget them at inopportune moments. Like when I realise I’ve already logged in to 20 switches and haven’t retrieved quite all of the information that I should have. Without further ado, I present to you firmwareShow and chassisShow.

login as: username
username@fc1.dc1.network.internal's password:

fc1_dc1:username> firmwareshow
Slot Name       Appl     Primary/Secondary Versions               Status
--------------------------------------------------------------------------
  5  CP0        FOS      v6.3.0d                                  STANDBY
                         v6.3.0d
  6  CP1        FOS      v6.3.0d                                  ACTIVE *
                         v6.3.0d
  7  FR4-18i    FOS      v6.3.0d
                         v6.3.0d

fc1_dc1:username> chassisshow

Chassis Backplane Revision: D3

SW BLADE  Slot: 1
Header Version:         2
Power Consume Factor:   -55
Factory Part Num:       60-0200447-02
Factory Serial Num:     SR040001175
Manufacture:            Day: 19  Month:  2  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1945 days
Time Awake:             338 days

SW BLADE  Slot: 2
Header Version:         2
Power Consume Factor:   -55
Factory Part Num:       60-0200447-02
Factory Serial Num:     SR040002467
Manufacture:            Day: 18  Month:  3  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1947 days
Time Awake:             338 days

SW BLADE  Slot: 3
Header Version:         2
Power Consume Factor:   -55
Factory Part Num:       60-0200447-02
Factory Serial Num:     SR040003307
Manufacture:            Day:  6  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1945 days
Time Awake:             338 days

SW BLADE  Slot: 4
Header Version:         2
Power Consume Factor:   -55
Factory Part Num:       60-0200447-02
Factory Serial Num:     SR040003236
Manufacture:            Day:  6  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1946 days
Time Awake:             338 days

CP BLADE  Slot: 5
Header Version:         2
Power Consume Factor:   -70
Factory Part Num:       60-0201837-02
Factory Serial Num:     SP040002669
Manufacture:            Day:  7  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1935 days
Time Awake:             327 days

CP BLADE  Slot: 6
Header Version:         2
Power Consume Factor:   -70
Factory Part Num:       60-0201837-03
Factory Serial Num:     SP040002934
Manufacture:            Day: 18  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             479 days
Time Awake:             338 days

AP BLADE  Slot: 7
Header Version:         2
Power Consume Factor:   -180
Factory Part Num:       60-0000659-14
Factory Serial Num:     UG030001298
Manufacture:            Day:  6  Month:  9  Year: 2007
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1213 days
Time Awake:             338 days

POWER SUPPLY  Unit: 1
Header Version:         2
Power Consume Factor:   1000
Factory Part Num:       23-0200006-02
Factory Serial Num:     FL2L9004150
Manufacture:            Day: 27  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1944 days
Time Awake:             338 days

POWER SUPPLY  Unit: 2
Header Version:         2
Power Consume Factor:   1000
Factory Part Num:       23-0200006-02
Factory Serial Num:     FL2L9003839
Manufacture:            Day: 27  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1945 days
Time Awake:             338 days

POWER SUPPLY  Unit: 3
Header Version:         2
Power Consume Factor:   1000
Factory Part Num:       23-0200006-03
Factory Serial Num:     FL2L9025027
Manufacture:            Day: 11  Month: 10  Year: 2007
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1195 days
Time Awake:             338 days

POWER SUPPLY  Unit: 4
Header Version:         2
Power Consume Factor:   1000
Factory Part Num:       23-0200006-03
Factory Serial Num:     FL2L9025921
Manufacture:            Day: 17  Month: 10  Year: 2007
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1195 days
Time Awake:             338 days

FAN  Unit: 1
Header Version:         2
Power Consume Factor:   -50
Factory Part Num:       60-0201665-01
Factory Serial Num:     FM060012488
Manufacture:            Day: 27  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1945 days
Time Awake:             338 days

FAN  Unit: 2
Header Version:         2
Power Consume Factor:   -50
Factory Part Num:       60-0201665-01
Factory Serial Num:     FM060012489
Manufacture:            Day: 27  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1945 days
Time Awake:             338 days

FAN  Unit: 3
Header Version:         2
Power Consume Factor:   -50
Factory Part Num:       60-0201665-01
Factory Serial Num:     FM060012474
Manufacture:            Day: 27  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1945 days
Time Awake:             338 days

CHASSIS/WWN  Unit: 1    (in same assembly as WWN Unit: 2)
Header Version:         2
Power Consume Factor:   -3
Factory Part Num:       60-0311101-02
Factory Serial Num:     QV060003228
Manufacture:            Day: 27  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1945 days
Time Awake:             338 days
ID:                     IBM0000CA
Part Num:               0021090000M48
Serial Num:             100308A
WWN  Unit: 2            (in same assembly as WWN Unit: 1)
Header Version:         2
Power Consume Factor:   -3
Factory Part Num:       60-0200834-01
Factory Serial Num:     FS040004494
Manufacture:            Day: 27  Month:  4  Year: 2006
Update:                 Day:  4  Month:  1  Year: 2012
Time Alive:             1945 days
Time Awake:             338 days

Chassis Factory Serial Num: QV060003448
fc1_dc1:username>

Brocade interop mode 0

I had the joy of finishing off a data migration project on the weekend. The final step was to remove some McData Spherion 4500 FC switches from a stretched fabric. Normally, I’d just move some cables and ISLs about and rip out the switches (do you like my calculated approach to infrastructure projects?). However, in this instance, the McData switches were the last ones in the fabric and the fabric was running McData OpenFabric mode (aka interop mode 3). Pulling out the switches wasn’t really a problem, as the Brocade SilkWorm 300 switches that were left just took over and kept things going under interop mode 3. Cool, let’s get out of here now …

The problem was that the client really wanted to go back to native mode. So we were running versions 6.1.0c and 6.2.0c on the Brocade switches, and version 9.7.2 on the McData switches. When I changed the switches back to interop mode 0 (aka “native” mode), the zoning information all went and disappeared. 96 zonesets, 63 aliases and 1 configuration save later we were all up and running again. But I did think that maybe I could have saved myself 3 hours of copy and paste if I’d somehow done things a little smarter.

OT: My absence

To my three loyal readers, I must apologise for the relative paucity of blog posts recently. I’ve been consulting in a mid-large government department lately and haven’t done a lot of work that lends itself to this blog. Instead, I’ve been doing lots of pictures and lots of typing, and developing a plan of attack for their storage and data protection environment. It’s been a challenge, in so far as they have a bad habit of throwing storage at problems before checking if they’re really problems. To wit, the CX3-40f I configured last year with 5 DAEs is now fully populated with all 16 DAEs. There’s also a CX700 still doing its thing (almost fully populated), and a few other CLARiiONs performing other duties. I’ve also seen a few bizarre things happen there too, the strangest of which was when one of the sys admins uninstalled the e-mail archive program from the servers. This, in turn, deleted some C-CLIPs from the Centera, as they had no fixed policy on retention in place. Who’d have thought the Centera Backup and Recovery Module (CBRM) for EMC NetWorker actually worked? I could go on, but I think it’s best if I don’t.

So, my three month stint is almost up, but it looks like it will be extended another three months, and possibly extended again after that. So the blog posts may still be few and far between for the next little while, although I am hoping to start work on vSphere 4 shortly, and will no doubt have some stuff to write about Brocade / Cisco interop and how to make and break Cisco 9513 Directors. So, er, thanks for reading …