Q-Logic 8100 SERIES manual Differentiating Virtual Ports from Physical Ports in sysfs

Models: 8100 SERIES

1 348
Download 348 pages 63.28 Kb
Page 282
Image 282

8–Configuring FCoE in a Linux Environment N_Port ID Virtualization

To disable a virtual port, issue the following command, where X is the port SCSI host ID:

#echo 1 > /sys/class/scsi_host/hostX/vport_disable

To verify that the virtual adapter port has been deleted:

Confirm that the sysfs entry for the virtual port has been removed from

/sys/class/scsi_host/.

Confirm that the virtual port is no longer logged into the FCoE switch by inspecting its Fibre Channel name server database. For information about examining the name server database, refer to the switch documentation.

Differentiating Virtual Ports from Physical Ports in sysfs

Virtual ports and physical ports have different sets of sysfs parameters. You can distinguish a virtual port from a physical port by listing the port parameters in sysfs, and then comparing the display to the unique parameter lists in Table 8-8.

Table 8-8. Unique Physical and Virtual Port sysfs Parameters

Unique Physical Port sysfs

Unique Virtual Port sysfs

Parameters

Parameters

 

 

max_npiv_vports

node_name

npiv_vports_inuse

port_name

vport_create

vport_disable

vport_delete

vport_id

 

vport_last_state

 

vport_state

 

 

Figure 8-11shows an example the sysfs adapter port parameter lists for a physical port (left) and a virtual port (right). The distinguishing parameters are indicated by green and red arrows.

8-28

FE0254601-00 A

Page 282
Image 282
Q-Logic 8100 SERIES manual Differentiating Virtual Ports from Physical Ports in sysfs