Q-Logic 8100 SERIES 用户手册

下载
页码 348
8–Configuring FCoE in a Linux Environment
N_Port ID Virtualization
8-28
FE0254601-00 A
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 
.
 shows 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.
Table 8-8. Unique Physical and Virtual Port sysfs Parameters
Unique Physical Port sysfs 
Parameters
Unique Virtual Port sysfs 
Parameters
max_npiv_vports
npiv_vports_inuse
vport_create
vport_delete
node_name
port_name
vport_disable
vport_id
vport_last_state
vport_state