显示多路径支持信息
可以使用 mpathadm 命令显示多路径支持信息并管理多路径搜索。多路径支持和属性信息用多路径管理 API 插件库名称进行标识,可使用 mpathadm 命令显示该插件库名称。
如何显示多路径支持信息成为管理员。
确定系统上的多路径支持。# mpathadm list mpath-support
mpath-support: libmpscsi_vhci.so
显示指定mpath 支持名称的多路径支持属性。# mpathadm show mpath-support libmpscsi_vhci.so
mpath-support: libmpscsi_vhci.so
Vendor: Sun Microsystems
Driver Name: scsi_vhci
Default Load Balance: round-robin
Supported Load Balance Types:
round-robin
logical-block
Allows To Activate Target Port Group Access: yes
Allows Path Override: no
Supported Auto Failback Config: yes
Auto Failback: on
Failback Polling Rate (current/max): 0/0
Supported Auto Probing Config: 0
Auto Probing: NA
Probing Polling Rate (current/max): NA/NA
Supported Devices:
Vendor: SUN
Product: T300
Revision:
Supported Load Balance Types:
round-robin
Vendor: SUN
Product: T4
Revision:
Supported Load Balance Types:
round-robin
.
.
.
命令输出还会显示多路径支持软件支持的设备产品的列表。缺省情况下,多路径支持 libmpscsi_vhci.so 库文件支持符合 T10 目标端口组的设备。
如何显示特定启动器端口的属性
以下步骤描述如何显示启动器端口的属性。
列出启动器端口。# mpathadm list initiator-port
Initiator Port: iqn.1986-03.com.sun:01:ffffffffffff.4e94f9bd,4000002a00ff
Initiator Port: 210100e08ba41feb
Initiator Port: 210000e08b841feb
显示特定启动器端口的属性。
# mpathadm show initiator-port 2000000173018713
Initiator Port: 210100e08ba41feb
Transport Type: Fibre Channel
OS Device File: /devices/pci@1,0/pci1022,7450@1/pci1077,141@2,1/fp@0,0
如果不使用 mpathadm show initiator-port 命令指定启动器端口,则将显示所有发现的启动器端口的属性。
如何显示特定 LU 信息
使用 mpathadm 命令显示 LU 列表以及每个 LU 的属性。显示的 LU 列表中又包含可用于显示特定 LU 的属性的名称。
显示多路径 LU 的列表。# mpathadm list lu
/dev/rdsk/c0t600144F08069703400004E828EE10004d0s2
Total Path Count: 8
Operational Path Count: 8
/dev/rdsk/c0t600144F08069703400004E8183DF0002d0s2
Total Path Count: 8
Operational Path Count: 8
/dev/rdsk/c0t600A0B800026D63A0000A4994E2342D4d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800029065C00007CF54E234013d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800026D63A0000A4984E234298d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800029065C00007CF44E233FCFd0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800026D63A0000A4974E23424Ed0s2
Total Path Count: 4
Operational Path Count: 4
.
.
.
显示使用列表中 LU 名称的特定 LU 的配置信息。
# mpathadm show lu /dev/rdsk/c4t60003BA27D2120004204AC2B000DAB00d0s2
mpath-support: libmpscsi_vhci.so
Vendor: SUN
Product: Sun Storage NAS
Revision: 1.0
Name Type: unknown type
Name: 600144f08069703400004e828ee10004
Asymmetric: yes
Current Load Balance: round-robin
Logical Unit Group ID: NA
Auto Failback: on
Auto Probing: NA
Paths:
Initiator Port Name: 210100e08ba41feb
Target Port Name: 2100001b329b6c3f
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 210100e08ba41feb
Target Port Name: 2101001b32bb6c3f
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 210100e08ba41feb
Target Port Name: 2100001b329b793c
Override Path: NA
Path State: OK
Disabled: no
.
.
.
Target Port Groups:
ID: 0
Explicit Failover: no
Access State: active optimized
Target Ports:
Name: 2100001b329b6c3f
Relative ID: 1
Name: 2101001b32bb6c3f
Relative ID: 2
ID: 1
Explicit Failover: no
Access State: standby
Target Ports:
Name: 2100001b329b793c
Relative ID: 257
Name: 2101001b32bb793c
Relative ID: 256
如果不使用 mpathadm show lu 命令指定 LU 名称,则将显示有关所有发现的逻辑单元的信息。
如何显示与特定目标端口相关联的所有 LU
使用以下步骤显示通过目标端口的路径。
显示 LU 列表。# mpathadm list lu
/dev/rdsk/c0t600144F08069703400004E828EE10004d0s2
Total Path Count: 8
Operational Path Count: 8
/dev/rdsk/c0t600144F08069703400004E8183DF0002d0s2
Total Path Count: 8
Operational Path Count: 8
/dev/rdsk/c0t600A0B800026D63A0000A4994E2342D4d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800029065C00007CF54E234013d0s2
Total Path Count: 4
Operational Path Count: 4
.
.
.
显示特定 LU 的信息,以确定目标端口。# mpathadm show lu /dev/rdsk/c0t600A0B800029065C00007CF54E234013d0s2
Logical Unit: /dev/rdsk/c0t600A0B800029065C00007CF54E234013d0s2
mpath-support: libmpscsi_vhci.so
Vendor: SUN
Product: CSM200_R
Revision: 0660
Name Type: unknown type
Name: 600a0b800029065c00007cf54e234013
Asymmetric: yes
Current Load Balance: round-robin
Logical Unit Group ID: NA
Auto Failback: on
Auto Probing: NA
Paths:
Initiator Port Name: 210000e08b841feb
Target Port Name: 200800a0b826d63b
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 210000e08b841feb
Target Port Name: 200900a0b826d63b
Override Path: NA
Path State: OK
Disabled: no
.
.
.
Target Port Groups:
ID: 4
Explicit Failover: yes
Access State: standby
Target Ports:
Name: 200800a0b826d63b
Relative ID: 0
Name: 200800a0b826d63c
Relative ID: 0
ID: 14
Explicit Failover: yes
Access State: active
Target Ports:
Name: 200900a0b826d63b
Relative ID: 0
Name: 200900a0b826d63c
Relative ID: 0
显示特定的目标端口信息。# mpathadm list lu -t 20030003ba27d212
mpath-support: libmpscsi_vhci.so
/dev/rdsk/c0t600A0B800026D63A0000A4994E2342D4d0s2
Total Path Count: 4
Operational Path Count: 4
mpath-support: libmpscsi_vhci.so
/dev/rdsk/c0t600A0B800029065C00007CF54E234013d0s2
Total Path Count: 4
Operational Path Count: 4
mpath-support: libmpscsi_vhci.so
/dev/rdsk/c0t600A0B800026D63A0000A4984E234298d0s2
Total Path Count: 4
Operational Path Count: 4
mpath-support: libmpscsi_vhci.so
/dev/rdsk/c0t600A0B800029065C00007CF44E233FCFd0s2
Total Path Count: 4
Operational Path Count: 4
.
.
.
如何显示特定名称的 LU
显示有关多路径 LU 的详细信息,包括路径和目标端口组信息。请注意,信息中的名称属性表示该 LU 的标识符,它是从硬件派生出来的,并由该系统使用。如果此名称源自 SCSI Inquiry 重要产品数据 (Vital Product Data, VPD) 页面 83h,则名称类型属性表示 SCSI 标准定义的一个关联标识符类型。
显示多路径 LU 的列表。# mpathadm list lu
/dev/rdsk/c0t600144F08069703400004E828EE10004d0s2
Total Path Count: 8
Operational Path Count: 8
/dev/rdsk/c0t600144F08069703400004E8183DF0002d0s2
Total Path Count: 8
Operational Path Count: 8
/dev/rdsk/c0t600A0B800026D63A0000A4994E2342D4d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800029065C00007CF54E234013d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800026D63A0000A4984E234298d0s2
Total Path Count: 4
Operational Path Count: 4
/dev/rdsk/c0t600A0B800029065C00007CF44E233FCFd0s2
Total Path Count: 4
Operational Path Count: 4
.
.
.
显示选定 LU 的配置信息。
# mpathadm show lu /dev/rdsk/c0t600A0B800026D63A0000A4994E2342D4d0s2
Logical Unit: /dev/rdsk/c0t600A0B800026D63A0000A4994E2342D4d0s2
mpath-support: libmpscsi_vhci.so
Vendor: SUN
Product: CSM200_R
Revision: 0660
Name Type: unknown type
Name: 600a0b800026d63a0000a4994e2342d4
Asymmetric: yes
Current Load Balance: round-robin
Logical Unit Group ID: NA
Auto Failback: on
Auto Probing: NA
Paths:
Initiator Port Name: 210000e08b841feb
Target Port Name: 200800a0b826d63b
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 210000e08b841feb
Target Port Name: 200900a0b826d63b
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 210000e08b841feb
Target Port Name: 200800a0b826d63c
Override Path: NA
Path State: OK
Disabled: no
Initiator Port Name: 210000e08b841feb
Target Port Name: 200900a0b826d63c
Override Path: NA
Path State: OK
Disabled: no
Target Port Groups:
ID: 3
Explicit Failover: yes
Access State: active
Target Ports:
Name: 200800a0b826d63b
Relative ID: 0
Name: 200800a0b826d63c
Relative ID: 0
ID: 13
Explicit Failover: yes
Access State: standby
Target Ports:
Name: 200900a0b826d63b
Relative ID: 0
Name: 200900a0b826d63c
Relative ID: 0
可以使用 mpathadm show lu 命令指定 –e 或 –-path-missing 选项以仅显示缺少的路径的逻辑单元。
显示选定 LU 的信息。# mpathadm list lu -n 600a0b800026d63a0000a4994e2342d4
mpath-support: libmpscsi_vhci.so
/dev/rdsk/c0t600A0B800026D63A0000A4994E2342D4d0s2
Total Path Count: 4
Operational Path Count: 4