Long system boot time

Hi all,

my system normally boots within 10-15secs, but now this:

% systemd-analyze blame  
30.573s lvm2-monitor.service
  712ms snapd.apparmor.service
  484ms dev-nvme0n1p3.device
  434ms home-stefan-stack.mount
  410ms systemd-fsck@dev-disk-by\x2duuid-b72d6cae\x2da37c\x2d4efe\x2dab2d\x2d9ba3c65c85c5.service
  324ms systemd-modules-load.service
  322ms NetworkManager.service
  314ms apparmor.service
  287ms systemd-udev-trigger.service
  222ms snapd.service
  177ms user@1000.service
  141ms systemd-journald.service
  139ms lm_sensors.service
  137ms systemd-tmpfiles-setup-dev-early.service
  136ms cups.service
  124ms systemd-journal-flush.service
  117ms upower.service
   96ms ldconfig.service
   83ms udisks2.service
   80ms systemd-userdbd.service
   78ms systemd-udevd.service
   58ms systemd-tmpfiles-setup.service
   52ms ModemManager.service
   51ms polkit.service
   47ms systemd-sysusers.service
   45ms home.mount
   44ms systemd-hostnamed.service
   37ms avahi-daemon.service
   37ms systemd-fsck@dev-disk-by\x2duuid-b20c33fe\x2dfe17\x2d482a\x2d8441\x2dbcec1e33d7ee.service
   36ms systemd-logind.service
   32ms systemd-timedated.service
   32ms accounts-daemon.service
   30ms colord.service
   27ms systemd-timesyncd.service
   26ms boot-efi.mount
   24ms boot.mount
   24ms systemd-fsck@dev-disk-by\x2duuid-3A4A\x2d3999.service
   22ms systemd-vconsole-setup.service
   22ms systemd-journal-catalog-update.service
   20ms alsa-restore.service
   19ms systemd-tmpfiles-setup-dev.service
   19ms systemd-random-seed.service
   18ms systemd-update-done.service
   18ms dbus-broker.service
   17ms systemd-journalctl.socket
   16ms user-runtime-dir@1000.service
   16ms systemd-userdb-load-credentials.service
   15ms tmp.mount
   14ms systemd-bootctl.socket
   14ms systemd-remount-fs.service
   13ms systemd-fsck@dev-disk-by\x2duuid-be296711\x2dbc7b\x2d4db8\x2db6e9\x2d09d43792ba44.service
   13ms systemd-update-utmp.service
   13ms systemd-user-sessions.service
   12ms dev-hugepages.mount
   11ms proc-sys-fs-binfmt_misc.mount
   11ms dev-mqueue.mount
   11ms lightdm.service
   11ms sys-kernel-debug.mount
   11ms sys-kernel-tracing.mount
   10ms kmod-static-nodes.service
    9ms sys-kernel-config.mount
    9ms sys-fs-fuse-connections.mount
    8ms ufw.service
    8ms systemd-sysctl.service
    7ms systemd-udev-load-credentials.service
    4ms snapd.socket
    1ms sshd-unix-local.socket
    1ms polkit-agent-helper.socket
  640us systemd-coredump.socket
  608us systemd-mute-console.socket
  553us systemd-ask-password.socket
  540us systemd-factory-reset.socket
  531us systemd-storage-fs.socket
  521us systemd-storage-block.socket
  477us systemd-sysext.socket
  406us systemd-repart.socket
  400us systemd-creds.socket
  130us dirmngr@etc-pacman.d-gnupg.socket
   45us systemd-machined.socket
   44us keyboxd@etc-pacman.d-gnupg.socket
   42us gpg-agent-browser@etc-pacman.d-gnupg.socket
   40us systemd-journald-dev-log.socket
   39us avahi-daemon.socket
   39us gpg-agent-ssh@etc-pacman.d-gnupg.socket
   38us systemd-logind-varlink.socket
   38us gpg-agent@etc-pacman.d-gnupg.socket
   38us gpg-agent-extra@etc-pacman.d-gnupg.socket
   37us systemd-importd.socket
   35us systemd-journald.socket
   34us cups.socket
   34us lvm2-lvmpolld.socket
   32us dbus.socket
   28us systemd-userdbd.socket
   26us dm-event.socket
   25us systemd-udevd-varlink.socket
   22us systemd-udevd-control.socket
   20us systemd-hostnamed.socket
   18us systemd-rfkill.socket
   10us systemd-udevd-kernel.socket
rider% 

I don’t need lvm, so could I remove the relevant package?

Kind regards

steve1

Yes, if you are sure that you do not have lvm2 or need support for this in the future, you can remove the lvm2 pacakge. (This is what I did in 2024 according to my pacman.log.)

You might test it before with systemctl disable lvm2-monitor.service and verify that you don’t need it.


Moderator edit: correction to first sentence — inserted the word “not”

Removing lvm2 did not do any harm, and boot time is well again. Thx!