Failed to find module ‘ip_vs_fo’
今天在安装ipvs 出现的问题,其余几个服务器都没问题,我的ipvs 文件如下
创建 /etc/modules-load.d/ipvs.conf 并加入以下内容:
cat >/etc/modules-load.d/ipvs.conf <<EOF
ip_vs
ip_vs_lc
ip_vs_wlc
ip_vs_rr
ip_vs_wrr
ip_vs_lblc
ip_vs_lblcr
ip_vs_dh
ip_vs_sh
ip_vs_fo
ip_vs_nq
ip_vs_sed
ip_vs_ftp
ip_vs_sh
nf_conntrack
ip_tables
ip_set
xt_set
ipt_set
ipt_rpfilter
ipt_REJECT
ipip
EOF
设置为开机启动
systemctl enable --now systemd-modules-load.service
这个时候加入开机启动还有立马启动执行就会报下面错误
Nov 17 16:54:12 node3 systemd[1]: Starting Load Kernel Modules...
-- Subject: Unit systemd-modules-load.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-modules-load.service has begun starting up.
Nov 17 16:54:12 node3 systemd-modules-load[10784]: Failed to find module 'ip_vs_fo'
Nov 17 16:54:12 node3 systemd[1]: systemd-modules-load.service: main process exited, code=exited, s
Nov 17 16:54:12 node3 systemd[1]: Failed to start Load Kernel Modules.
-- Subject: Unit systemd-modules-load.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-modules-load.service has failed.
--
-- The result is failed.
Nov 17 16:54:12 node3 systemd[1]: Unit systemd-modules-load.service entered failed state.
Nov 17 16:54:12 node3 systemd[1]: systemd-modules-load.service failed.
Nov 17 16:54:12 node3 polkitd[992]: Unregistered Authentication Agent for unix-process:10749:362129
答案:
[root@master1 k8s]# chmod 755 /lib/modules/ipvs.modules && bash /lib/modules/ipvs.modules && lsmod | grep ip_vs
modprobe:致命:找不到模块 ip_vs_fo。
大规模地4年前 (2018-12-11)内核未升级
lentil1016 4 年前 (2018-12-11)
参考:https://github.com/coreos/bugs/issues/2518
好象内核不支持,运行modprobe nf_conntrack就运行
4年前 (2018-12-11 )他的是另外一个模块,是ip_vs_fo找不到,他用的是3.10内核。另外内核nf_conntrack模块的问题已经在1.13.0版本中修复,参考https://github.com-16/Lentil1 issues/14。我的脚中加载的也是nf_conntrack,理应没有问题。
lentil1016 4 年前 (2018-12-11)
该问题地址:https://www.kubernetes.org.cn/4948.html
具体答案:https://github.com/Lentil1016/kubeadm-ha/issues/19
具体原因是内核版本问题,不过也可以将文件中的ip_vs_fo 去掉,然后继续执行