public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dirk Heinrichs <dirk.heinrichs@online.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] lvm problem -- is timing?
Date: Sat, 20 Jun 2009 09:08:05 +0200	[thread overview]
Message-ID: <200906200908.10610.dirk.heinrichs@online.de> (raw)
In-Reply-To: <20090620113338.7d78293c@coercion>

[-- Attachment #1: Type: text/plain, Size: 3696 bytes --]

Am Samstag 20 Juni 2009 07:33:38 schrieb Mike Kazantsev:
> 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).

That's not needed, it should be sufficient to have them all in the boot 
runlevel:

# ll /etc/runlevels/boot
insgesamt 0
lrwxrwxrwx 1 root root 20 28. Dez 14:02 bootmisc -> /etc/init.d/bootmisc*
lrwxrwxrwx 1 root root 25 12. Apr 08:58 device-mapper -> /etc/init.d/device-
mapper*
lrwxrwxrwx 1 root root 19 12. Apr 08:59 dmcrypt -> /etc/init.d/dmcrypt*
lrwxrwxrwx 1 root root 16 28. Dez 13:53 fsck -> /etc/init.d/fsck*
lrwxrwxrwx 1 root root 20 28. Dez 14:02 hostname -> /etc/init.d/hostname*
lrwxrwxrwx 1 root root 19 28. Dez 14:02 hwclock -> /etc/init.d/hwclock*
lrwxrwxrwx 1 root root 19 28. Dez 17:20 keymaps -> /etc/init.d/keymaps*
lrwxrwxrwx 1 root root 22 28. Dez 14:02 localmount -> /etc/init.d/localmount*
lrwxrwxrwx 1 root root 15 12. Apr 08:58 lvm -> /etc/init.d/lvm*
lrwxrwxrwx 1 root root 19 28. Dez 14:02 modules -> /etc/init.d/modules*
lrwxrwxrwx 1 root root 16 28. Dez 13:53 mtab -> /etc/init.d/mtab*
lrwxrwxrwx 1 root root 18 28. Dez 14:02 net.lo -> /etc/init.d/net.lo*
lrwxrwxrwx 1 root root 18 28. Dez 13:53 procfs -> /etc/init.d/procfs*
lrwxrwxrwx 1 root root 16 28. Dez 13:53 root -> /etc/init.d/root*
lrwxrwxrwx 1 root root 16 28. Dez 13:53 swap -> /etc/init.d/swap*
lrwxrwxrwx 1 root root 18 28. Dez 14:02 sysctl -> /etc/init.d/sysctl*
lrwxrwxrwx 1 root root 24 28. Dez 14:02 termencoding -> 
/etc/init.d/termencoding*
lrwxrwxrwx 1 root root 19 28. Dez 14:02 urandom -> /etc/init.d/urandom*

> 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.

No, it does not make sense. You don't even need an initrd.

> 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.

As said above, it's not not needed. Maybe it's better to investigate wether 
there are any leftovers from baselayout 1 in the runlevels. This was at least 
the reason I got an unbootable system after switching to bl 2.

HTH...

	Dirk

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

  reply	other threads:[~2009-06-20  7:08 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
2009-06-20  7:08   ` Dirk Heinrichs [this message]
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=200906200908.10610.dirk.heinrichs@online.de \
    --to=dirk.heinrichs@online.de \
    --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