查詢HBA卡是否支援NPIV功能

要啟用N_Port ID Virtualization (NPIV)功能,還要ESXi主機上的HBA卡支援才行,可SSH至ESXi主機查詢該HBA卡相關資訊:

~ # cat /proc/scsi/qla2xxx/4
QLogic PCI to Fibre Channel Host Adapter for QLA2340:
FC Firmware version 3.03.20 IPX, Driver version 902.k1.1-9vmw

Host Device Name vmhba4

BIOS version 1.54
FCODE version
EFI version 0.00
Flash FW version 0.00.00
ISP: ISP2312, Serial# E40751
Request Queue = 0x7e879000, Response Queue = 0x7e8ba000
Request Queue count = 2048, Response Queue count = 512
Number of response queues for multi-queue operation: 0
Total number of interrupts = 4100754
Device queue depth = 0x40
Number of free request entries = 854
Total number of outstanding commands: 0
Number of mailbox timeouts = 0
Number of ISP aborts = 0
Number of loop resyncs = 1
Host adapter:Loop State = <READY>, flags = 0x18868
Link speed = <2 Gbps>

Dpc flags = 0x0
Link down Timeout = 030
Port down retry = 005
Login retry count = 030
ZIO mode = 0x0, ZIO timer = 2
Commands retried with dropped frame(s) = 0
Product ID = 4953 5020 2020 0002

NPIV Supported : No (竟然不支援……=_=)

SCSI Device Information:
scsi-qla1-adapter-node=200000e08b86afb9:020000:ffff;
scsi-qla1-adapter-port=210000e08b86afb9:020000:ffff;

FC Target-Port List:
scsi-qla1-target-0=21000024ff0a66ce:021000:84:Online;
scsi-qla1-target-1=21000024ff0c49ea:021500:85:Online;
scsi-qla1-target-2=500a09818697c81c:020300:87:Online;
scsi-qla1-target-3=500a098196d7ca0d:020900:88:Online;