Gentoo Archives: gentoo-user

From: Robin Atwood <robin.atwood@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Systemd and lvm
Date: Sat, 05 Jan 2013 13:37:51
Message-Id: 201301052036.04524.robin.atwood@attglobal.net
In Reply to: Re: [gentoo-user] Systemd and lvm by "Canek Peláez Valdés"
1 On Friday 04 Jan 2013, Canek Peláez Valdés wrote:
2 > On Fri, Jan 4, 2013 at 10:11 AM, Robin Atwood
3 >
4 > <robin.atwood@×××××××××.net> wrote:
5 > > Having observed all the ranting, I thought I would try systemd on a
6 > > laptop. It actually seems to work quite well and it is a lot faster.
7 > > However I am having trouble getting my LVM partitions mounted. I
8 > > installed the LVM service unit from the Gentoo Wiki but it never
9 > > completes, timing-out on a job that mounts /var. The VG is actually
10 > > created by an initramfs and when systemd dumps you out to the emergency
11 > > shell you can use lvs to see the volumes, /dev/mapper has all the
12 > > correct devices and "dmsetup ls" shows the LVs. In fact, everything
13 > > appears as it should, the partitions just don't get mounted. I
14 > > circumvented this by putting "mount -a" in the lvm.service unit, which
15 > > then completes and the mount jobs time-out. Everything seems to be OK
16 > > but it is a bit of a kludge. One thing I notice is:
17 > >
18 > >
19 > >
20 > > # udevadm info -p /dev/mapper/vg00-rootfs -q all
21 > >
22 > > syspath not found
23 > >
24 > >
25 > >
26 > > Udev seems not to know about the LVs. Any ideas?
27 >
28 > How did you create your initramfs? Have you tried dracut, with
29 > DRACUT_MODULES="lvm"?
30 >
31 > Regards.
32
33 I always use genkernel with LVM=YES in genkernel.conf. There is a thread about
34 the udev issue at http://forums.gentoo.org/viewtopic-p-6837888.html . I tried
35 the suggested work-around but it made no difference, I must still use "mount -
36 a".
37
38 -Robin
39 --
40 ----------------------------------------------------------------------
41 Robin Atwood.
42
43 "Ship me somewheres east of Suez, where the best is like the worst,
44 Where there ain't no Ten Commandments an' a man can raise a thirst"
45 from "Mandalay" by Rudyard Kipling
46 ----------------------------------------------------------------------

Replies

Subject Author
Re: [gentoo-user] Systemd and lvm "Canek Peláez Valdés" <caneko@×××××.com>