For the fc rhel5.x driver, For fc rhel6.x/sles11-spx drivers – Dell Emulex Family of Adapters User Manual

Page 862

Advertising
background image

Emulex Drivers Version 10.2 for Linux User Manual

P010081-01A Rev. A

3. Configuration

Virtual Port (VPort) Configuration

862

Monitoring VPorts with fc_vport (FC and FCoE Drivers)

For the FC RHEL5.x Driver

In the FC RHEL5.x driver, the fc_vport directory does not exist (yet) so a link from the

physical port to the VPort is present in the fc_host’s device directory.

ls /sys/class/fc_host/host5/device/

fc_host:host5 power scsi_host:host5

host6 uevent

In this example, host6 is a VPort of physical port host5.
To find the VPorts that have been created by a physical port, you can list the fc_host’s

device directory for the physical port. This gives you a link to the fc_host and scsi_host

directory as usual, and it also displays a list of VPorts (in the form of hostx) that were

created on this physical port.

For FC RHEL6.x/SLES11-SPx Drivers

In the FC and FCoE RHEL6.x/SLES11-SPx driver, the transport creates an fc_vports

directory that you can use to monitor VPorts. This directory is populated entirely of

VPorts and has links from each to the fc_host associated with that VPort.

ls /sys/class/fc_vports/

vport-5:0-0

ls -d /sys/bus/pci/drivers/lpfc/*/host*/*/host*

/sys/bus/pci/drivers/lpfc/0000:03:06.1/host5/vport-5:0-0/host6

ls /sys/devices/pci*/*/host5/vport-5*/host6

power rport-6:0-0 rport-6:0-1 rport-6:0-2 uevent

ls /sys/devices/pci*/*/host5/vport-5*/host6/rport-*

/sys/devices/pci00:03/00:03:06.1/host5/vport-5:0-0/host6/rport-6:0-0:

power uevent

/sys/devices/pci00:03/00:03:06.1/host5/vport-5:0-0/host6/rport-6:0-1:

power uevent

vport_delete

Write-
only

WWPN; WWNN /sys/class/fc_host/hostX/vport_delete

This entry deletes a VPort on the physical port that hostX is
located on. The VPort matching the WWPN and WWNN is
immediately deleted.
This entry returns a “0” if the VPort deletion was successful. A
non-zero value indicates that the VPort was not deleted.
If an fc_host does not support NPIV, then this sysfs entry may
not exist.

Note: This entry deletes the VPort even if there are mounted

file systems being accessed through this VPort, or if
there are open files on it.

Table 3-7 VPort sysfs Entries (Continued)

VPort sysfs
Entries

Type

Range
/Input

Location and Description

Advertising