LVM snapshots slow down boot immensely
by sreyan32 from LinuxQuestions.org on (#5AKFC)
I am on Fedora 32.
I use LVM with full disk encryption. I also use LVM snapshots, which have prevented me from completely bricking my entire system many times.
Now the only problem is that the boot times when LVM snapshots are present are extremely long.
I boot my machine, enter my encryption passphrase and then wait for about 3 minutes. It is only after that long wait does my machine boot.
Output of systemd-analyze blame:
Code:3min 26.155s dracut-initqueue.service
38.577s udisks2.service
32.927s dnf-makecache.service
29.180s accounts-daemon.service
25.936s systemd-journal-flush.service
21.845s ModemManager.service
18.583s abrtd.service
18.575s avahi-daemon.service
18.570s bluetooth.service
18.147s firewalld.serviceThis only happens if snapshots are present, if no snapshots are present, boot is almost instantaneous after I enter my passphrase.
Is there any way this can be solved ?
I am not even sure which component to blame for this.
Is this a GRUB2 or systemd or kernel issue?


I use LVM with full disk encryption. I also use LVM snapshots, which have prevented me from completely bricking my entire system many times.
Now the only problem is that the boot times when LVM snapshots are present are extremely long.
I boot my machine, enter my encryption passphrase and then wait for about 3 minutes. It is only after that long wait does my machine boot.
Output of systemd-analyze blame:
Code:3min 26.155s dracut-initqueue.service
38.577s udisks2.service
32.927s dnf-makecache.service
29.180s accounts-daemon.service
25.936s systemd-journal-flush.service
21.845s ModemManager.service
18.583s abrtd.service
18.575s avahi-daemon.service
18.570s bluetooth.service
18.147s firewalld.serviceThis only happens if snapshots are present, if no snapshots are present, boot is almost instantaneous after I enter my passphrase.
Is there any way this can be solved ?
I am not even sure which component to blame for this.
Is this a GRUB2 or systemd or kernel issue?