I am used to do things on brocade with GUI and know it very well but i wana save sometime and do some things on the commandline which unfortunately I am not used to .
Can someone please help me with the commands which i can use for the plan below .
Plan - Change of 2GB HBA with new 4GB HBA Online
1. Change only one HBA port at a time
2. See the login to the switch with new WWNs
3. Insert the new WWNs in the alias/zones/zonset (cfgsave/cfgenable) - commands needed for all, and once we insert the new WWN in alias , we can enable the configuration (cfgenable), right ? or we need to check the zones as well ??
4. Go to Storage frame and add the new WWNs to the current Host group.
5. Rescan for the new paths with 4GB HBA and then go ahead with other replacement.
Doing it from the GUI is the fastest and best way to do this, especially on a Brocade!
The first I feel should be said............if you are not a SAN trained professional you should NOT be doing this! Making even one mistake can make your storage unavailable to all applications. And management tends to frown on that.
You did not mention the O/S version of your Brocade or any model numbers of directors or switches.
Here some basic commands, but you will have to open a book and gather and confirm the details for your version.
You will need to work in confirming the WWN of the old HBA; removing the hardware; and getting the new WWN. And since you don't mention the hardware involved, it makes me wonder it you have the ability to this harware replacement live and online!
1. Before you begin any changes you always run a backup of current configuration on all fabric/switch
>>>> configupload I can't give particulars on this, because I don't know what version your running.
2. Gather the WWN and port information for the existing enviroment & document properly.
>>> You may wish to run a cfgshow on your switch to check things there.
But from here I can only suggest commands you will need.
cfgshow >will give you details of the configuration. Confirm documenation.
zoneremove > you likely want to use this instead of zonedelete, and yes you type the quotations. Syntax: zoneremove "this_zone", "wwn of old hba"
zoneadd > you can use this to add the new HBA's wwn, and yes you type the quotations. Syntax: zoneadd "this_zone", "wwn of new hba"
zoneshow > to check that the zone is correct. Syntax: zoneshow "this_zone"
If you want to rename the zone you may be able to do this with:
Run cfgshow and see if the new information on the zone is showing
cfgshow
If it is (since it wasn't a full zone delete, but an edit) then you should be able to save the configuration and enable it:
cfgsave
cfgenable
If all as worked and you are still up and running fine, then make a fresh backup of this configuration - and me sure to name it different from the last one - Just In Case you need to backup!!!!
I agree with dynamox. I usually do this from the GUI, but I would not delete a zone. I usually would add the new WWN to the zone before removing the old one just to be safe. But I would definitely reuse the existing zone.
@rworkman , Thanks for the reply and I am SAN professional for long time now, I used the cfgupload to make sure i have the backup of the config.
@dynamox , Thats exactly what I did , just change the Alias using the GUI (Remove old and add New), save config & then enable config and all was done without any issues.
Then go to the storage frame and do the config on the clariion and add the new HBA entries under the storage/Host groups.
Sorry Rita, as I said I don't use the CLI very often. I saw "zoneremove" and interpreted it the way it sounds. Sometimes I wonder how engineers come up with some of this stuff. I'm sure it makes sense in the lab when you never actually have to do this stuff in real life :-)
dynamox
11 Legend
•
20419 Posts
•
87439 Points
42371
0
Posted January 20th, 2011 04:00
why delete zones if he/she is only swapping HBAs ? I would simply remove old WWN and add new WWN to the alias
aliRemove "oracle_hba0", "21:00:00:20:37:0c:71:d2"
aliAdd "oracle_hba0", "21:00:00:20:37:0c:23:b4"
reactivate zoneset and you are done. On the host it depends ..are you using naviagent are you are doing manual registration ?