Gentoo Archives: gentoo-user

From: Sam Jorna <sam.t.jorna@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: [systemd] lvm.service running too early? [HACKED--]
Date: Sun, 08 Dec 2013 23:39:53
Message-Id: 52A5033D.30005@gmail.com
In Reply to: [gentoo-user] Re: [systemd] lvm.service running too early? [HACKED--] by walt
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 09/12/13 09:36, walt wrote:
5 > On 12/08/2013 10:39 AM, Neil Bothwick wrote:
6 >> On Sun, 8 Dec 2013 11:12:23 -0600, Canek Peláez Valdés wrote:
7 >>
8 >>>> It has the same problem. I looked more carefully at the systemd logs
9 >>>> and found that lvm was running before the xhci kernel module was
10 >>>> loaded, hence the usb3 drive was not visible yet.
11 >>>>
12 >>>> I "fixed" the problem by adding "After=basic" to the lvm.service
13 >>>> file, and now it works as expected. (Expected by me, anyway :)
14 >>>
15 >>> Well, at least is working, however is kinda an ugly fix. Could you
16 >>> create the file /etc/modules-load.d/usb3.conf, with the line xhci in
17 >>> it, reboot, and see if your little hack is not needed then? Also, if
18 >>> you are using an initramfs, could you rebuild it before trying?
19 >>
20 >> Alternatively, build xhci into the kernel, since you need it at every
21 >> boot.
22 >
23 > Both of the suggestions above reversed the order of the journalctl
24 > messages so that the usb3 drive appears before lvm.service is run,
25 > but pvscan still finds no volumes and the volume group is not active
26 > after bootup :(
27 >
28 > I changed After=basic.target to After=sysinit.target, which still
29 > gets it working well enough for my primitive needs. IMHO that fix
30 > allows me to decrement ${HACKED} by one :)
31 >
32 >
33 >
34 >
35 >
36 >
37 Just a thought, but isn't there a unit file for autoloading modules
38 (therefore making it usable as a After= target)?
39
40 - --
41 Sam Jorna
42 sam.t.jorna@×××××.com
43 GnuPG Key ID: 12D3EE0C
44 Fingerprint:
45 6D14 8366 16F5 638E 3A29
46 1FED 5D5C 62D9 12D3 EE0C
47
48 Secure your E-mail:
49 http://www.gnupg.org
50 -----BEGIN PGP SIGNATURE-----
51 Version: GnuPG v1.4.15 (GNU/Linux)
52 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
53
54 iQGcBAEBAgAGBQJSpQM3AAoJEF1cYtkS0+4MrI8MAKGdzdY5GLDwk1+1JF+DGMiC
55 RzHrrEVS/+bf8q/z8VSjFPvsIaML9x2yu/Iw2ucvFoFpk4D3n3DGBZrpRhEJiH5a
56 rj/caeoSH6Hs3qId+AAPfCLMl2cnAT1SdbmKnL1B+kHDdi3fPVgbIlJPjOIVUJ4J
57 JOh6/56iSSGo3xlwvRwii3su3xHFYYqs9YpTrJzFxaLL/sNIreiUDzA6wkB/BNEX
58 WvSXAXE7LLt7xo2CvMSU5uGhiCp0rR2iEUbGvZ08fkLLqZn4EGU97fzB7OQ5J6km
59 70yty45f4Sx55zwYTd7ekpTC0prl8dn8xlwARchmVaByBvIrbu1u+zeEYhvKf7G+
60 cYWKQ3y1VRCVBDWkLRrn6S2tUwDTCLGyzpLWMcl26oc9rguJ0ZUT7BL0zN0p5cfd
61 gJ6VZ9MsiXGgv1U3bduBGV7AQUREHQpItdM7z9kjKcEjqaILJX9FLluDDwhTHfcr
62 bIcRDPj+m8kdZvtznY7MWjoSp1RhOJlhaDbSpVXz+g==
63 =PWbf
64 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-user] Re: [systemd] lvm.service running too early? [HACKED--] "Canek Peláez Valdés" <caneko@×××××.com>