Slow dom0 boot - 33sec lvm2-pvscan service

27 views
Skip to first unread message

Chris Laprise

unread,
Mar 31, 2018, 3:38:08 PM3/31/18
to qubes-users
Is there a way to improve boot times here? I know Qubes 4 accumulates a
lot of logical volumes, but it would be nice if the wait time wasn't so
long.


--

Chris Laprise, tas...@posteo.net
https://github.com/tasket
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB 4AB3 1DC4 D106 F07F 1886

Chris Laprise

unread,
Mar 31, 2018, 5:49:32 PM3/31/18
to qubes-users
On 03/31/2018 03:36 PM, Chris Laprise wrote:
> Is there a way to improve boot times here? I know Qubes 4 accumulates a
> lot of logical volumes, but it would be nice if the wait time wasn't so
> long.

I added a kernel boot parameter "systemd.mask=lvm2-pvscan@.service"
which allowed dom0 to boot in just a few seconds.

This left qubesd.service unaware of vm- volumes however, so no appVMs
could start. Manually running 'pvscan --cache --activate ay' then
restarting qubesd.service seemed to get everything working.

I wonder if the lvm2-pvscan@.service should be permanently disabled and
then have the lvm.py driver on initialization run pvscan.
Reply all
Reply to author
Forward
0 new messages