Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
12.8. Using an NPIV Virtual Adapter (vHBA) with SCSI Devices
NPIV (N_Port ID Virtualization) is a software technology that allows sharing of a single physical Fibre Channel host bus adapter (HBA).
This allows multiple guests to see the same storage from multiple physical hosts, and thus allows for easier migration paths for the storage. As a result, there is no need for the migration to create or copy storage, as long as the correct storage path is specified.
In virtualization, the virtual host bus adapter, or vHBA, controls the LUNs for virtual machines. Each vHBA is identified by its own WWNN (World Wide Node Name) and WWPN (World Wide Port Name). The path to the storage is determined by the WWNN and WWPN values.
This section provides instructions for configuring a vHBA on a virtual machine. Note that Red Hat Enterprise Linux 6 does not support persistent vHBA configuration across host reboots; verify any vHBA-related settings following a host reboot.
12.8.1. Creating a vHBA Link kopierenLink in die Zwischenablage kopiert!
Link kopierenLink in die Zwischenablage kopiert!
Procedure 12.6. Creating a vHBA
Locate HBAs on the host system
To locate the HBAs on your host system, examine the SCSI devices on the host system to locate ascsi_host
withvport
capability.Run the following command to retrieve ascsi_host
list:Copy to Clipboard Copied! Toggle word wrap Toggle overflow For eachscsi_host
, run the following command to examine the device XML for the line<capability type='vport_ops'>
, which indicates ascsi_host
withvport
capability.virsh nodedev-dumpxml scsi_hostN
# virsh nodedev-dumpxml scsi_hostN
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check the HBA's details
Use thevirsh nodedev-dumpxml HBA_device
command to see the HBA's details.The XML output from thevirsh nodedev-dumpxml
command will list the fields<name>
,<wwnn>
, and<wwpn>
, which are used to create a vHBA. The<max_vports>
value shows the maximum number of supported vHBAs.Copy to Clipboard Copied! Toggle word wrap Toggle overflow In this example, the<max_vports>
value shows there are a total 127 virtual ports available for use in the HBA configuration. The<vports>
value shows the number of virtual ports currently being used. These values update after creating a vHBA.Create a vHBA host device
Create an XML file similar to the following (in this example, named vhba_host3.xml) for the vHBA host.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The<parent>
field specifies the HBA device to associate with this vHBA device. The details in the<device>
tag are used in the next step to create a new vHBA device for the host. See http://libvirt.org/formatnode.html for more information on thenodedev
XML format.Create a new vHBA on the vHBA host device
To create a vHBA on vhba_host3, use thevirsh nodedev-create
command:virsh nodedev-create vhba_host3.xml
# virsh nodedev-create vhba_host3.xml Node device scsi_host5 created from vhba_host3.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the vHBA
Verify the new vHBA's details (scsi_host5
) with thevirsh nodedev-dumpxml
command:Copy to Clipboard Copied! Toggle word wrap Toggle overflow