From: Mike Kazantsev <mk.fraggod@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] lvm problem -- is timing?
Date: Sat, 20 Jun 2009 11:33:38 +0600 [thread overview]
Message-ID: <20090620113338.7d78293c@coercion> (raw)
In-Reply-To: <a0811460906192115k1de5cc9dk3e1707fc90de554f@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3103 bytes --]
On Fri, 19 Jun 2009 22:15:12 -0600
Maxim Wexler <maxim.wexler@gmail.com> wrote:
> Seems if I add the commands:
>
> vgscan --mknodes
> vgchange -a y
> mount -a
>
> to /etc/conf.d/bootmisc and add it to the boot runlevel, the eee boots
> to a coherent system BUT not before going through LVM failure, errors,
> inability to find volumes etc through many console lines until just
> after the line:
>
> *Configuring kernel parameters...
>
> comes
>
> Reading all physical volumes. This may take a while...
> Found volume group "vg" using metadata type lvm2
> 5 logical volume(s) in volume group "vg" now active
> ...
>
> And everything is fine after that. So it looks like a question of
> timing, of executing bootmisc or something like it earlier, say just
> after loading dm-mod and dm-crypt and just before the line in the
> console:
>
> *Setting up the Logical Volume Manager...
>
> When it all starts to fall apart.
>
> FWIW I'm using baselayout-2.
I've had such problem in the past, even filed the bug:
http://bugs.gentoo.org/show_bug.cgi?id=255237
For me, the problem was that "device-mapper" initscript started after
"lvm".
I believe there's "after device-mapper" line already in lvm-2.02.45, so
it should run fine, but as an additional precaution I have dm-crypt
script at sysinit runlevel, which starts device-mapper and dm-crypt
before lvm or even it's runlevel (boot).
It makes sense for me, since some lvm pv's (not root) are actually on
encrypted partitions, although I mount these even earlier, but should
initrd become incompatible w/ latest kernel, dm-crypt should do the job
instead.
Guess you can do the same, at least if you don't have dm-crypt
mappings, or you can try adding device-mapper to sysinit level directly.
Here's my boot sequence (from rc.log):
rc sysinit logging started at Fri Jun 12 04:24:55 2009
OpenRC 0.4.3 is starting up Gentoo Linux (i686)
Press I to enter interactive boot mode
* Mounting /proc...
[ ok ]
* Mounting /sys...
[ ok ]
* Mounting debug filesystem...
[ ok ]
* Mounting /dev...
[ ok ]
* Starting udevd...
[ ok ]
* Populating /dev with existing devices through uevents...
[ ok ]
* Waiting for uevents to be processed...
[ ok ]
* Mounting /dev/pts...
[ ok ]
* Mounting /dev/shm...
[ ok ]
* device-mapper uses addon code which is deprecated
* and may not be available in the future.
* Setting up dm-crypt mappings...
* dm-crypt mapping lvcrypt is already configured
[ ok ]
rc sysinit logging stopped at Fri Jun 12 04:24:55 2009
rc boot logging started at Fri Jun 12 04:24:55 2009
* Setting system clock using the hardware clock [Local Time]...
[ ok ]
* Autoloaded 0 module(s)
* lvm uses addon code which is deprecated
* and may not be available in the future.
* Setting up the Logical Volume Manager...
Locking type -1 initialisation failed.
[ ok ]
* Checking local filesystems ...
...
--
Mike Kazantsev // fraggod.net
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2009-06-20 5:36 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-20 4:15 [gentoo-user] lvm problem -- is timing? Maxim Wexler
2009-06-20 5:33 ` Mike Kazantsev [this message]
2009-06-20 7:08 ` Dirk Heinrichs
2009-06-20 7:37 ` Mike Kazantsev
2009-06-20 9:01 ` Dirk Heinrichs
2009-06-20 11:56 ` Mike Kazantsev
2009-06-20 12:46 ` Dirk Heinrichs
2009-06-20 19:23 ` Maxim Wexler
2009-06-20 20:26 ` Dirk Heinrichs
2009-06-20 20:34 ` Dirk Heinrichs
2009-06-20 19:14 ` Maxim Wexler
2009-06-20 20:23 ` Dirk Heinrichs
2009-06-20 20:48 ` Dirk Heinrichs
2009-06-20 23:51 ` Maxim Wexler
2009-06-21 7:57 ` Dirk Heinrichs
2009-06-21 21:16 ` Maxim Wexler
2009-06-21 21:32 ` Maxim Wexler
2009-06-21 21:49 ` Neil Bothwick
2009-06-21 22:17 ` Ian Lee
2009-06-22 1:20 ` Maxim Wexler
2009-06-22 16:43 ` Dirk Heinrichs
2009-06-22 17:23 ` Maxim Wexler
2009-06-22 1:13 ` Maxim Wexler
2009-06-22 7:12 ` Neil Bothwick
2009-06-22 17:42 ` Maxim Wexler
2009-06-22 22:20 ` Neil Bothwick
2009-06-22 18:09 ` Maxim Wexler
2009-06-22 22:25 ` Neil Bothwick
2009-06-23 2:12 ` Maxim Wexler
2009-06-23 7:32 ` Neil Bothwick
2009-06-23 19:15 ` Maxim Wexler
2009-06-23 21:09 ` Alan McKinnon
2009-06-23 21:36 ` Neil Bothwick
2009-06-23 21:59 ` Maxim Wexler
2009-06-23 22:03 ` Neil Bothwick
2009-06-24 20:10 ` Maxim Wexler
2009-06-22 16:49 ` Dirk Heinrichs
2009-06-22 17:33 ` Maxim Wexler
2009-06-22 22:21 ` Neil Bothwick
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=20090620113338.7d78293c@coercion \
--to=mk.fraggod@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