cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4838
Views
0
Helpful
13
Replies

how to setup NPIV as Cisco9124 directly linked a Emulex HBA N-port

SR1884241
Level 1
Level 1

I had a cisco9124 switch and enabled npiv on the switch.

also I had a HBA card, and setup a N-port.

I can find the N-port pwwn number on the cisco9124,

and setup the virtual pwwn to my vsan1.

my question is:

my  configuration is correct? can let 9124 directly linked a HBA N-port as  NPIV configuration? I think something is wrong. I am no NPV device.

how can let the virtual ports know which actual port manage the virtual ports.

I mean for example:

my fc1/8 port is with 4 virtual ports, how to setup the 4 virtual ports to fc1/8,

or  just donot care the fc1/8, just found all the virtual ports and setup  the virtual ports luns, then my emulex HBA card will find the luns?

BRs

13 Replies 13

maminhas
Level 1
Level 1

Please take a look on this configuration guidlines and examples for npv npiv setup

http://www.cisco.com/en/US/docs/switches/datacenter/mds9000/sw/4_1/configuration/guides/cli_4_1/npv.html

mds 9124 can be used as NPV  there is a need for another switch (e.g 9222i or 9500 series switch) to act as NPIV

two different hardwares are required one to act as NPV talking to another one which acts as NPIV

once npv mode is enabled , as an expected behaviour switch reboots, wipes out all the configuration (leaving the basic switching info intact)  and comes back online and look for uplink switch which serves all flogi,zoning etc that acts as NPIV.

as single mds 9124 will not serve as npiv , but can be used as npv in conjuction with uplink npiv which has to be a different type of hardware such as 92xx or 95xx switch.

you mean I have to have 2 switches, one for NPV core with NPIV enabled and another for NPV, then linked our host with HBA, right?

also my infrastructure:  host with HBA-------------switch with NPIV enabled------------IBMDS3400 storage

cannot carry out virtual ports configuration,right?

I mean my HBA setup N-port and added 4 vitual ports, also my switch can find the 4 virtual ports pwwn, I added the 4 virtual ports pwwn to my vsan of the switch, and created 4 luns in the IBMDS3400, each lun gave a virtual pwwn. all the ok to setup the all

but my host cannot find the 4 luns, also some vitual ports got the wrong luns. do you think the problem is my infrastructure setup wrong, or the OS bug.

Try this from config terminal

feature npiv

I try to find the command, but not,

my MDS9124 only have npiv enabled.

I just use my HBA virtual port, did not use switch virtual port.

so I also need setup switch N-port?

jiabo,

As mentioned in above doc link , in normal scenario npiv core and npv edge are two seprate switches required for npiv/npv setup.

Looks like you are using only one switch 9124 that too for NPIV core feature.

for clarification, what type of device/server hardware  is HBA virtual port..?

we use Qlogic 4G 2-port HBA and use RHEL5 OS on DellT105

we are in RHEL5 created 4 virtual ports on one port of HBA.

then we can find the 4 virtual pwwn on our MDS9124, then I added the pwwn on our vsan and reactivated.

then created 4 luns, each lun assigned to each virtual port separately, finally I checked our RHEL5, only found 1 lun is correct.  found 2 luns lost and 1 luns allocated to 2 virtual HBA.

configuration like the following on our switch:

  vsan 1 wwn 21:01:00:1b:32:a9:f0:04 fcid 0x2e1435 dynamic

  vsan 1 wwn 21:01:00:1b:32:a9:f0:05 fcid 0x2e1436 dynamic

  vsan 1 wwn 21:01:00:1b:32:a9:f0:06 fcid 0x2e1439 dynamic

  vsan 1 wwn 21:01:00:1b:32:a9:f0:07 fcid 0x2e143a dynamic

...... 

    member pwwn 21:01:00:1b:32:a9:f0:06

    member pwwn 21:01:00:1b:32:a9:f0:07

    member pwwn 21:01:00:1b:32:a9:f0:04

    member pwwn 21:01:00:1b:32:a9:f0:05

zoneset name IBMzoneset2 vsan 1

    member IBMzone2

zoneset activate name IBMzoneset2 vsan 1

my infrastructure:  host with HBA--------switch with NPIV enabled-------IBMDS3400 storage

as far MDS is considered  for turning on npiv , simply one command is sufficient "feature npiv."

npiv side is F port and edge device side should be NP mode.

Is there any configuration guidlines provided by Dell for its npv setup with a switch?

you might need to check with them also.

- you mentioned that

only found 1 lun is correct.  found 2 luns lost

luns are managed outside of switch.

switch side there is nothing required except device port to be in NP mode. and npiv enabled.

Please check the storage side also , if there is any lun masking preventing this.

Also try to log out login back or reboot the host to see if that helps.

I confirmed my storage should be no problem.

I would like confirm if the switch have some configuration to allocate virtual port to actual port.

for example,

  my HBA linked to switch FC1/8 port, what command can let all the virtual ports allocate to the FC1/8 port.

the vitual ports did not assign to one actual port, whether should cause my host OS was confused

I did not find any command about it except npiv enable in MDS9124

BRs

Hi,

Enabling NPIV is all you need to do on the 9124.
After enabling NPIV, enable more granular logging for troubleshooting
config
logging level flogi 5
exit
Reboot the host to force it send a flogi, then check the logging log
show logging log | i FLOGI | last
If you see the flogi in the log, then you will see the server on the interface in the flogi databsae.
show flogi database interface fc1/8

If you see a flogi reject in the "show logging log..." then provide that reject message.
If you don't see any flogi messages, then the Dell did not send a flogi to the MDS switch.

If you used "npiv enable" instead of "feature npiv" then the MDS 1924 is running really old code.
I suggest upgrading to get the following fixes
CSCtk47039    Flogi should handle multiple fdisc with same pwwn/nwwn
CSCtc98547    Repeated FDISC is rejected

Both are fixed in NX-OS 4.2(7d) and above in the 4.x line and 5.0(4c) or above in the 5.x line.

Regards,
David

thanks, good suggestion.

thank you everyone kindly reply my question

Best Regards

jiabo

Hi Jiabo,

Be aware of Emulex bug CR 124325.
The emulex driver indicates EVFP support by turning on the "Virtual Fabrics bit" in the FLOGI.
The MDS is behaving exactly correct. It is returning a D_ID (FCID) of x000000.
The emulex should turn off the "Virtual Fabrics bit" in the FLOGI if they don't support it.
Workaround is to configure the MDS interface, "switchport trunk mode off"
The Emulex driver fix is expected to be in a 2.70.xxx release.

Regards,

David

Review Cisco Networking for a $25 gift card