ubuntu20.04 multipath 多路径问题怎么解决

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
xutao123777
帖子: 5
注册时间: 2021-12-10 9:21
系统: 20.04
送出感谢: 0
接收感谢: 0

ubuntu20.04 multipath 多路径问题怎么解决

#1

帖子 xutao123777 » 2022-03-30 10:47

cd /var/log
cat syslog
Mar 30 10:10:06 c2-3 multipath: nvme0n1: failed to get udev uid: Invalid argument
Mar 30 10:10:06 c2-3 multipath: nvme0n1: uid = eui.002538d611b18a04 (sysfs)
Mar 30 10:17:01 c2-3 CRON[1632288]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Mar 30 10:17:24 c2-3 multipath: nvme0n1: failed to get udev uid: Invalid argument
Mar 30 10:17:24 c2-3 multipath: nvme0n1: uid = eui.002538d611b18a04 (sysfs)
Mar 30 10:18:27 c2-3 multipath: nvme0n1: failed to get udev uid: Invalid argument
Mar 30 10:18:27 c2-3 multipath: nvme0n1: uid = eui.002538d611b18a04 (sysfs)
Mar 30 10:18:30 c2-3 multipath: nvme0n1: failed to get udev uid: Invalid argument
Mar 30 10:18:30 c2-3 multipath: nvme0n1: uid = eui.002538d611b18a04 (sysfs)
Mar 30 10:32:20 c2-3 multipath: nvme0n1: failed to get udev uid: Invalid argument
Mar 30 10:32:20 c2-3 multipath: nvme0n1: uid = eui.002538d611b18a04 (sysfs)
Mar 30 10:37:15 c2-3 multipath: nvme0n1: failed to get udev uid: Invalid argument
Mar 30 10:37:15 c2-3 multipath: nvme0n1: uid = eui.002538d611b18a04 (sysfs)
Mar 30 10:38:01 c2-3 multipath: nvme0n1: failed to get udev uid: Invalid argument
Mar 30 10:38:01 c2-3 multipath: nvme0n1: uid = eui.002538d611b18a04 (sysfs)

配置文件如下:
vim /etc/multipath.conf
defaults {
user_friendly_names yes
}
~
头像
astolia
论坛版主
帖子: 5677
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 974 次

Re: ubuntu20.04 multipath 多路径问题怎么解决

#2

帖子 astolia » 2022-03-30 11:21

你到底要干啥?
不想在nvme0n1上搞multipath的话,在/etc/multipath.conf 里把它加入黑名单

代码: 全选

defaults {
user_friendly_names yes
}
blacklist {
    devnode "nvme0n1"
}
不需要multipath功能,直接卸载multipath-tools包
xutao123777
帖子: 5
注册时间: 2021-12-10 9:21
系统: 20.04
送出感谢: 0
接收感谢: 0

Re: ubuntu20.04 multipath 多路径问题怎么解决

#3

帖子 xutao123777 » 2022-03-30 16:12

vim /etc/multipath.conf 是默认配置文件, 没有动他
头像
astolia
论坛版主
帖子: 5677
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 974 次

Re: ubuntu20.04 multipath 多路径问题怎么解决

#4

帖子 astolia » 2022-03-30 16:49

???你到底要干啥?
luokeli
帖子: 1
注册时间: 2022-04-26 17:26
系统: ubuntu22.04
送出感谢: 0
接收感谢: 0

Re: ubuntu20.04 multipath 多路径问题怎么解决

#5

帖子 luokeli » 2022-04-26 17:38

multipath 困扰了我很长时间,参考文章较少
原因是: 我挂载iscsi盘 16快 只能识别8个
解决方案: 我是禁用multipath 并删除deb包
systemctl stop multipathd multipathd.socket multipath-tools
systemctl disable multipathd && systemctl disable multipath-tools
apt remove multipath-tools
回复