IBM 1746 SAN(DS3500)的多路径配置帮助

IBM 1746 SAN(DS3500)的多路径配置帮助
  • 主机:IBM x3850
  • FC-HBA:qlogic qle2562,双端口
  • DAS 存储:IBM DS3500 双控制器,每个控制器连接 1 个端口

在设置新安装的 14.04 并配置设备后,我在启动过程中为 DS3500 的每个设备和每个端口出现设备错误:请参阅下面的日志。

我尝试将 DS3500 中的主机操作系统从 MPP/RDAC 更改为 LNXALUA。错误消息消失了,但 mutlipath -ll 显示使用了 RDAC。调整 multipath.conf 以使用 ALUA 后出现错误:

multipathd:发生动态链接错误:/lib/multipath/libcheckalua.so:无法打开>共享对象文件:没有此文件或目录)

无法解决……

回到 MPP/RDAC 多路径 -ll 上,什么都没显示,而 syslog 在底部显示类似以下日志的错误。多路径现在不起作用了...

任何建议将不胜感激!

日志:

15.331957] qla2xxx [0000:86:00.0]-00fb:3: QLogic QLE2562 - QLogic 8Gb FC Dual-port HBA for System x.
15.372195] qla2xxx [0000:86:00.0]-00fc:3: ISP2532: PCIe (5.0GT/s x8) @ 0000:86:00.0 hdma+ host#=3 fw=7.01.00 (90d5).
15.414007] qla2xxx [0000:86:00.1]-001d: : Found an ISP2532 irq 64 iobase 0xffffc90072cd0000.
15.456150] qla2xxx 0000:86:00.1: irq 113 for MSI/MSI-X
15.456181] qla2xxx 0000:86:00.1: irq 114 for MSI/MSI-X
17.665675] qla2xxx [0000:86:00.0]-505f:3: Link is operational (8 Gbps).
18.030629] qla2xxx [0000:86:00.0]-1020:3: **** Failed mbx[0]=4006, mb[1]=7fe, mb[2]=1, mb[3]=4, cmd=6a ****.
18.072622] scsi 3:0:0:0: Direct-Access     IBM      Universal Xport  1070 PQ: 0 ANSI: 5
18.117509] scsi 3:0:0:1: Direct-Access     IBM      1746      FAStT  1070 PQ: 0 ANSI: 5
18.160602] scsi 3:0:0:0: Attached scsi generic sg2 type 0
18.204151] sd 3:0:0:1: Attached scsi generic sg3 type 0
18.205012] sd 3:0:0:1: [sdb] 1048576000 512-byte logical blocks: (536 GB/500 GiB)
18.206125] sd 3:0:0:1: [sdb] Write Protect is off
18.206128] sd 3:0:0:1: [sdb] Mode Sense: 83 00 10 08
18.206498] sd 3:0:0:1: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
18.338163] scsi4 : qla2xxx
18.347073] qla2xxx [0000:86:00.1]-00fb:4: QLogic QLE2562 - QLogic 8Gb FC Dual-port HBA for System x.
18.347078] qla2xxx [0000:86:00.1]-00fc:4: ISP2532: PCIe (5.0GT/s x8) @ 0000:86:00.1 hdma+ host#=4 fw=7.01.00 (90d5).
18.347571] qla2xxx [0000:95:00.0]-001d: : Found an ISP2532 irq 56 iobase 0xffffc90072cde000.
18.348125] qla2xxx 0000:95:00.0: irq 115 for MSI/MSI-X
18.348141] qla2xxx 0000:95:00.0: irq 116 for MSI/MSI-X
18.713762] sd 3:0:0:1: [sdb]  
18.758261] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
18.802896] sd 3:0:0:1: [sdb]  
18.845334] Sense Key : Illegal Request [current] 
18.888324] sd 3:0:0:1: [sdb]  
18.927702] <<vendor>> ASC=0x94 ASCQ=0x1ASC=0x94 ASCQ=0x1
18.969035] sd 3:0:0:1: [sdb] CDB: 
19.009541] Read(10): 28 00 00 00 00 00 00 00 08 00
19.050279] end_request: I/O error, dev sdb, sector 0
19.089456] Buffer I/O error on device sdb, logical block 0
19.630029] sd 3:0:0:1: [sdb]  
19.666857] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE

