ubuntu 20.04系统启动rke2-server.service报错,journalctl -xe查看,报错如下
-- The unit run-containerd-runc-k8s.io-1ec5fa45ab0bdc939d7d11378c4abd50a9aed0cd1a3c0cc93e4a57eb0e3f2a29-runc.FdNCfm.mount has successfully entered the 'dead' state.
Oct 21 01:46:44 ubantu systemd[1790]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.PmgOFC.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit UNIT has successfully entered the 'dead' state.
Oct 21 01:46:44 ubantu systemd[1]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.PmgOFC.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.PmgOFC.mount has successfully entered the 'dead' state.
Oct 21 01:46:44 ubantu systemd[1]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.KcJKJN.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.KcJKJN.mount has successfully entered the 'dead' state.
Oct 21 01:46:45 ubantu multipathd[672]: sda: add missing path
Oct 21 01:46:45 ubantu multipathd[672]: sda: failed to get udev uid: Invalid argument
Oct 21 01:46:45 ubantu multipathd[672]: sda: failed to get sysfs uid: Invalid argument
Oct 21 01:46:45 ubantu multipathd[672]: sda: failed to get sgio uid: No such file or directory
Oct 21 01:46:49 ubantu systemd[1]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.NOEpNm.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.NOEpNm.mount has successfully entered the 'dead' state.
Oct 21 01:46:49 ubantu systemd[1790]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.NOEpNm.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit UNIT has successfully entered the 'dead' state.
Oct 21 01:46:50 ubantu multipathd[672]: sda: add missing path
Oct 21 01:46:50 ubantu multipathd[672]: sda: failed to get udev uid: Invalid argument
Oct 21 01:46:50 ubantu multipathd[672]: sda: failed to get sysfs uid: Invalid argument
Oct 21 01:46:50 ubantu multipathd[672]: sda: failed to get sgio uid: No such file or directory
ESCOC
b0e3f2a29-runc.FdNCfm.mount has successfully entered the 'dead' state.
e2da860a0cfb7d88e89f29d04e823bcb079-runc.PmgOFC.mount: Succeeded.
a860a0cfb7d88e89f29d04e823bcb079-runc.PmgOFC.mount: Succeeded.
823bcb079-runc.PmgOFC.mount has successfully entered the 'dead' state.
a860a0cfb7d88e89f29d04e823bcb079-runc.KcJKJN.mount: Succeeded.
823bcb079-runc.KcJKJN.mount has successfully entered the 'dead' state.
a860a0cfb7d88e89f29d04e823bcb079-runc.NOEpNm.mount: Succeeded.
823bcb079-runc.NOEpNm.mount has successfully entered the 'dead' state.
e2da860a0cfb7d88e89f29d04e823bcb079-runc.NOEpNm.mount: Succeeded.
ESCOD
-- The unit run-containerd-runc-k8s.io-1ec5fa45ab0bdc939d7d11378c4abd50a9aed0cd1a3c0cc93e4a57eb0e3f2a29-runc.FdNCfm.mount has successfully entered the 'dead' state.
Oct 21 01:46:44 ubantu systemd[1790]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.PmgOFC.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit UNIT has successfully entered the 'dead' state.
Oct 21 01:46:44 ubantu systemd[1]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.PmgOFC.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.PmgOFC.mount has successfully entered the 'dead' state.
Oct 21 01:46:44 ubantu systemd[1]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.KcJKJN.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.KcJKJN.mount has successfully entered the 'dead' state.
Oct 21 01:46:45 ubantu multipathd[672]: sda: add missing path
Oct 21 01:46:45 ubantu multipathd[672]: sda: failed to get udev uid: Invalid argument
Oct 21 01:46:45 ubantu multipathd[672]: sda: failed to get sysfs uid: Invalid argument
Oct 21 01:46:45 ubantu multipathd[672]: sda: failed to get sgio uid: No such file or directory
Oct 21 01:46:49 ubantu systemd[1]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.NOEpNm.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.NOEpNm.mount has successfully entered the 'dead' state.
Oct 21 01:46:49 ubantu systemd[1790]: run-containerd-runc-k8s.io-3dc7fcf6139bf45849d45f63306f3e2da860a0cfb7d88e89f29d04e823bcb079-runc.NOEpNm.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit UNIT has successfully entered the 'dead' state.
Oct 21 01:46:50 ubantu multipathd[672]: sda: add missing path
Oct 21 01:46:50 ubantu multipathd[672]: sda: failed to get udev uid: Invalid argument
Oct 21 01:46:50 ubantu multipathd[672]: sda: failed to get sysfs uid: Invalid argument
Oct 21 01:46:50 ubantu multipathd[672]: sda: failed to get sgio uid: No such file or directory
root@ubantu:~# lsb
Command 'lsb' not found, did you mean:
command 'lsd' from snap lsd (0.16.0)
command 'lsm' from deb lsm (1.0.4-1)
command 'msb' from deb mysql-sandbox (3.2.05-1)
command 'lsh' from deb lsh-client (2.1-12build3)
command 'lb' from deb live-build (3.0~a57-1ubuntu38.20.04.2)
command 'lb' from deb open-infrastructure-system-build (20190301-lts1-2)
command 'sb' from deb lrzsz (0.12.21-10)
command 'lsc' from deb livescript (1.6.0+dfsg-1)
command 'lsw' from deb suckless-tools (44-1)
command 'ls' from deb coreutils (8.30-3ubuntu2)
command 'ldb' from deb rocksdb-tools (5.17.2-3)
See 'snap info ' for additional versions.
root@ubantu:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 62M 1 loop /snap/core20/1611
loop1 7:1 0 67.8M 1 loop /snap/lxd/22753
loop2 7:2 0 47M 1 loop /snap/snapd/16292
loop3 7:3 0 48M 1 loop /snap/snapd/17336
loop4 7:4 0 63.2M 1 loop /snap/core20/1623
sda 8:0 0 60G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 58G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 29G 0 lvm /
sr0 11:0 1 1024M 0 rom
编辑/etc/multipath.conf ,增加devnode "sda"一行配置,这里的sda是通过lsblk命令查看出的。
root@ubantu:~# cat /etc/multipath.conf
defaults {
user_friendly_names yes,
devnode "sda"
}
再次启动服务即可。
systemctl start rke2-server.service