• ubuntu启动程序报错


    问题描述

    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.
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139

    解决

    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  
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13

    编辑/etc/multipath.conf ,增加devnode "sda"一行配置,这里的sda是通过lsblk命令查看出的。

    root@ubantu:~# cat /etc/multipath.conf 
    defaults {
        user_friendly_names yes,
        devnode "sda"
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5

    再次启动服务即可。

    systemctl start rke2-server.service
    
    • 1
  • 相关阅读:
    integral函数Opencv源码理解-leetcode动态规划的使用场景
    Linux Spug自动化运维平台公网远程访问---内网穿透
    mac安装git
    基于 FastAPI 的房源租赁系统设计与实现
    偏爱BI的他们,率先实现“业务+品牌”共进双赢
    RDD的转换Value类型map(func)案例_大数据培训
    宽字节注入
    数据可视化-直方图
    layUI带搜索的选择框样式和官网显示不一致
    【MySQL】21-MySQL之增删改
  • 原文地址:https://blog.csdn.net/weixin_40548182/article/details/127440069