Dell Emulex Family of Adapters User Manual

Page 859

Advertising
background image

Emulex Drivers Version 10.2 for Linux User Manual

P010081-01A Rev. A

3. Configuration

Virtual Port (VPort) Configuration

859

/sys/class/fc_host/hostY/

Creating a new VPort also creates a new sysfs directory in the bus and devices tree:

ls /sys/bus/pci/drivers/lpfc/0000:07:00.0/host8/

fc_host:host8 host10 power scsi_host:host8 uevent

ls /sys/bus/pci/drivers/lpfc/0000:07:00.0/host8/host10

fc_host:host10 power scsi_host:host10 uevent

In this example, host 8 is the physical port, and host 10 is a VPort that was created on

host 8.

For FC RHEL6.x/SLES11-SPx Drivers

When a VPort is created, three new directories are created in the class tree:

/sys/class/scsi_host/hostY/

/sys/class/fc_host/hostY/

/sys/class/fc_vports/vport-X:0-Z/-

Creating a new VPort also creates a new sysfs directory in the bus and devices tree:

/sys/bus/pci/drivers/lpfc/0000:A:B:C/hostX/vport-X:0-Z/hostY

/sys/devices/pci0000:A/0000:A:B:C/hostX/vport-X:0-Z/hostY

In both directories there is a hostY directory that contains the remote ports that this

new host can access:

/sys/bus/pci/drivers/lpfc/0000:A:B:C/hostX/vport-X:0-Z/hostY

/sys/bus/pci/drivers/lpfc/0000:A:B:C/hostX/vport-X:0-Z/hostY/rport-Y:0-0

/sys/bus/pci/drivers/lpfc/0000:A:B:C/hostX/vport-X:0-Z/hostY/rport-Y:0-1

/sys/bus/pci/drivers/lpfc/0000:A:B:C/hostX/vport-X:0-Z/hostY/rport-Y:0-2

In this example:

“Y” indicates the new host value for the VPort that was created.

“X” indicates the host value for the parent fc_host that this VPort was created

from.

“Z” indicates the instance of VPort created from the parent fc_host. A, B, and C

indicate the PCI hierarchy for each physical LPFC port.

In other words, “hostY” is the new host created for the new VPort. “vport-X:0-Z”

uniquely identifies the VPort and indicates the parent host structure (X) that this VPort

was created by.
For example, if a VPort is created from host5, a new scsi_host, a new fc_host, a new

fc_vport, and a new entry under the bus tree are created as well.

ls /sys/class/scsi_host/

host0 host1 host4 host5 host6

ls /sys/class/fc_host/

host4 host5 host6

ls /sys/class/fc_vports/

vport-5:0-0

Advertising