16.04 启动非常慢(好几分钟);启动后运行良好;问题主要出在 sendmail、postfix、apache2、plymouth-quit-wait.service

16.04 启动非常慢(好几分钟);启动后运行良好;问题主要出在 sendmail、postfix、apache2、plymouth-quit-wait.service

我的机器需要很长时间才能重新启动。它总是这样。一旦启动,它运行良好。几个月前我研究过这个问题,然后放弃了。我以前这些ATOM BIOS 启动循环错误,大部分已经消失,但在启动时偶尔出现。

/var/log/boot.log显示:

lvmetad is not active yet, using direct activation during sysinit
Volume group "ubuntu-vg" not found
Cannot process volume group ubuntu-vg
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Reading all physical volumes.  This may take a while...
Found volume group "ubuntu-vg" using metadata type lvm2
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
2 logical volume(s) in volume group "ubuntu-vg" now active

启动后检查

$ sudo ls -l /run/lvm/lvmetad.socket
srw------- 1 root root 0 Apr 28 10:51 /run/lvm/lvmetad.socket


$ systemd-analyze blame
1min 30.228s sendmail.service
1min 30.228s postfix.service
1min 30.228s apache2.service
1min 20.195s plymouth-quit-wait.service
     50.239s fail2ban.service
     30.317s NetworkManager-wait-online.service
     30.084s mysql.service
     20.323s lvm2-monitor.service
     20.239s dev-mapper-ubuntu\x2d\x2dvg\x2droot.device
      1.426s docker.service
       130ms ModemManager.service
       122ms accounts-daemon.service
       114ms gpu-manager.service
       109ms grub-common.service
       102ms NetworkManager.service
        93ms thermald.service
        85ms apport.service
        85ms systemd-logind.service
        83ms [email protected]
        79ms irqbalance.service
        75ms apparmor.service
        72ms console-setup.service
        72ms media-maestro.mount
        69ms networking.service
        69ms speech-dispatcher.service
        69ms ondemand.service
        67ms avahi-daemon.service
        61ms lightdm.service
        46ms systemd-modules-load.service
        46ms keyboard-setup.service
        44ms systemd-udev-trigger.service
        42ms systemd-journald.service
        42ms iio-sensor-proxy.service
        41ms upower.service
        41ms [email protected]
        38ms colord.service
        36ms udisks2.service
        30ms ssh.service
        30ms [email protected]

systemd-analyze plot > 输出.svg

有人对需要调查的事情有什么建议吗?

相关内容