Nexus 5k FC Storage Sample


将5k类具有UP功能的NEXUS变成FC口的方法如下:

将E1/45-48变成FC口,此命令执行完需要重启!

slot 1
port 45-48 type fc

定义VSAN,和接口指定为ACCESS的VSAN号

vsan database
vsan 1000
vsan 1000 interface fc1/48

定义VSAN的VLAN

vlan 1000
fcoe vsan 1000
name fcoe_test

定义FC口为F口,因为对面连接FI,FI的VHBA对外是一个开启NPV功能的FC交换机,而5K是FI和STORAGE间的中转,所以需要5K开启NPIV来帮助解答NPV数据,在这种关系中,5k对外的口是F,FI上的口是NP。

interface fc1/48
switchport mode F

FEATURE FCOE如果不开启,重启后的NEXUS就看不到新配的FC口,配置文件都在,只是看不到口,需要FCOE license。

5596Top(config)# feature fcoe
FC license checked out successfully
fc_plugin extracted successfully
FC plugin loaded successfully
FCoE manager enabled successfully
FC enabled on all modules successfully
Enabled FCoE QoS policies successfully

如果一切正常就会在5K上看到UCS上的vhba:

5596Top(config)# sh flogi database

fc1/48 1000 0xd20040 20:30:8c:60:4f:5b:2b:80 23:e8:8c:60:4f:5b:2b:81
fc1/48 1000 0xd20041 20:00:00:25:b5:ff:06:8f 20:00:00:25:b5:ff:02:8f
fc1/48 1000 0xd20042 20:00:00:25:b5:ff:06:9f 20:00:00:25:b5:ff:02:9f
fc1/48 1000 0xd20043 20:00:00:25:b5:ff:06:6f 20:00:00:25:b5:ff:02:6f
fc1/48 1000 0xd20044 20:00:00:25:b5:ff:06:4f 20:00:00:25:b5:ff:02:4f
fc1/48 1000 0xd20045 20:00:00:25:b5:ff:06:7f 20:00:00:25:b5:ff:02:7f
fc1/48 1000 0xd20046 20:00:00:25:b5:ff:06:5f 20:00:00:25:b5:ff:02:5f
fc1/48 1000 0xd20047 20:00:00:25:b5:ff:06:2f 20:00:00:25:b5:ff:02:2f
fc1/48 1000 0xd20048 20:00:00:25:b5:ff:06:3f 20:00:00:25:b5:ff:02:3f

FI上的WWPN默认在VSAN1上,所以如果未指定FC1/48为VSAN1000的话,应该是只能看到

fc1/48           1     0x040000  20:30:8c:60:4f:5f:36:00 20:01:8c:60:4f:5f:36:01

ZONE配置:

zone name testzone vsan 1000
member pwwn 20:00:00:25:b5:ff:06:8f
member pwwn 20:03:00:a0:98:64:4f:2e
member pwwn 20:01:00:a0:98:64:4f:2e

zoneset name test vsan 1000
member testzone

zoneset activate name test vsan 1000  启用ZONESET。

一切正常的话,会得到:

5596Top# sh zoneset active
zoneset name test vsan 1000
zone name testzone vsan 1000
* fcid 0xd20041 [pwwn 20:00:00:25:b5:ff:06:8f]
* fcid 0xd200a0 [pwwn 20:03:00:a0:98:64:4f:2e]
* fcid 0xd20080 [pwwn 20:01:00:a0:98:64:4f:2e]

FC下另PORT CHANNEL支持TRUNK,需要开启fport-channel-trunk。比如NPIV-NPV连接,在NPIV上F口就需要开启这个功能。FCOE模式下不需要这功能,因为FCOE是基于ethernet的协议,在eth接口配置上已经定义SW MOD TR。

Advertisements

One comment on “Nexus 5k FC Storage Sample

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s