From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Systemd and lvm
Date: Sat, 5 Jan 2013 12:26:50 -0600 [thread overview]
Message-ID: <CADPrc80b-DhGPtaVDAVDvM21==BMrAqL+VDPbvcBn589FC_xTw@mail.gmail.com> (raw)
In-Reply-To: <201301052036.04524.robin.atwood@attglobal.net>
On Sat, Jan 5, 2013 at 7:36 AM, Robin Atwood <robin.atwood@attglobal.net> wrote:
> On Friday 04 Jan 2013, Canek Peláez Valdés wrote:
>> On Fri, Jan 4, 2013 at 10:11 AM, Robin Atwood
>>
>> <robin.atwood@attglobal.net> wrote:
>> > Having observed all the ranting, I thought I would try systemd on a
>> > laptop. It actually seems to work quite well and it is a lot faster.
>> > However I am having trouble getting my LVM partitions mounted. I
>> > installed the LVM service unit from the Gentoo Wiki but it never
>> > completes, timing-out on a job that mounts /var. The VG is actually
>> > created by an initramfs and when systemd dumps you out to the emergency
>> > shell you can use lvs to see the volumes, /dev/mapper has all the
>> > correct devices and "dmsetup ls" shows the LVs. In fact, everything
>> > appears as it should, the partitions just don't get mounted. I
>> > circumvented this by putting "mount -a" in the lvm.service unit, which
>> > then completes and the mount jobs time-out. Everything seems to be OK
>> > but it is a bit of a kludge. One thing I notice is:
>> >
>> >
>> >
>> > # udevadm info -p /dev/mapper/vg00-rootfs -q all
>> >
>> > syspath not found
>> >
>> >
>> >
>> > Udev seems not to know about the LVs. Any ideas?
>>
>> How did you create your initramfs? Have you tried dracut, with
>> DRACUT_MODULES="lvm"?
>>
>> Regards.
>
> I always use genkernel with LVM=YES in genkernel.conf. There is a thread about
> the udev issue at http://forums.gentoo.org/viewtopic-p-6837888.html . I tried
> the suggested work-around but it made no difference, I must still use "mount -
> a".
I've never used genkernel. You could try dracut; its mandatory
dependencies are minimal, and it's actually designed to create an
initramfs, not like genkernel, where the functionality was added as an
afterthought.
Another option is to roll your own initramfs, like the first responder
in the forums thread.
Good luck.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
next prev parent reply other threads:[~2013-01-05 18:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-04 16:11 [gentoo-user] Systemd and lvm Robin Atwood
2013-01-04 16:28 ` Canek Peláez Valdés
2013-01-05 13:36 ` Robin Atwood
2013-01-05 18:26 ` Canek Peláez Valdés [this message]
2013-01-06 13:24 ` Robin Atwood
-- strict thread matches above, loose matches on Subject: below --
2013-09-11 11:22 [gentoo-user] systemd " Stefan G. Weichinger
2013-09-11 11:38 ` Stefan G. Weichinger
2013-09-12 6:50 ` Mick
2013-09-12 8:37 ` Stefan G. Weichinger
2013-09-12 12:43 ` Mick
2013-09-12 13:03 ` Stefan G. Weichinger
2013-09-12 15:11 ` Canek Peláez Valdés
2013-09-12 16:10 ` gottlieb
2013-09-12 16:22 ` Canek Peláez Valdés
2013-09-12 17:35 ` Stefan G. Weichinger
2013-09-12 18:23 ` Canek Peláez Valdés
2013-09-13 12:42 ` Stefan G. Weichinger
2013-09-13 12:54 ` Stefan G. Weichinger
2013-09-13 13:33 ` Stefan G. Weichinger
2013-09-13 17:36 ` Stefan G. Weichinger
2013-09-13 17:52 ` Stefan G. Weichinger
2013-09-12 17:43 ` gottlieb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADPrc80b-DhGPtaVDAVDvM21==BMrAqL+VDPbvcBn589FC_xTw@mail.gmail.com' \
--to=caneko@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox