[root@servergroup ~]# systemd-analyze critical-chain The time after the unit is active or started is printed after the "@" character. The time the unit takes to start is printed after the "+" character. multi-user.target @11.968s └─rsyslog.service @11.872s +96ms └─network-online.target @11.861s └─NetworkManager-wait-online.service @5.536s +6.324s └─NetworkManager.service @5.325s +206ms └─network-pre.target @5.322s └─firewalld.service @3.784s +1.536s └─polkit.service @2.829s +950ms └─basic.target @2.724s └─sockets.target @2.724s └─dbus.socket @2.724s └─sysinit.target @2.721s └─systemd-update-utmp.service @2.711s +9ms └─auditd.service @2.652s +57ms └─systemd-tmpfiles-setup.service @2.609s +42ms └─import-state.service @2.550s +56ms └─local-fs.target @2.549s └─boot.mount @2.346s +203ms └─systemd-fsck@dev-disk-by\x2duuid-709a568a\x2d6be7\x2d4f96\x2da343\x2d2cad0cdbf3> └─local-fs-pre.target @2.204s └─lvm2-monitor.service @804ms +1.399s └─dm-event.socket @752ms └─-.mount └─system.slice └─-.slice
[root@servergroup ~]# systemctl list-units UNIT LOAD ACTIVE SUB DESCRIPTION proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File> sys-devices-pci0000:00-0000:00:07.1-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device loaded active plugged > sys-devices-pci0000:00-0000:00:10.0-host2-target2:0:0-2:0:0:0-block-sda-sda1.device loaded active plugged > sys-devices-pci0000:00-0000:00:10.0-host2-target2:0:0-2:0:0:0-block-sda-sda2.device loaded active plugged > sys-devices-pci0000:00-0000:00:10.0-host2-target2:0:0-2:0:0:0-block-sda.device loaded active plugged VMw> sys-devices-pci0000:00-0000:00:10.0-host2-target2:0:1-2:0:1:0-block-sdb-sdb1.device loaded active plugged > sys-devices-pci0000:00-0000:00:10.0-host2-target2:0:1-2:0:1:0-block-sdb-sdb2.device loaded active plugged > sys-devices-pci0000:00-0000:00:10.0-host2-target2:0:1-2:0:1:0-block-sdb.device loaded active plugged VMw> sys-devices-pci0000:00-0000:00:11.0-0000:02:00.0-net-ens32.device loaded active plugged 82545EM Gigabit > sys-devices-platform-serial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/ser> sys-devices-platform-serial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/ser> sys-devices-platform-serial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/ser> sys-devices-platform-serial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/ser> sys-devices-virtual-block-dm\x2d0.device loaded active plugged /sys/devices/virtual/bloc> sys-devices-virtual-block-dm\x2d1.device loaded active plugged /sys/devices/virtual/bloc> sys-devices-virtual-block-dm\x2d2.device loaded active plugged /sys/devices/virtual/bloc> sys-module-configfs.device loaded active plugged /sys/module/configfs sys-subsystem-net-devices-ens32.device loaded active plugged 82545EM Gigabit Ethernet
7. 列出所有失败单元
1 2 3 4 5 6 7 8
[root@servergroup ~]# systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● kdump.service loaded failed failed Crash recovery kernel arming LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 1 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'.
[root@servergroup ~]# systemd-analyze critical-chain chronyd.service The time after the unit is active or started is printed after the "@" character. The time the unit takes to start is printed after the "+" character. chronyd.service +32ms └─basic.target @2.724s └─sockets.target @2.724s └─dbus.socket @2.724s └─sysinit.target @2.721s └─systemd-update-utmp.service @2.711s +9ms └─auditd.service @2.652s +57ms └─systemd-tmpfiles-setup.service @2.609s +42ms └─import-state.service @2.550s +56ms └─local-fs.target @2.549s └─boot.mount @2.346s +203ms └─systemd-fsck@dev-disk-by\x2duuid-709a568a\x2d6be7\x2d4f96\x2da343\x2d2cad0cdbf399.service @2.> └─local-fs-pre.target @2.204s └─lvm2-monitor.service @804ms +1.399s └─dm-event.socket @752ms └─-.mount └─system.slice └─-.slice