我有一个安装了“RedHat Entreprise Linux Server 5.6”的两个节点的集群
如果我对这些服务器执行“multipath -ll”,则不会得到相同的结果。我已在“multipathd -k”中使用“show path”进行了检查,但并未获得 server1 上的所有路径。
请注意,“server1”是集群中的 actif 节点。
请问,我该如何解决这个问题?
提前感谢你的大力帮助
===============================================
server1root#multipath -ll mpath2 (3600c0ff000134c3e8d11e44f01000000) dm-2 HP,P2000 G3 FC [size=558G][features=1queue_if_no_path][hwhandler=0][rw] _ round-robin 0 [prio=10][active] _ 3:0:0:3 sdc 8:32 [active][ready] mpath1 (3600c0ff000134c3e6e11e44f01000000) dm-1 HP,P2000 G3 FC [size=95M][features=1queue_if_no_path][hwhandler=0][rw] _ round-robin 0 [prio=10][active] _ 3:0:0:2 sdb 8:16 [活动][就绪] mpath0 (3600c0ff000118c37dc11e44f01000000) dm-0 HP,P2000 G3 FC [size=558G][features=1queue_if_no_path][hwhandler=0][rw] _ 循环 0 [prio=50][活动] _ 3:0:0:1 sda 8:0 [活动][就绪] mpath4 (3600c0ff000134c3e4912e44f01000000) dm-4 HP,P2000 G3 FC [size=279G][features=1queue_if_no_path][hwhandler=0][rw] _ 循环 0 [prio=10][活动] _ 3:0:0:5 sde 8:64 [活动][就绪] mpath3 (3600c0ff000118c371d12e44f01000000) dm-3 HP,P2000 G3 FC [大小=279G][功能=1 队列_if_no_path][hwhandler=0][rw] _ 循环 0 [优先级=50][活动] _ 3:0:0:4 sdd 8:48 [活动][就绪] server1root#
server1 multipathd> 显示路径 hcil dev dev_t pri dm_st chk_st next_check 3:0:0:1 sda 8:0 50 [活动][就绪] XXXXXXXXX。 19/20 3:0:0:2 sdb 8:16 10 [活动][就绪] XXXXXXXXX。 19/20 3:0:0:3 sdc 8:32 10 [活动][就绪] XXXXXXXXX。 19/20 3:0:0:4 sdd 8:48 50 [活动][就绪] XXXXXXXXX。 19/20 3:0:0:5 sde 8:64 10 [活动][就绪] XXXXXXXXX。 19/20 multipathd>
server2root#multipath -ll mpath2 (3600c0ff000134c3e8d11e44f01000000) dm-2 HP、P2000 G3 FC [size=558G][features=1queue_if_no_path][hwhandler=0][rw] _ round-robin 0 [prio=50][active] _ 2:0:0:3 sdc 8:32 [active][ready] _ round-robin 0 [prio=10][enabled] _ 3:0:0:3 sdh 8:112 [active][ready] mpath1 (3600c0ff000134c3e6e11e44f01000000) dm-1 HP、P2000 G3 FC [size=95M][features=1队列_if_no_path][hwhandler=0][rw] _ 循环 0 [prio=50][活动] _ 2:0:0:2 sdb 8:16 [活动][就绪] _ 循环 0 [prio=10][启用] _ 3:0:0:2 sdg 8:96 [活动][就绪] mpath0 (3600c0ff000118c37dc11e44f01000000) dm-0 HP,P2000 G3 FC [size=558G][features=1 队列_if_no_path][hwhandler=0][rw] _ 循环 0 [prio=50][活动] _ 3:0:0:1 sdf 8:80 [活动][就绪] _ 循环 0 [prio=10][启用] _ 2:0:0:1 sda 8:0 [活动][就绪] mpath4 (3600c0ff000134c3e4912e44f01000000) dm-4 HP、P2000 G3 FC [大小=279G][功能=1 队列_if_no_path][hwhandler=0][rw] _ 循环 0 [优先级=50][活动] _ 2:0:0:5 sde 8:64 [活动][就绪] _ 循环 0 [优先级=10][已启用] _ 3:0:0:5 sdj 8:144 [活动][就绪] mpath3 (3600c0ff000118c371d12e44f01000000) dm-3 HP、P2000 G3 FC [大小=279G][功能=1queue_if_no_path][hwhandler=0][rw]_循环 0[优先级=50][活动]_3:0:0:4 sdi 8:128[活动][就绪]_循环 0[优先级=10][已启用]_2:0:0:4 sdd 8:48[活动][就绪]server2root#
server2 multipathd> 显示路径 hcil dev dev_t pri dm_st chk_st next_check 2:0:0:1 sda 8:0 10 [活动][就绪] XXX....... 7/20 2:0:0:2 sdb 8:16 50 [活动][就绪] XXX....... 7/20 2:0:0:3 sdc 8:32 50 [活动][就绪] XXX....... 7/20 2:0:0:4 sdd 8:48 10 [活动][就绪] XXX....... 7/20 2:0:0:5 sde 8:64 50 [活动][就绪] XXX....... 7/20 3:0:0:1 sdf 8:80 50 [活动][就绪] XXX....... 7/20 3:0:0:2 sdg 8:96 10 [活动][就绪] XXX....... 7/20 3:0:0:3 sdh 8:112 10 [活动][就绪] XXX....... 7/20 3:0:0:4 sdi 8:128 50 [活动][就绪] XXX....... 7/20 3:0:0:5 sdj 8:144 10 [活动][就绪] XXX....... 7/20 multipathd>
答案1
抱歉,请参阅下文以获得清晰的解读:
server1root#multipath -ll
mpath2 (3600c0ff000134c3e8d11e44f01000000) dm-2 HP,P2000 G3 FC
[size=558G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=10][active]
\_ 3:0:0:3 sdc 8:32 [active][ready]
mpath1 (3600c0ff000134c3e6e11e44f01000000) dm-1 HP,P2000 G3 FC
[size=95M][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=10][active]
\_ 3:0:0:2 sdb 8:16 [active][ready]
mpath0 (3600c0ff000118c37dc11e44f01000000) dm-0 HP,P2000 G3 FC
[size=558G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=50][active]
\_ 3:0:0:1 sda 8:0 [active][ready]
mpath4 (3600c0ff000134c3e4912e44f01000000) dm-4 HP,P2000 G3 FC
[size=279G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=10][active]
\_ 3:0:0:5 sde 8:64 [active][ready]
mpath3 (3600c0ff000118c371d12e44f01000000) dm-3 HP,P2000 G3 FC
[size=279G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=50][active]
\_ 3:0:0:4 sdd 8:48 [active][ready]
server1root#
multipathd> show paths
hcil dev dev_t pri dm_st chk_st next_check
3:0:0:1 sda 8:0 50 [active][ready] XXXXXXXXX. 19/20
3:0:0:2 sdb 8:16 10 [active][ready] XXXXXXXXX. 19/20
3:0:0:3 sdc 8:32 10 [active][ready] XXXXXXXXX. 19/20
3:0:0:4 sdd 8:48 50 [active][ready] XXXXXXXXX. 19/20
3:0:0:5 sde 8:64 10 [active][ready] XXXXXXXXX. 19/20
multipathd>
server2root#multipath -ll
mpath2 (3600c0ff000134c3e8d11e44f01000000) dm-2 HP,P2000 G3 FC
[size=558G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=50][active]
\_ 2:0:0:3 sdc 8:32 [active][ready]
\_ round-robin 0 [prio=10][enabled]
\_ 3:0:0:3 sdh 8:112 [active][ready]
mpath1 (3600c0ff000134c3e6e11e44f01000000) dm-1 HP,P2000 G3 FC
[size=95M][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=50][active]
\_ 2:0:0:2 sdb 8:16 [active][ready]
\_ round-robin 0 [prio=10][enabled]
\_ 3:0:0:2 sdg 8:96 [active][ready]
mpath0 (3600c0ff000118c37dc11e44f01000000) dm-0 HP,P2000 G3 FC
[size=558G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=50][active]
\_ 3:0:0:1 sdf 8:80 [active][ready]
\_ round-robin 0 [prio=10][enabled]
\_ 2:0:0:1 sda 8:0 [active][ready]
mpath4 (3600c0ff000134c3e4912e44f01000000) dm-4 HP,P2000 G3 FC
[size=279G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=50][active]
\_ 2:0:0:5 sde 8:64 [active][ready]
\_ round-robin 0 [prio=10][enabled]
\_ 3:0:0:5 sdj 8:144 [active][ready]
mpath3 (3600c0ff000118c371d12e44f01000000) dm-3 HP,P2000 G3 FC
[size=279G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=50][active]
\_ 3:0:0:4 sdi 8:128 [active][ready]
\_ round-robin 0 [prio=10][enabled]
\_ 2:0:0:4 sdd 8:48 [active][ready]
server2root#
multipathd> show paths
hcil dev dev_t pri dm_st chk_st next_check
2:0:0:1 sda 8:0 10 [active][ready] XXX....... 7/20
2:0:0:2 sdb 8:16 50 [active][ready] XXX....... 7/20
2:0:0:3 sdc 8:32 50 [active][ready] XXX....... 7/20
2:0:0:4 sdd 8:48 10 [active][ready] XXX....... 7/20
2:0:0:5 sde 8:64 50 [active][ready] XXX....... 7/20
3:0:0:1 sdf 8:80 50 [active][ready] XXX....... 7/20
3:0:0:2 sdg 8:96 10 [active][ready] XXX....... 7/20
3:0:0:3 sdh 8:112 10 [active][ready] XXX....... 7/20
3:0:0:4 sdi 8:128 50 [active][ready] XXX....... 7/20
3:0:0:5 sdj 8:144 10 [active][ready] XXX....... 7/20
multipathd>