Configuration of FCOE using Nexus 5k
·
Enable features
·
Set fiber ports for SAN
·
Create VSAN
·
Create SAN port channel
·
Create VSAAN VLAN mapping
·
QOS for FCOE
· ZONING config- http://callmanager111.blogspot.com/2013/05/zoning-configuration-of-cisco-nexus.html
Conf t
feature fcoe
feature npiv
feature fport-channel-trunk
qos
class-map type qos class-fcoe
class-map type queing class-fcoe
match qos-group 1
class-map type network-qos class-fcoe
match qos-group 1
policy-map type network-qos fcoe
class type
network-qos class-fcoe
pause no-drop
mtu 2158
system qos
service-policy type network-qos fcoe
( the QOS steps are
Start qos by creating class- map class-map type qos
Use class-map type queing for BW assignment
Create policy-map, policy-map type qos CLASS-MAP
Class-map type network-qos – create network-qos group
Policy-map type network-qos xxxx
Apply all QOS to system QOS)
SAN port channels are utilized for the
aggregation of multiple physical interfaces into one logical interface to
provide higher aggregated bandwidth, load balancing, and link redundancy.
Create SAN Port channel
interface san-port-channel 13
channel mode
active
switchport mode F
switchport speed
8000
Interface fc 1/46
Switchport speed 8000
Interface fc 1/46
Channel-group 13 fcoe
No shutdown
Switchport description XXX server 1 FCOE port
Interface fc 1/25-27
Switchport mode F
No shutdown
Create VSAN
vsan database
Add the SAN-Port-channel and FC to VSAN
vsan 20 interface
san-port-channel 13
vsan 20 interface fc1/25
vsan 20 interface
fc1/26
vsan 20 interface
fc1/27
create fcalias
fcalias name VMAX_01 vsan 20
member pwwn:50:00:09:77:01:69:44:72
fcalias esx01_1
member pwwn:20:00:00:15:07:b4:0b:af
Create Zoning for the vsan- Need WWN for the host CNA and SAN
show zone member command for host
and storage to verify that they are both in the same zone.
If they are not in the same zone create the zone name
zone name esx01_1 vsan 20
member fcalias VMAX_01
- SAN side
member fcalias exs01_1
HOST CAN side
or
zone name esx01_1 vsan 20
member pwwn 21:00:00:20:37:9e:02:3e
member pwwn 21:00:00:c0:dd:12:04:ce
check the zone by command to verify both host and storage
are in same zone.
SHOW ZONE VSAN 20
Add Zone members to zoneset
Zoneset name SAN-ESXi_server vsan 20
Member VMAX_01
Member esx01_1
(You can add other servers and SAN ports)
Activate the zoneset
Zoneset activate name SAN-ESXi_server
You can run show fcns database which gives the PWWN of the
adapter
The hosts are type scsi-fcp:init
And SAN ports are scsi-fcp:target
Useful commands
Show zone status vsan 20
To clear lock, clear zone lock command
show vsan membership
- to check host and SAN in same VSAN
show zone member
show zoneset active vsan 20
to check the active zone.
show fcns database