...

64.504856] sd 3:0:0:1: rdac: LUN 1 (RDAC) (unowned)
64.505737] sd 5:0:0:1: rdac: LUN 1 (RDAC) (owned)
64.505742] rdac: device handler registered
64.548834] device-mapper: multipath round-robin: version 1.0.0 loaded
64.555789] device-mapper: table: 252:0: multipath: error getting device
64.556196] sd 3:0:0:1: [sdb]  
64.556198] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
64.556200] sd 3:0:0:1: [sdb]  
64.556202] Sense Key : Illegal Request [current] 
64.556203] sd 3:0:0:1: [sdb]  
64.556211] <<vendor>> ASC=0x94 ASCQ=0x1ASC=0x94 ASCQ=0x1
64.556213] sd 3:0:0:1: [sdb] CDB: 
64.556217] Read(10): 28 00 3e 7f ff f0 00 00 08 00
64.556219] end_request: I/O error, dev sdb, sector 1048575984
64.556221] Buffer I/O error on device sdb, logical block 131071998
64.740877] device-mapper: ioctl: error adding target to table
64.751583] device-mapper: table: 252:0: multipath: error getting device
64.811318] device-mapper: ioctl: error adding target to table
64.836536] device-mapper: table: 252:0: multipath: error getting device
64.898305] device-mapper: ioctl: error adding target to table
64.910448] device-mapper: table: 252:0: multipath: error getting device
64.968345] device-mapper: ioctl: error adding target to table
64.985344] device-mapper: table: 252:0: multipath: error getting device
65.045745] device-mapper: ioctl: error adding target to table
65.065624] device-mapper: table: 252:0: multipath: error getting device
65.121701] device-mapper: ioctl: error adding target to table
65.145184] device-mapper: table: 252:0: multipath: error getting device
65.202583] device-mapper: ioctl: error adding target to table
65.223581] device-mapper: table: 252:0: multipath: error getting device
65.281298] device-mapper: ioctl: error adding target to table
65.295510] device-mapper: table: 252:0: multipath: error getting device
65.354897] device-mapper: ioctl: error adding target to table
65.372987] device-mapper: table: 252:0: multipath: error getting device
65.427124] device-mapper: ioctl: error adding target to table

答案1

ALUA 是优先级处理程序,而不是路径检查器。配置文件解析器正在尝试根据您指定的名称加载共享库,但生成的库名称不存在。

看起来 DS3500 是默认多路径配置的一部分。

从你的日志中,

18.117509] scsi 3:0:0:1: 直接访问 IBM 1746 FAStT 1070 PQ: 0 ANSI: 5

看到那个 1746 了吗?这就是您要匹配的产品。

[lp 源:libmultipath/hwtable.c]

        {
                .供应商 = “IBM”,
                .产品 = “1745|1746”,
                .getuid = DEFAULT_GETUID,
                .features = "2 pg_init_retries 50",
                .hwhandler = "1 rdac",
                .选择器 = DEFAULT_SELECTOR,
                .pgpolicy = GROUP_BY_PRIO,
                .pgfailback = -FAILBACK_IMMEDIATE,
                .rr_weight = RR_WEIGHT_NONE,
                .无路径重试 = 15,
                .minio = DEFAULT_MINIO,
                .checker_name = RDAC,
                .prio_名称 = PRIO_RDAC,
                .prio_args = 空,
        },

因此,对于已经支持多路径的 SAN,您所要做的就是创建一个包含“某些内容”的配置文件,然后更新 initrd 以将其复制到 ramdisk,以便它在启动时可用,这样您就可以挂载您的磁盘。

https://help.ubuntu.com/14.04/serverguide/device-mapper-multipathing.html

https://help.ubuntu.com/14.04/serverguide/multipath-setting-up-dm-multipath.html

$ sudo -i

# cat > /etc/multipath.conf <<EOF
defaults {
        user_friendly_names no
}
EOF

# service multipath-tools restart

# lshw -c disk  (I prefer lsscsi, which is not installed by default)

# update-initramfs -u -k all   (you must do this every time you update multipath.conf)

...然后重新启动。它应该“正常工作”。如果不行,您需要拆开您的配置,检查任何假设,并获取手册以确定它对 multipath.conf 应该是什么样子的看法。

相关内容