The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Christophe Saout <christophe@saout.de>
To: Branko <brankob@avtomatika.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Fw: LVM2 on Gentoo-Dual Opteron/Amd64 system troubles...
Date: Tue, 30 Dec 2003 17:12:51 +0100	[thread overview]
Message-ID: <1072800771.4290.24.camel@leto.cs.pocnet.net> (raw)
In-Reply-To: <007401c3cee2$80edba60$0a03a8c0@brane>

Am Di, den 30.12.2003 schrieb Branko um 15:37:

>  I have bothered support at Sistina with this, but received no answer yet
> (being christmas time etc), so I thought of posting it here also...

Yep, on vacation.

> Manual recommends using special script called lvmcreate_initdr to do initrd
> initialisations, but my lvm2 doesn't have that script. After many trials and
> errors  i have made initrd which succeeds with LVM initialisation, but
> machine reboots just at the point when it should drop initrd environment and
> jump into root  on LV.
> [...]
> -how does one make initrd with LVM ? I had to scavenge script from LVM1,
> without much success...

How does your initrd look like?

What boot loader do you use?

I wrote an initrd myself some time ago that works very well (for me).

It's only a simle x86 one, but I think the binaries could be replaced
with the opteron ones. I just copied the binaries from my own (also
Gentoo) system and stripped them.

You can find it here:
http://www.saout.de/misc/initrd-2.6.0-lvm2-athlon.gz
(there's also a small README in that directory)

gunzip it and
mount initrd-2.6.0-lvm2-athlon /mnt -o loop

Then you can go in there and replace the binaries (some libraries in
/lib, /bin and /sbin).

/bin/sh is a small shell called "ash" (which can also be emerged). udev
is used when no devfs is available.

You can try playing with that one until someone writes a script.

It doesn't contain a module loader so device-mapper and ext3 should be
compiled into the kernel.

You should create a directory called /initrd on your root volume and
pass root=/path/to/volume to the kernel (instead of the numeric
root=fe00), then the script will try to mount the root volume itself and
pivot_root to it which will work better because LVM2 uses dynamic
minors.

Good luck. :)



  reply	other threads:[~2003-12-30 16:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-30 14:37 Fw: LVM2 on Gentoo-Dual Opteron/Amd64 system troubles Branko
2003-12-30 16:12 ` Christophe Saout [this message]
2003-12-30 20:36 ` Toon van der Pas

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=1072800771.4290.24.camel@leto.cs.pocnet.net \
    --to=christophe@saout.de \
    --cc=brankob@avtomatika.com \
    --cc=linux-kernel@vger.kernel.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