Deleting vports using the rmvport.sh script, Displaying vports using the lsvport.sh script, Vport sysfs – Dell Emulex Family of Adapters User Manual
Page 858: Vport sysfs tree

Emulex Drivers Version 10.2 for Linux User Manual
P010081-01A Rev. A
3. Configuration
Virtual Port (VPort) Configuration
858
simultaneously. If you are running a loop topology and you create a VPort, the
VPort’s link state will be offline.
Deleting VPorts Using the rmvport.sh Script
Note: You must un-map, un-mount, and flush I/Os to VPort-connected devices before
deleting the VPort.
You can use the rmvport script to delete VPorts. To see the usage information, run the
script with no parameters specified. The rmvport.sh script uses the following syntax:
./rmvport.sh
-or-
./rmvport.sh
To delete the VPort with a port name of 10000000c94ac63a and a node name of
20010000c94ac63a, type
./rmvport.sh 10000000c94ac63a 20010000c94ac63a
This script may take up to 30 seconds to finish. The script fails if the VPort is not
deleted.
Displaying VPorts Using the lsvport.sh Script
You can use the lsvport script to display the VPorts and physical ports that are present
on the system. Run the script with no parameters to display port information. For
example:
./lsvport.sh
lpfc0: host6 10000000c93a5b5e:20000000c93a5b5e LP10000 NPIV Not Supported
lpfc1: host7 10000000c93a5b5d:20000000c93a5b5d LP10000 NPIV Not Supported
lpfc2: host8 10000000c93cc8dd:20000000c93cc8dd LPe12000 NPIV Physical
lpfc3: host9 10000000c93cc8dc:20000000c93cc8dc LPe12000 NPIV Physical
lpfc4: host10 10000000c94ac63a:20010000c94ac63a NPIV Virtual (VPI 1)
In reference to the previous example:
For LPFC0 and LPFC1, “NPIV Not Supported” indicates that this
adapter/firmware combination does not support the creation of VPorts.
For LPFC2 and LPFC3, “NPIV Physical” refers to a physical port of this adapter.
For LPFC4, “NPIV Virtual” refers to a VPort of this adapter.
VPort sysfs
VPort sysfs Tree
For the FC RHEL5.x Driver
When a VPort is created, two new directories are created in the class tree:
/sys/class/scsi_host/hostY/