(it turned out to probably be an incompatibility with uswsusp.conf/hybernation and the referenced LVM swap by it, and that I am on a desktop not notebook) (should I keep this question to help others in some way? the answer is in the comments too and from https://askubuntu.com/a/411589/46437)
lvmetad is not active yet; using direct activation during sysinit
kernel 4.4.0-83-generic 64bits
Ubuntu 16.04.2 LTS
when upgrading from 14.04 to 16.04, huge boot time > 5min, how to config lvmetad to skip directly to what matters?
all related questions have no answers that would work here, so I thought on trying to asking differently.
so, what I can configure at lvmetad to let it skip/ignore/jump directly to what matters instead of wating 5minutes for a simple boot? it seems to be some timeout thing, I read it could be a bug (if so we have no choice then)
some more info here:
so, the systemd-analyze leaves us clueless (well, the network manager 21s is extremely bad, but much less bad than the 5min)
systemd-analyze blame
21.520s NetworkManager-wait-online.service
4.723s lvm2-activation-early.service
3.063s systemd-udev-settle.service
1.712s dev-mapper-LvmGroupRoot\x2droot.device
1.556s hddtemp.service
...
its plot
option is not better, if you try to visualize yours, make it sure to use gwenview
(quite fast) (not imagemagick display
, huge memory usage)
so, looking at dmesg I found this, making it clear it is a lvm problem.
[Sáb Jul 1 20:27:41 2017] floppy0: no floppy controllers found
[Sáb Jul 1 20:33:01 2017] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
[Sáb Jul 1 20:33:01 2017] systemd[1]: systemd 229 running in system mode.
so I want to focus on tweaking lvmetad, any tips?
I had a hint that using an older kernel version would "solve" this problem , but of couse would not contain the newer kernel advantages..
I wont mess my gfx using nomodeset
.
the lvm.conf use_lvmetad=0 makes no difference here.
I am still researching, will update as soon I have more info. It seems to require some expert about lvmetad :)
terminal
output ofsudo blkid
andcat /etc/fstab
. Ping me in a comment starting with@heynnema
and I'll take a look./etc/uswsusp.conf
withresume device = /dev/disk/by-uuid/76c1fa3...
that points to a LVM swap (I commented that line), and I am on a desktop machine (I was trying to resume at 14.04 but did not work). All other things related toblkid
,fstab
,mount
where matching, there was no missing UUID./etc/initramfs-tools/conf.d/resume
. So, are your boot times OK now?resume
and update it with the proper UUID of the swap partition (taken fromsudo blkid
if you need to), then you do theupdate-initramfs -u