Contenues dansTrouver plus de documentationRessources d'assistance comprises | Télécharger cet ouvrage au format PDF (1203 Ko)
Chapter 6 Configuring Virtual Fibre Channel PortsThis chapter provides the steps used to configure N Port ID Virtualization (NPIV) ports, also known as virtual Fibre Channel ports. What is NPIV?NPIV is a Fibre Channel facility that enables one Fibre Channel adapter to have many N Port IDs. Each N Port has a unique identity (port WWN and node WWN) on the SAN and can be used for zoning and LUN masking. Soft zoning, which you can use to group ports together by port WWN, is the preferred method of zoning. Limitations of NPIVHere is the list of NPIV limitations when used to virtualize Fibre Channel ports:
Creating NPIV PortsThe fcadm(1M) command is available to configure NPIV for non-virtualized environments. For xVM, see the virsh(1M) command documented in the Virtualization System Administration Guide. The fcinfo(1M) and fcadm(1M) status commands are available to determine the status of NPIV ports, whether the ports are created from fcadm(1M) or by virtualization specific commands, such as xm(1M). The commands also report the relationship between the physical port and the virtual ports hosted on that port. Other Fibre Channel commands, such as luxadm(1M) and cfgadm(1M), report NPIV information, although there is no distinction made between virtual and physical ports.
|
# fcadm create-npiv-port -p Virtual_Port_WWN -n Virtual_Node_WWN PhysicalPort_port_WWN |
Without the -p and -n options, a random WWN will be assigned for the virtual port and virtual node, respectively.
The following example creates an NPIV port on a physical HBA port with a WWN of 210000e08b170f1c, a virtual port WWN set to 2000000000000001, and a virtual node WWN set to 2100000000000001.
# fcadm create-npiv-port -p 2000000000000001 -n 2100000000000001 210000e08b170f1c |
You can use the fcinfo hba-port command to display the current WWN values for the NPIV ports.
Become superuser.
Delete an NPIV port:
# fcadm delete-npiv-port -p Virtual_Port_WWN -n Virtual_Node_WWN PhysicalPort_port_WWN |
The following example deletes an NPIV port on a physical HPA port with a WWN of 210000e08b170f1c.
# fcadm delete-npiv-port -p 2000000000000001 -n 2100000000000001 210000e08b170f1c |
Become superuser.
Report status on the currently configured NPIV ports:
# fcinfo hba-port |
The NPIV Port List shows the lists of currently configured NPIV ports.
The following example shows that HBA port 210000e08b84f7eb has one virtual port.
# fcinfo hba-port
HBA Port WWN: 210000e08b84f7eb
Port Mode: Initiator
Port ID: 10100
OS Device Name: /dev/cfg/c7
Manufacturer: QLogic Corp.
Model: 375-3294-01
Firmware Version: 04.04.00
FCode/BIOS Version: BIOS: 1.4; fcode: 1.11; EFI: 1.0;
Serial Number: 0402F00-0549112895
Driver Name: qlc
Driver Version: 20080430-0.00
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 200000e08b84f7eb
Max NPIV Ports: 63
NPIV port list:
Virtual Port1:
Node WWN: 1110000000000000
Port WWN: 1210000000000000
|