1 |
On Sat, Jan 5, 2013 at 7:36 AM, Robin Atwood <robin.atwood@×××××××××.net> wrote: |
2 |
> On Friday 04 Jan 2013, Canek Peláez Valdés wrote: |
3 |
>> On Fri, Jan 4, 2013 at 10:11 AM, Robin Atwood |
4 |
>> |
5 |
>> <robin.atwood@×××××××××.net> wrote: |
6 |
>> > Having observed all the ranting, I thought I would try systemd on a |
7 |
>> > laptop. It actually seems to work quite well and it is a lot faster. |
8 |
>> > However I am having trouble getting my LVM partitions mounted. I |
9 |
>> > installed the LVM service unit from the Gentoo Wiki but it never |
10 |
>> > completes, timing-out on a job that mounts /var. The VG is actually |
11 |
>> > created by an initramfs and when systemd dumps you out to the emergency |
12 |
>> > shell you can use lvs to see the volumes, /dev/mapper has all the |
13 |
>> > correct devices and "dmsetup ls" shows the LVs. In fact, everything |
14 |
>> > appears as it should, the partitions just don't get mounted. I |
15 |
>> > circumvented this by putting "mount -a" in the lvm.service unit, which |
16 |
>> > then completes and the mount jobs time-out. Everything seems to be OK |
17 |
>> > but it is a bit of a kludge. One thing I notice is: |
18 |
>> > |
19 |
>> > |
20 |
>> > |
21 |
>> > # udevadm info -p /dev/mapper/vg00-rootfs -q all |
22 |
>> > |
23 |
>> > syspath not found |
24 |
>> > |
25 |
>> > |
26 |
>> > |
27 |
>> > Udev seems not to know about the LVs. Any ideas? |
28 |
>> |
29 |
>> How did you create your initramfs? Have you tried dracut, with |
30 |
>> DRACUT_MODULES="lvm"? |
31 |
>> |
32 |
>> Regards. |
33 |
> |
34 |
> I always use genkernel with LVM=YES in genkernel.conf. There is a thread about |
35 |
> the udev issue at http://forums.gentoo.org/viewtopic-p-6837888.html . I tried |
36 |
> the suggested work-around but it made no difference, I must still use "mount - |
37 |
> a". |
38 |
|
39 |
I've never used genkernel. You could try dracut; its mandatory |
40 |
dependencies are minimal, and it's actually designed to create an |
41 |
initramfs, not like genkernel, where the functionality was added as an |
42 |
afterthought. |
43 |
|
44 |
Another option is to roll your own initramfs, like the first responder |
45 |
in the forums thread. |
46 |
|
47 |
Good luck. |
48 |
-- |
49 |
Canek Peláez Valdés |
50 |
Posgrado en Ciencia e Ingeniería de la Computación |
51 |
Universidad Nacional Autónoma de México |