Given that more and more features within Brocade SAN switches are configured using zones, thought I would share this quick CLI guide for those looking to script this.
Zoning is organised as such
- Every SAN device has a unique WWN (much like how IP devices have MAC addresses)
- WWN’s are then mapped to aliases
- Multiple aliases then form a zone
- Multiple zones then form a config
- Nutshell, WWN->Aliases->Zones->Config
So here are the steps to create a zones quickly using CLI.
1. Ensure you have noted down the device WWN and assign it a usable name for alias. WWN’s for devices can be found using “switchshow“. In this example, I will be mapping the following devices to the appropriate names
10:00:00:00:00:00:00:01 -> Server_HBA01
50:00:00:00:00:00:00:01 -> Storage_P01
50:00:00:00:00:00:00:02 -> Storage_P02
alicreate “Server_HBA01″, “10:00:00:00:00:00:00:01″alicreate “Storage_P01″, “50:00:00:00:00:00:00:01″
alicreate “Storage_P02″, “50:00:00:00:00:00:00:02″
2. Next, we want to group these 3 members into a single zone so they can have access to each other. Let’s create a zone called “Zone_svr2_hba01_str_p01_str_po2″. Remember that zone members are case sensitive.
zonecreate “Zone_svr2_hba01_str_p01_str_p02″, “Server_HBA01; Storage_P01; Storage_P02″
3. After completing step 2, put the newly created zone into a config. For simplicity, I shall call this “Config_Test”. Again this is case sensitive.
cfgcreate “Config_Test”, “Zone_svr2_hba01_str_p01_str_p02″
4. Verify the zones using “cfgshow“. The zones should only show up under “Defined Configuration”. To make this zones active, you will need to enable it.
cfgenable “Config_Test”
5. Now if you run “cfgshow” again, you will realise that the “Defined Configuration” and “Effective Configuration” is the same. This is when you know the zones are activated.
6. To script this, you can simply prepare all commands in Notepad and open up a putty session then cut and paste it. You can also use SSH scripts if required.
'통합 TIP' 카테고리의 다른 글
[해결중][네트워크] ttl expired in transit (0) | 2013.06.28 |
---|---|
rsh 연결 문제 (0) | 2013.05.29 |
ISCSI 란? (0) | 2013.05.22 |
DAS, NAS, SAN 개념 정리 (0) | 2013.05.22 |
raritan kvm switch 초기 패스워드 (0) | 2013.05.20 |