重庆思庄Oracle、、PostgreSQL、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 772|回复: 0
打印 上一主题 下一主题

[参考文档] A Multipath Mapping Inconsistency Issue

[复制链接]
跳转到指定楼层
楼主
发表于 2025-2-9 11:34:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
The server has incorrect device mappings.

The /etc/multipath.conf shows following wwid/alias pairs:

multipaths {
(snip)
multipath {
wwid <WWID1>
alias <ALIAS1>
}
multipath {
wwid <WWID2>
alias <ALIAS2>
}
(snip)
}

But "multipath-ll" shows

<ALIAS1> (<WWID2>) dm-22 NETAPP,LUN C-Mode >>> should be <ALIAS2> per setting in multipath.conf
<ALIAS2> (<WWID1>) dm-21 NETAPP,LUN C-Mode >>> should be <ALIAS1> per setting in multipath.conf


原因:
The logs shows multipathd already found the wrong mappings, but with no clue to what happened exactly.

Feb 24 12:07:28 hostname multipathd: <WWID1>: unable to rename <ALIAS2> to <ALIAS1> (<ALIAS1> is used by <WWID2>)
Feb 24 12:07:28 hostname multipathd: <WWID2>: unable to rename <ALIAS1> to <ALIAS2> (<ALIAS2> is used by <WWID1>)


处理方法:
You don't need full outage window, flush the specific mapping and then re-run multipath to trigger re-mapping.

In the example below, we can see the mapping is corrected.

# multipath -f <ALIAS1>
# multipath -f <ALIAS2>
# multipath -ll | egrep "dm-21|dm-22"
<ALIAS1> (<WWID1>) dm-21 NETAPP,LUN C-Mode
<ALIAS2> (<WWID2>) dm-22 NETAPP,LUN C-Mode

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2025-4-24 01:03 , Processed in 0.079924 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表