fcinfo, fcadm - 光纤通道 HBA 端口命令行接口
fcinfo hba-port [-lite] [HBA_port_WWN]...
fcadm hba-port [-lite] [HBA_port_WWN]...
fcinfo remote-port [-ls] [-p HBA_port_WWN]
[Remote_port_WWN]...
fcadm remote-port [-ls] [-p HBA_port_WWN]
[Remote_port_WWN]...
fcinfo logical-unit | lu [-v] [-P Remote_port_WWN] [-N Remote_node_WWN] [OS device_path]
fcadm logical-unit | lu [-v] [-P REMOTE_port_WWN] [-N Remote_node_WWN] [OS device_path]
fcadm create-npiv-port -p Virtual_Port_WWN [-n Virtual_Node_WWN]
PhysicalPort_port_WWN
fcadm delete-npiv-port -p Virtual_Port_WWN [-n Virtual_Node_WWN]
PhysicalPort_port_WWN
fcadm create-fcoe-port [-tf] -p Port_WWN [-n Node_WWN]
MAC_Interface
fcadm delete-fcoe-port MAC_Interface
fcadm list-fcoe-ports [-itv][Link[,...]]
fcadm force-lip Port_WWN
fcinfo [-V]
fcadm [-V]
fcinfo [-?]
fcadm [-?]
fcinfo and fcadm are command line interfaces that collect administrative information on Fibre Channel host bus adapter (HBA) ports on a host.They also collect data on any Fibre Channel targets that might be connected to those ports in a Storage Area Network (SAN).
端口可以是启动器模式,也可以是目标模式。启动器模式端口和目标模式端口适用相同的 FC 属性信息和远程端口信息,但是下面所述的与 SCSI 相关的操作不适用于目标模式端口。
fcinfo 和 fcadm 都支持以下子命令:
列出指定的 HBA_port_WWN 所指的 HBA 端口的信息。If –i and –t options are not specified, all initiator mode and target mode Fibre Channel HBA ports on the host will be listed.
列出指定的远程端口的 remote-port 信息。如果未指定 Remote_port_WWN ,将列出通过 HBA_port_WWN 可见的所有远程端口。如果未指定 –p 选项,将列出主机上每个启动器端口的所有远程端口。
列出指定的 device_path 所指的逻辑单元。If device_path is not specified, all Fibre Channel logical units will be listed.此子命令仅适用于启动器模式。
仅 fcadm 支持下列子命令(用于管理 N_Port ID 虚拟化 (N_Port ID Virtualization, NPIV) HBA 端口):
在指定的适配器上创建 NPIV 虚拟端口。
删除 NPIV 虚拟端口。This deletes only ports created by fcadm.
仅 fcadm 支持下列子命令(用于管理以太网光纤通道 (Fibre Channel over Ethernet, FCoE) 端口):
创建与给定 MAC 接口和给定 Port_WWN/ Node_WWN 关联的 FCoE 端口。如果未指定 –p 或 –n,将自动生成端口 WWN 或节点 WWN。如果指定的 MAC 接口不支持多个单点传送地址,那么不会创建 FCoE 端口,并且您会收到消息,指示您可以添加 –f 选项以便在指定的 MAC 接口上强制启用混杂模式,从而启用 FCoE。
删除与指定 MAC 接口关联的 FCoE 端口。
列出 FCoE 端口的信息。
强制链路重新初始化。在目标端口端发出此子命令时,会导致目标端口重置。从主机端口端发出此子命令时,会重置主机端口。当连接了 FC 交换机时,SAN 中的其他 FC 端口将获得 RSCN(Remote State Change Notification,远程状态更改通知)。另外,在此之后其他启动器始终能重新发现该端口,并建立或重新使用 FC 登录会话。而且 I/O 将继续。此命令会中断 I/O,但是不具有破坏性,因为其不会造成任何数据丢失。
支持以下选项:
列出所有 FCoE 端口的信息。
与 create-fcoe-port 配合使用时,将在与不支持多个单点传送地址的 NIC 关联的 MAC 接口上创建 FCoE 端口。将为指定的 MAC 接口启用混杂模式。
Lists the link error statistics information for the port referenced by the specified HBA_port_WWN or Remote_port_WWN.
与 NPIV 选项配合使用时,指定虚拟节点 WWN。如果与 create-npiv-port 配合使用,则可以将其忽略,将使用随机的 WWN。
与 create-fcoe-port 子命令配合使用时,指定 FCoE 端口的节点 WWN。可以将其忽略,在这种情况下将根据指定 MAC 接口的 MAC 地址生成 WWN。
通过主机上的本地 HBA 端口的 HBA_port_WWN 检索远程端口信息。与 remote-port 子命令配合使用时,– p 选项是必需的。
与 NPIV 选项配合使用时,指定虚拟端口 WWN。如果与 create-npiv-port 配合使用,则可以将其忽略,将使用随机的 WWN。其对于 delete-npiv-port 是必需的。
与 create-fcoe-port 子命令配合使用时,指定 FCoE 端口的端口 WWN。可以将其忽略,在这种情况下将根据指定 MAC 接口的 MAC 地址生成 WWN。
检索由 Remote_node_WWN 指定的远程端口上所有逻辑单元的信息。此选项仅适用于 logical-unit | lu 子命令。
检索由 Remote_node_WWN 指定的远程端口上所有逻辑单元的信息。此选项仅适用于 logical-unit | lu 子命令。
列出用户请求的所有远程端口的 SCSI 目标信息。必须始终指定 –p (– -port) 选项,并且其必须为主机上的有效 HBA 端口。此 HBA 端口将用作为其检索 SCSI 级别目标信息的启动器。Note that this will only function on remote port Fibre Channel World-Wide Names that support an FC4 type of SCSI.此选项仅适用于启动器模式端口。
Lists the information for initiator mode ports only.
Lists the information for target mode ports only.
When used with create-fcoe-port, creates a FCoE target mode port.
When used with the logical-unit subcommand, the –v displays additional information for the logical unit, including SCSI vendor and product information and device type as well as the FC World-Wide names for the local and remote Fibre Channel ports to which this device is attached.
显示版本信息。
显示用法信息。
The following command lists all initiator mode Fibre Channel HBA ports on the host:
# fcinfo hba-port -i
HBA Port WWN: 210000e08b074cb5
Port Mode: Initiator
OS Device Name: /dev/cfg/c1
Manufacturer: QLogic Corp.
Model: 375-3108-xx
Firmware Version: 3.3.116
FCode/BIOS Version: 1.13.08
Serial Number: not available
Driver Name: qlc
Driver Version: 20070212-2.19
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 200000e08b074cb5
NPIV Port List:
Virtual Port 1:
Port WWN: 200000e08b074cb1
Node WWN: 200000e08b074cb3
HBA Port WWN: 210100e08b274cb5
Port Mode: Initiator
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3108-xx
Firmware Version: 3.3.116
FCode/BIOS Version: 1.13.08
Serial Number: not available
Driver Name: qlc
Driver Version: 20070212-2.19
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 200100e08b274cb5
HBA Port WWN: 210000e08b072ab5
Port Mode: Initiator
OS Device Name: /dev/cfg/c3
Manufacturer: QLogic Corp.
Firmware Version: 3.3.116
FCode/BIOS Version: 1.13.08
Model: 375-3108-xx
Serial Number: not available
Driver Name: qlc
Driver Version: 20070212-2.19
Type: L-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 200000e08b072ab5
HBA Port WWN: 210100e08b272ab5
Port Mode: Initiator
OS Device Name: /dev/cfg/c4
Manufacturer: QLogic Corp.
Model: 375-3108-xx
Firmware Version: 3.3.116
FCode/BIOS Version: 1.13.08
Serial Number: 0402F00-0549112808
Driver Name: qlc
Driver Version: 20070212-2.19
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 200100e08b272ab5
示例 2 列出目标模式 HBA 端口
The following command lists all target mode Fibre Channel HBA ports on the host:
# fcinfo hba-port -t
HBA Port WWN: 210100e08bb09221
Port Mode: Target
Port ID: 10700
OS Device Name: Not Applicable
Manufacturer: QLogic Corp.
Model: d30ac7e0
Firmware Version: 4.0.109
FCode/BIOS Version: N/A
Type: F-port
State: online
Supported Speeds: not established
Current Speed: 2Gb
Node WWN: 200100e08bb09221
HBA Port WWN: 210000e08b909221
Port Mode: Target
Port ID: 10900
OS Device Name: Not Applicable
Manufacturer: QLogic Corp.
Model: d37ad1e0
Firmware Version: 4.0.109
FCode/BIOS Version: N/A
Type: F-port
State: online
Supported Speeds: not established
Current Speed: 2Gb
Node WWN: 200000e08b909221
HBA Port WWN: 200000144fc2d508
Port Mode: Target
Port ID: 9a0025
OS Device Name: Not Applicable
Manufacturer: Sun Microsystems, Inc.
Model: FCoE Virtual FC HBA
Firmware Version: N/A
FCode/BIOS Version: N/A
Serial Number: N/A
Driver Name: COMSTAR FCOET
Driver Version: 1.0
Type: F-port
State: online
Supported Speeds: 1Gb 10Gb
Current Speed: 10Gb
Node WWN: 100000144fc2d508
HBA Port WWN: 200000144fc2d509
Port Mode: Target
Port ID: 9a0023
OS Device Name: Not Applicable
Manufacturer: Sun Microsystems, Inc.
Model: FCoE Virtual FC HBA
Firmware Version: N/A
FCode/BIOS Version: N/A
Serial Number: N/A
Driver Name: COMSTAR FCOET
Driver Version: 1.0
Type: F-port
State: online
Supported Speeds: 1Gb 10Gb
Current Speed: 10Gb
Node WWN: 100000144fc2d509
示例 3 列出 HBA 端口和链路统计信息
以下命令可列出 HBA 端口的信息和这些端口的链路统计信息:
# fcinfo hba-port -l 210000e08b074cb5 210100e08b274cb5
HBA Port WWN: 210000e08b074cb5
Port Mode: Initiator
OS Device Name: /dev/cfg/c1
Manufacturer: QLogic Corp.
Model: 375-3108-xx
Firmware Version: 3.3.116
FCode/BIOS Version: 1.13.08
Serial Number: 0402F00-0549112808
Driver Name: qlc
Driver Version: 20070212-2.19
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 200000e08b074cb5
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
HBA Port WWN: 210100e08b274cb5
Port Mode: Initiator
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3108-xx
Firmware Version: 3.3.116
FCode/BIOS Version: 1.13.08
Serial Number: 0402F00-0549112808
Driver Name: qlc
Driver Version: 20070212-2.19
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb
Current Speed: 2Gb
Node WWN: 200100e08b274cb5
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
示例 4 列出所有远程端口
以下命令可列出通过主机上每个 HBA 端口呈现的所有远程端口:
# fcinfo remote-port
HBA Port WWN: 10000000c957ebdc
Count of Remote Port(s): 3
Remote Port WWN: 10000000c983b45e
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 70800
Port Symbolic Name: Emulex PPN-10:00:00:00:c9:83:b4:5e
Node WWN: 20000000c983b45e
Remote Port WWN: 2100001b3286bc63
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70a00
Port Symbolic Name: qlt0,0
Node WWN: 2000001b3286bc63
Remote Port WWN: 2101001b32a6bc63
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70b00
Port Symbolic Name: qlt1,0
Node WWN: 2001001b32a6bc63
HBA Port WWN: 10000000c957ebdd
Count of Remote Port(s): 0
HBA Port WWN: 10000000c983b45e
Count of Remote Port(s): 4
Remote Port WWN: 2100001b3286bc63
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70a00
Port Symbolic Name: qlt0,0
Node WWN: 2000001b3286bc63
Remote Port WWN: 2101001b32a6bc63
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70b00
Port Symbolic Name: qlt1,0
Node WWN: 2001001b32a6bc63
Remote Port WWN: 201600a0b82a3846
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70e00
Port Symbolic Name:
Node WWN: 200600a0b82a3846
Remote Port WWN: 10000000c957ebdc
Active FC4 Types:
SCSI Target: no
Port ID: 70900
Port Symbolic Name:
Node WWN: 20000000c957ebdc
HBA Port WWN: 10000000c983b45f
Count of Remote Port(s): 0
示例 5 列出给定 HBA 的所有远程端口
以下命令可列出通过给定 HBA 呈现的所有远程端口:
# fcinfo remote-port -p 10000000c957ebdc
HBA Port WWN: 10000000c957ebdc
Count of Remote Port(s): 3
Remote Port WWN: 10000000c983b45e
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 70800
Port Symbolic Name: Emulex PPN-10:00:00:00:c9:83:b4:5e
Node WWN: 20000000c983b45e
Remote Port WWN: 2100001b3286bc63
Port ID: 70a00
Port Symbolic Name: qlt0,0
Node WWN: 2000001b3286bc63
Remote Port WWN: 2101001b32a6bc63
Port ID: 70b00
Port Symbolic Name: qlt1,0
Node WWN: 2001001b32a6bc63
示例 6 列出给定 HBA 的远程端口和链路统计信息
以下命令可列出给定 HBA 端口上的远程端口的信息和这些端口的链路统计信息:
# fcinfo remote-port -l -p 210100e08b272ab5
HBA Port WWN: 210100e08b272ab5
Count of Remote Port(s): 7
Remote Port WWN: 210100e08b296a60
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 10d00
Port Symbolic Name: unknown
Node WWN: 200100e08b296a60
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 20030003ba27d56d
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 10800
Port Symbolic Name: unknown
Node WWN: 10000003ba27d56d
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 4765165
Loss of Signal Count: 4765165
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 210100e08b27f7a6
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10e00
Port Symbolic Name: unknown
Node WWN: 200100e08b27f7a6
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 50020f230000b897
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 10200
Port Symbolic Name: unknown
Node WWN: 50020f200000b897
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 7
Loss of Signal Count: 7
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 210100e08b27daa6
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10100
Port Symbolic Name: unknown
Node WWN: 200100e08b27daa6
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 210000e08b074cb5
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 10700
Port Symbolic Name: unknown
Node WWN: 200000e08b074cb5
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 210100e08b296060
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10600
Port Symbolic Name: unknown
Node WWN: 200100e08b296060
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
示例 7 列出给定 HBA 上的所有 SCSI 目标和链路统计信息
以下命令可列出给定 HBA 端口上的所有远程端口,以及链路统计信息和 scsi-target 信息:
# fcinfo remote-port -sl -p 210100e08b272ab5
HBA Port WWN: 210100e08b272ab5
Count of Remote Port(s): 7
Remote Port WWN: 210100e08b296a60
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 10d00
Port Symbolic Name: unknown
Node WWN: 200100e08b296a60
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 20030003ba27d56d
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 10800
Port Symbolic Name: unknown
Node WWN: 10000003ba27d56d
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 4765165
Loss of Signal Count: 4765165
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: T4
OS Device Name: /dev/rdsk/c4t20030003BA27D56Dd0s2
LUN: 1
Vendor: SUN
Product: T4
OS Device Name: /dev/rdsk/c4t20030003BA27D56Dd1s2
Remote Port WWN: 210100e08b27f7a6
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10e00
Port Symbolic Name: unknown
Node WWN: 200100e08b27f7a6
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 50020f230000b897
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 10200
Port Symbolic Name: unknown
Node WWN: 50020f200000b897
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 7
Loss of Signal Count: 7
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: T300
OS Device Name: Unknown
LUN: 1
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d1s2
LUN: 2
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d2s2
LUN: 3
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d3s2
LUN: 4
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d4s2
LUN: 5
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d5s2
LUN: 6
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d6s2
LUN: 7
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d7s2
LUN: 8
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d8s2
LUN: 9
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d9s2
LUN: 10
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d10s2
LUN: 11
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d11s2
LUN: 12
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d12s2
LUN: 13
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d13s2
LUN: 14
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d14s2
LUN: 15
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d15s2
Remote Port WWN: 210100e08b27daa6
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10100
Port Symbolic Name: unknown
Node WWN: 200100e08b27daa6
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 210000e08b074cb5
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 10700
Port Symbolic Name: unknown
Node WWN: 200000e08b074cb5
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
Remote Port WWN: 210100e08b296060
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10600
Port Symbolic Name: unknown
Node WWN: 200100e08b296060
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
示例 8 列出所有 SCSI 目标和链路统计信息
以下命令可列出主机上每个 HBA 的所有远程端口,以及链路统计信息和 scsi-target 信息:
# fcinfo remote-port -ls
HBA Port WWN: 10000000c957ebdc
Count of Remote Port(s): 3
Remote Port WWN: 10000000c983b45e
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 70800
Port Symbolic Name: Emulex PPN-10:00:00:00:c9:83:b4:5e
Node WWN: 20000000c983b45e
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 7
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 20
Invalid CRC Count: 0
Remote Port WWN: 2100001b3286bc63
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70a00
Port Symbolic Name: qlt0,0
Node WWN: 2000001b3286bc63
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: COMSTAR
OS Device Name: /dev/rdsk/c0t600144F0EE9DCD00000056C136D10001d0s2
Remote Port WWN: 2101001b32a6bc63
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70b00
Port Symbolic Name: qlt1,0
Node WWN: 2001001b32a6bc63
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: COMSTAR
OS Device Name: /dev/rdsk/c0t600144F0EE9DCD00000056C136D10001d0s2
HBA Port WWN: 10000000c957ebdd
Count of Remote Port(s): 0
HBA Port WWN: 10000000c983b45e
Count of Remote Port(s): 4
Remote Port WWN: 2100001b3286bc63
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70a00
Port Symbolic Name: qlt0,0
Node WWN: 2000001b3286bc63
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: COMSTAR
OS Device Name: /dev/rdsk/c0t600144F0EE9DCD00000056C136D10001d0s2
Remote Port WWN: 2101001b32a6bc63
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70b00
Port Symbolic Name: qlt1,0
Node WWN: 2001001b32a6bc63
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 0
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: COMSTAR
OS Device Name: /dev/rdsk/c0t600144F0EE9DCD00000056C136D10001d0s2
Remote Port WWN: 201600a0b82a3846
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 70e00
Port Symbolic Name:
Node WWN: 200600a0b82a3846
Link Error Statistics:
Link Failure Count: 3
Loss of Sync Count: 13
Loss of Signal Count: 25
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 0
Invalid CRC Count: 0
LUN: 0
Vendor: SUN
Product: CSM200_R
OS Device Name: /dev/rdsk/c0t600A0B800026ECBE000061505518C92Bd0s2
LUN: 1
Vendor: SUN
Product: CSM200_R
OS Device Name: /dev/rdsk/c0t600A0B80002A3846000073FD558089ECd0s2
Remote Port WWN: 10000000c957ebdc
Active FC4 Types:
SCSI Target: no
Port ID: 70900
Port Symbolic Name:
Node WWN: 20000000c957ebdc
Link Error Statistics:
Link Failure Count: 0
Loss of Sync Count: 3
Loss of Signal Count: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 2
Invalid CRC Count: 1
HBA Port WWN: 10000000c983b45f
Count of Remote Port(s): 0
示例 9 列出给定 HBA 上的 SCSI 目标信息
以下命令可列出给定 HBA 端口上的所有远程端口和 scsi-target 信息:
# fcinfo remote-port -s -p 210100e08b272ab5
HBA Port WWN: 210100e08b272ab5
Count of Remote Port(s): 7
Remote Port WWN: 210100e08b296a60
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 10d00
Port Symbolic Name: unknown
Node WWN: 200100e08b296060
Remote Port WWN: 20030003ba27d56d
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 10800
Port Symbolic Name: unknown
Node WWN: 10000003ba27d56d
LUN: 0
Vendor: SUN
Product: T4
OS Device Name: /dev/rdsk/c4t20030003BA27D56Dd0s2
LUN: 1
Vendor: SUN
Product: T4
OS Device Name: /dev/rdsk/c4t20030003BA27D56Dd1s2
Remote Port WWN: 210100e08b27f7a6
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10e00
Port Symbolic Name: unknown
Node WWN: 200100e08b27f7a6
Remote Port WWN: 50020f230000b897
Active FC4 Types: SCSI
SCSI Target: yes
Port ID: 10200
Port Symbolic Name: unknown
Node WWN: 50020f200000b897
LUN: 0
Vendor: SUN
Product: T300
OS Device Name: Unknown
LUN: 1
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d1s2
LUN: 2
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d2s2
LUN: 3
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d3s2
LUN: 4
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d4s2
LUN: 5
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d5s2
LUN: 6
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d6s2
LUN: 7
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d7s2
LUN: 8
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d8s2
LUN: 9
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d9s2
LUN: 10
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d10s2
LUN: 11
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d11s2
LUN: 12
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d12s2
LUN: 13
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d13s2
LUN: 14
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d14s2
LUN: 15
Vendor: SUN
Product: T300
OS Device Name: /dev/rdsk/c4t50020F230000B897d15s2
Remote Port WWN: 210100e08b27daa6
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10100
Port Symbolic Name: unknown
Node WWN: 200100e08b27daa6
Remote Port WWN: 210000e08b074cb5
Active FC4 Types: SCSI,IP
SCSI Target: no
Port ID: 10700
Port Symbolic Name: unknown
Node WWN: 200000e08b074cb5
Remote Port WWN: 210100e08b296060
Active FC4 Types: SCSI
SCSI Target: no
Port ID: 10600
Port Symbolic Name: unknown
Node WWN: 200100e08b296060
示例 10 列出逻辑单元
以下命令可列出逻辑单元:
# fcinfo logical-unit OS Device Name: /dev/rdsk/c0t600A0B800026ECBE000061505518C92Bd0s2 OS Device Name: /dev/rdsk/c0t600A0B80002A3846000073FD558089ECd0s2 OS Device Name: /dev/rdsk/c0t600144F0EE9DCD00000056C136D10001d0s2示例 11 显示逻辑单元的其他信息
以下命令使用 –v 选项显示有关设备 /dev/rdsk/c0t600A0B800026ECBE000061505518C92Bd0s2 的逻辑单元的其他信息:
# fcinfo logical-unit -v \ /dev/rdsk/c0t600A0B800026ECBE000061505518C92Bd0s2 OS Device Name: /dev/rdsk/c0t600A0B800026ECBE000061505518C92Bd0s2 HBA Port WWN: 10000000c983b45e Controller: /dev/cfg/c6 Remote Port WWN: 201600a0b82a3846 LUN: 0 Class: secondary State: online Vendor: SUN Product: CSM200_R Device Type: Disk Device Unformatted capacity: 6144.000 MBytes示例 12 显示给定远程节点 WWN 上的逻辑单元的其他信息
以下命令使用 –v 选项显示给定远程节点 WWN 上的逻辑单元的其他信息:
# fcinfo lu -v -N 2000001b3286bc63 OS Device Name: /dev/rdsk/c0t600144F0EE9DCD00000056C136D10001d0s2 HBA Port WWN: 10000000c983b45e Controller: /dev/cfg/c6 Remote Port WWN: 2100001b3286bc63 LUN: 0 Class: primary State: online HBA Port WWN: 10000000c957ebdc Controller: /dev/cfg/c4 Remote Port WWN: 2100001b3286bc63 LUN: 0 Class: primary State: online Vendor: SUN Product: COMSTAR Device Type: Disk Device Unformatted capacity: 2048.000 MBytes示例 13 显示给定远程端口 WWN 上的逻辑单元的其他信息
以下命令使用 –v 选项显示给定远程端口 WWN 上的逻辑单元的其他信息。
# fcinfo lu -v -P 201600a0b82a3846 OS Device Name: /dev/rdsk/c0t600A0B800026ECBE000061505518C92Bd0s2 HBA Port WWN: 10000000c983b45e Controller: /dev/cfg/c6 Remote Port WWN: 201600a0b82a3846 LUN: 0 Class: secondary State: online Vendor: SUN Product: CSM200_R Device Type: Disk Device Unformatted capacity: 6144.000 MBytes OS Device Name: /dev/rdsk/c0t600A0B80002A3846000073FD558089ECd0s2 HBA Port WWN: 10000000c983b45e Controller: /dev/cfg/c6 Remote Port WWN: 201600a0b82a3846 LUN: 1 Class: primary State: online Vendor: SUN Product: CSM200_R Device Type: Disk Device Unformatted capacity: 5120.000 MBytes示例 14 Adding an NPIV Port
The following command adds an NPIV port to the physical HBA port with port name:
210000e08b170f1c
NPIV 端口的端口名称为 2000000000000001,节点名称为 2100000000000001。
# fcadm create-npiv-port -p 2000000000000001 -n 2100000000000001 \
210000e08b170f1c
Created NPIV Port:
HBA Port WWN: 2000000000000001
Node WWN: 2100000000000001
Physical HBA Port WWN: 210000e08b170f1c
示例 15 Adding an NPIV Port with Random WWN
The following command adds an NPIV port with a randomly assigned port and node name to the physical HBA port with port name 210000e08b170f1c.
# fcadm create-npiv-port 210000e08b170f1c
Created NPIV Port:
HBA Port WWN: 2038295824942801
Node WWN: 2100392849248001
Physical HBA Port WWN: 210000e08b170f1c
示例 16 删除 NPIV 端口
以下命令可删除 NPIV 端口。
# fcadm delete-npiv-port -p 2000000000000001 210000e08b170f1c示例 17 创建 FCoE 目标端口
以下命令可创建与 MAC 接口 nxge0 关联的 FCoE 端口。
# fcadm create-fcoe-port -t nxge0示例 18 删除 FCoE 端口
以下命令可删除与 MAC 接口 nxge0 关联的 FCoE 端口。
# fcadm delete-fcoe-port -t nxge0示例 19 列出所有 FCoE 端口的信息
以下命令可列出所有 FCoE 端口的信息。
# fcadm list-fcoe-ports
HBA Port WWN: 2000001b2165a630
Port Mode: Initiator
Port ID: e00033
VLAN ID: 7
Link Name: net2
MTU Size: 2500
Primary MAC Address: 00:1b:21:65:a6:30
FCoE MAC Address: 0e:fc:00:e0:00:33
Promiscuous Mode: Off
State: Online
FIP Mode: On
FCoE Hardware Offload: Supported
HBA Port WWN: 2000001b2165a631
Port Mode: Target
Port ID: e00034
VLAN ID: 7
Link Name: net3
MTU Size: 2500
Primary MAC Address: 00:1b:21:65:a6:31
FCoE MAC Address: 0e:fc:00:e0:00:34
Promiscuous Mode: Off
State: Online
FIP Mode: On
FCoE Hardware Offload: Supported
示例 20 列出所有 FCoE 启动器端口的信息
以下命令可列出所有 FCoE 启动器端口的信息。
# fcadm list-fcoe-ports -i
HBA Port WWN: 2000001b2165a630
Port Mode: Initiator
Port ID: e00033
VLAN ID: 7
Link Name: net2
MTU Size: 2500
Primary MAC Address: 00:1b:21:65:a6:30
FCoE MAC Address: 0e:fc:00:e0:00:33
Promiscuous Mode: Off
State: Online
FIP Mode: On
FCoE Hardware Offload: Supported
示例 21 列出所有 FCoE 目标端口的信息
以下命令可列出所有 FCoE 目标端口的信息。
# fcadm list-fcoe-ports -t
HBA Port WWN: 2000001b2165a631
Port Mode: Target
Port ID: e00034
VLAN ID: 7
Link Name: net3
MTU Size: 2500
Primary MAC Address: 00:1b:21:65:a6:31
FCoE MAC Address: 0e:fc:00:e0:00:34
Promiscuous Mode: Off
State: Online
FIP Mode: On
FCoE Hardware Offload: Supported
示例 22 列出 FCoE 端口的详细信息
以下命令列出基于链路名称 net3 创建的 FCoE 端口的信息。
# fcadm list-fcoe-ports -v net3
HBA Port WWN: 2000001b2165a631
Port Mode: Target
Port ID: e00034
VLAN ID: 7
Link Name: net3
MTU Size: 2500
Primary MAC Address: 00:1b:21:65:a6:31
FCoE MAC Address: 0e:fc:00:e0:00:34
Promiscuous Mode: Off
State: Online
FIP Mode: On
FCoE Hardware Offload: Supported
TX CRC: On
RX CRC: On
LSO: On
LRO: On
MAX LSO Size: 65440
MAX LRO Size: 131072
示例 23 重新初始化 FC 端口的链路
以下命令可强制与端口 200000144fc2d508 连接的链路重新初始化。
# fcadm force-lip 200000144fc2d508
将返回以下退出值:
成功完成。
出现错误。
有关下列属性的说明,请参见 attributes(7):
|
除了通常与系统管理命令关联的错误以外,还可能发生以下错误:
HBA_port_WWN: not found
Remote_port_WWN: not found
HBA_port_WWN: NPIV not supported on this HBA