我看到不再有效的路径和有效的路径。如何防止它们出现在输出中。我期望有四条有效路径。
该卷之前使用 LUN 13 导出,后来使用 14 导出,在下面的输出中显示为失败路径。该卷已从主机正确刷新,后来使用 LUN 12 导出到主机。在使用 LUN 12 导出之前,我确保“multipath -ll”输出中没有此卷。
root# multipath -ll
1703248.744611 | sdar: prio = const (setting: emergency fallback - alua failed)
1703248.745270 | sdas: prio = const (setting: emergency fallback - alua failed)
1703248.745918 | sday: prio = const (setting: emergency fallback - alua failed)
1703248.746573 | sdba: prio = const (setting: emergency fallback - alua failed)
1703248.747204 | sdbf: prio = const (setting: emergency fallback - alua failed)
1703248.747835 | sdbg: prio = const (setting: emergency fallback - alua failed)
mpathhl (1234567891bcdefg123456780911234ab) dm-0 ABC,FlashArray
size=7.0G features='0' hwhandler='1 alua' wp=rw
`-+- policy='round-robin 0' prio=50 status=active
|- 29:0:0:12 sdan 66:112 active ready running
|- 25:0:0:12 sdap 66:144 active ready running
|- 30:0:0:12 sdaq 66:160 active ready running
|- 13:0:0:12 sdaj 66:48 active ready running
|- 29:0:0:13 sdar 66:176 failed faulty running
|- 25:0:0:13 sdas 66:192 failed faulty running
|- 30:0:0:13 sday 67:32 failed faulty running
|- 29:0:0:14 sdba 67:64 failed faulty running
|- 25:0:0:14 sdbf 67:144 failed faulty running
`- 30:0:0:14 sdbg 67:160 failed faulty running
答案1
我发现了这个问题。
- 先前的多路径刷新尝试并未彻底完成。
- 刷新后,需要在 /sys/class/scsi_device/ 下清理相关设备引用。将设备设置为脱机,然后将其删除。