0% found this document useful (0 votes)
106 views4 pages

Switchshow: How To Zone in Brocade Switch Preparation

This document provides steps for zoning a Brocade switch to connect servers and storage arrays. It explains how to identify the WWPNs of servers and storage ports, create aliases for them, define zones associating a server and storage port, create a configuration containing the zones, and enable the configuration. It also summarizes how to map a LUN from storage to a Linux host, including updating configuration files, scanning host ports, and restarting multipath services to make the LUN visible.

Uploaded by

Biku
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views4 pages

Switchshow: How To Zone in Brocade Switch Preparation

This document provides steps for zoning a Brocade switch to connect servers and storage arrays. It explains how to identify the WWPNs of servers and storage ports, create aliases for them, define zones associating a server and storage port, create a configuration containing the zones, and enable the configuration. It also summarizes how to map a LUN from storage to a Linux host, including updating configuration files, scanning host ports, and restarting multipath services to make the LUN visible.

Uploaded by

Biku
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

HOW TO ZONE IN BROCADE SWITCH

Preparation

1).Login into SAN and run the command switchshow

Now you can able to see WWPN of storage as well as server if physically connected.

“10:00:f3:05:1e:4b:d5:30″  WWPN of Server (HBA port 1)

“10:00:ef:05:80:00:48:d5”  WWPN of Server (HBA port 2)

“50:01:10:80:28:ad:33:45″  WWPN of Storage Array port 1

“50:02:56:80:00:ac:f5:54”  WWPN of Storage Array port 2

Now we are going to zone server and storage in SAN switch

1).alicreate “Database server p1”, “10:00:f3:05:1e:4b:d5:30″ (Database server p1 for our


identification)

2).alicreate “Database server p2”, “10:00ef:05:80:00:48:d5″ (Database server p2 for our


identification).

3).alicreate “Storageport1”, “50:01:10:80:28:ad:33:45″ (Database storageport1 for our


identification).

4). alicreate “Storageport2”, “50:02:56:80:00:ac:f5:54” (Database storageport2 for our


identification).

zonecreate “zone1”, “Database server p1; StoragePort1”

zonecreate “zone2”, “Database server p2; StoragePort2”


To verify

Zoneshow “zone1”

Now we have to create configuration which will hold the zone. Following command will be
used.

cfgcreate "oracleapp", "zone1;zone2"

Now enable the configuration.

cfgenable "oracleapp"

HOW TO ADD LUN IN LINUX HOST

 BEFORE EXPORT LUN GO TO THE PARTICLUAR SERVER


 EXECUTE COMMAND tail –f /var/log/messages
 Now export the vdisk (LUN) and you can see the reflection in server (LUN Mapping)
 Go to the server put LUN ID in /etc/multipath.conf. add alias if you want you give LUN
name
 Add the entry in /etc/udev/rules.d/root.rules it will differ for each server.

 Now scan the fc port

For best practice


First check how many ports are there.
Cd /sys/class/fc_host if you see 2 ports change host value and scan it.

echo "1" > /sys/class/fc_host/host1/issue_lip for Fibre channel


cd /sys/class/scsi_host

echo "- - -" > "/sys/class/scsi_host/host0/scan"


echo "- - -" > "/sys/class/scsi_host/host1/scan" for iscsi
echo "- - -" > "/sys/class/scsi_host/host2/scan"
echo "- - -" > "/sys/class/scsi_host/host3/scan"

In this stage server will pull out the disk from the SAN storage for the particular LUN ID

 Now restart the multipath daemon (service)


 Service multipathd restart
 Multipath –ll (Now you can see new added LUN ) or fdisk –l

FOR ORACLE HOST (ASMDISK GROUP)

Add entry in udevrules file.

KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",


RESULT=="360014380125d86410000800000bf0000", NAME="RedoLog-04",
ACTION=="add|change", OWNER="grid", GROUP="asmadmin",
MODE="0660"oracle.rules

Add entry in rc.local

 Like raw /dev/raw30 /dev/mapper/Data-5


 Copy the entry and execute the same in the prompt. Now You can see new disk major
and minor number
 Also you can see raw devices in /dev/raw raw means there is no file system in the disk.
 Now you can see the new raw in Disk group.

By

Alagar M

Root Admin

You might also like