Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] boot problems
Date: Sat, 03 May 2014 11:15:42
Message-Id: 1619382.K617jlEHYm@andromeda
In Reply to: Re: [gentoo-user] boot problems by "Stefan G. Weichinger"
1 On Saturday, May 03, 2014 01:06:03 PM Stefan G. Weichinger wrote:
2 > Am 03.05.2014 12:54, schrieb J. Roeleveld:
3 > > I don't use systemd, but as it's pushed by Redhat and redhat, by default,
4 > > uses LVM, I would expect that part to work correctly together.
5 >
6 > Yes ... but I still don't fully get what services to enable to get it
7 > set up correctly. lvmetad yes or no, various systemd-generators ... to
8 > me it looks a bit confusing. I had a local lvm.service ... and disabled
9 > it already.
10 >
11 > >> I am still trying to spot the reason. As mentioned in my other reply
12 > >> currently it seems to also timeout/hang with openrc for me.
13 > >>
14 > >> Right now I downgraded systemd, rebuilt dbus, dracut, procps ...
15 > >
16 > > lvm-utils?
17 >
18 > No such package in portage on my thinkpad ... (using this machine to reply).
19
20 My age shows, there used to be one.
21 Following LVM is installed on my laptop:
22 ===
23 [I] sys-fs/lvm2
24 Available versions: 2.02.97-r1 2.02.103{tbz2} ~2.02.104 ~2.02.105
25 ~2.02.105-r1 ~2.02.105-r2 {clvm cman device-mapper-only (+)lvm1
26 lvm2create_initrd readline selinux static static-libs +thin +udev}
27 Installed versions: 2.02.103{tbz2}(08:11:38 PM 03/05/2014)(lvm1 readline
28 thin udev -clvm -cman -lvm2create_initrd -selinux -static -static-libs)
29
30 ===
31
32 Not sure why, but lvm1 use-flag is enabled. (This is a recent fresh
33 installation, must be a default somewhere)
34 Do you have that flag enabled?
35
36 > >> From a live-cd I am able to mount /, start the 2 raid-arrays, activate
37 > >> VGs and LVs ... everything useable.
38 > >
39 > > Ok, to get this straight.
40 > > You have x amount of disks
41 > > those are in 2 raid-arrays
42 > > on top of that, you have LVM...
43 >
44 > one ssd for / and /home ... 2 hdds building 2 mdadm-arrays as PVs, VGs
45 > on top ... LVs for data/music/VMs/etc
46
47 Sounds similar to my old server. Currently I use hardware raid on the server.
48 My desktops have 2 hdds in raid-0 (striping) with LVM ontop of that. With a
49 small /boot partition containing kernel and an initramfs (built with
50 genkernel)
51
52 > > Can you check that LVM is WAITING for the MDADM arrays to be build?
53 >
54 > I will try to. Disabling it from a non-booting system is a bit
55 > difficult. Commenting the fstab-lines containing LVs didn't help to skip
56 > this step so far (seems there is this LVM-systemd-generator called)
57
58 Check the sequence of the services starting during boot?
59 (might need to disable any boot-splash if present)
60 Does it boot correctly when you physically unplug the drives?
61
62 > >> Removing the "real_init" from the kernel line chooses openrc and also
63 > >> leads to a hanging boot.
64 > >>
65 > >> So a next step seems to comment the LVs from fstab and check if it boots
66 > >> then.
67 > >
68 > > Or enable interactive boot where you can press "I" to have every service
69 > > ask if it needs to be started. Then skip LVM.
70 > > Do you have parallel-boot enabled with OpenRC?
71 >
72 > No.
73 >
74 > > If yes, disable that just to make sure that isn't causing the issue with
75 > > OpenRC.
76 > > With systemd, I would recommend checking the dependencies between mdadm
77 > > and
78 > > lvm.
79 >
80 > Additional scratching: even editing the grub2-line doesn't reliably
81 > chose openrc for booting. Oh my ...
82 >
83 > It would help to somehow set a smaller timeout for this start job to at
84 > least get into emergency mode sooner. Right now it waits forever ("no
85 > limit").
86
87 If you don't need the LVM disks to check the boot-config, try physically
88 unplugging them. (either power or data cable should be sufficient)
89
90 --
91 Joost