From: Manfred Gschweidl <m.gschweidl@inode.at>
To: Christophe Saout <christophe@saout.de>
Cc: linux-lvm@sistina.com
Subject: Re: [linux-lvm] mount root filesystem on lvm
Date: Sat May 10 11:02:02 2003 [thread overview]
Message-ID: <3EBD22B3.4090808@inode.at> (raw)
In-Reply-To: <1052511447.6321.22.camel@chtephan.cs.pocnet.net>
hello,
thanks for your response. ;-)
i have one more question: what does your "lilo.conf" look like???
especially the "root=...." parameter ist he most interesting one. how
does it need to be named with device-mapper???
thanks for any reply again,
manfred
Christophe Saout wrote:
> Am Fre, 2003-05-09 um 21.19 schrieb Manfred Gschweidl:
>
>
>>was anyone successfull with booting the root-filesystem on am lvm-volume
>>with lvm2 and device-mapper interface, using an initial ramdisk??
>>
>>can anyone point me in the right direction??
>
>
> I built my own ramdisk for that purpose (loosely based on the old LVM1
> ramdisk). It's contains the following files:
>
> -rwxr-xr-x 1 root root 442740 Dec 13 00:48 bin/bash
> -rwxr-xr-x 1 root root 17196 Nov 7 2002 bin/mknod
> -rwsr-xr-x 1 root root 60896 Jan 20 2002 bin/mount
> -rwxr-xr-x 1 root root 46692 Nov 7 2002 bin/sed
> -rwxr-xr-x 1 root root 4948 Dec 25 18:02 bin/true
> -rwsr-xr-x 1 root root 27524 Jan 20 2002 bin/umount
> -rw-r--r-- 1 root root 66 Jan 11 17:17 etc/fstab
> -rw-r--r-- 1 root root 16932 Dec 12 23:36 etc/modprobe.conf
> -rw-r--r-- 1 root root 24 Jan 11 17:17 etc/mtab
> -rwxr-xr-x 1 root root 91790 Nov 7 2002 lib/ld-linux.so.2
> -rwxr-xr-x 1 root root 1193240 Nov 7 2002 lib/libc.so.6
> -rwxr-xr-x 1 root root 17300 Nov 7 2002 lib/libdevmapper.so.0.96
> -rwxr-xr-x 1 root root 9140 Nov 7 2002 lib/libdl.so.2
> -rwxr-xr-x 1 root root 23256 Dec 12 23:56 lib/libhistory.so.4
> -rwxr-xr-x 1 root root 289484 Jan 20 2002 lib/libncurses.so.5
> -rwxr-xr-x 1 root root 156144 Dec 13 00:39 lib/libreadline.so.4
> -r-xr-xr-x 1 root root 433 Dec 25 18:24 linuxrc
> -rwxr-xr-x 1 root root 5876 Jan 11 17:15 sbin/insmod
> -r-xr-xr-x 1 root root 329956 Jan 11 17:13 sbin/lvm
> -rwxr-xr-x 1 root root 18556 Jan 11 17:15 sbin/modprobe
>
> Note: I'm using kernel 2.5.69, so instead of modprobe.conf you should
> use modules.conf, the only purpose of this file in conjunction with
> modprobe is to suppress a lot of kernel messages that say it couldn't
> load the module for major blabla). The shared libraries were used by my
> bash, you can check that with ldd.
>
> The shell script /linuxrc looks like this (note: I removed the
> indentation to fit everything into one line, you might want to correct
> this):
>
> #!/bin/sh
> /bin/mount /proc
> echo /sbin/modprobe > /proc/sys/kernel/modprobe
> if test ! -e /dev/.devfsd ; then
> set -e
> MAJOR=$(/bin/sed -n 's/^ *\([0-9]\+\) \+misc$/\1/p' /proc/devices)
> MINOR=$(/bin/sed -n 's/^ *\([0-9]\+\) \+device-mapper$/\1/p' /proc/misc)
> if test -n "$MAJOR" -a -n "$MINOR" ; then
> /bin/mknod --mode=600 /dev/mapper/control c $MAJOR $MINOR
> fi
> fi
> /sbin/lvm vgchange --ignorelockingfailure -a y
> /bin/umount /proc
>
> The other text files contain this:
>
> chtephan:/mnt/tmp # cat etc/mtab
> /dev/ram0 / ext2 rw 0 0
> chtephan:/mnt/tmp # cat etc/fstab
> /dev/ram0 / ext2 defaults 0 0
> proc /proc proc defaults 0 0
>
> You can also find this ramdisk under
> http://www.saout.de/misc/initrd-2.5.67-lvm2-athlon.gz - as the name
> suggets my libc is athlon optimized, so you might want to replace some
> libraries or executables.
>
> BTW: I've also got some lilo patches on that page (remove the filename
> after the last slash) that make it recognize device-mapper volumes.
>
next prev parent reply other threads:[~2003-05-10 11:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-09 13:31 [linux-lvm] mount root filesystem on lvm Manfred Gschweidl
2003-05-09 14:19 ` Manfred Gschweidl
2003-05-09 15:17 ` Christophe Saout
2003-05-10 11:02 ` Manfred Gschweidl [this message]
2003-05-10 17:49 ` Christophe Saout
2003-05-10 21:05 ` Manfred Gschweidl
2003-05-11 4:57 ` Christophe Saout
2003-05-11 13:00 ` Manfred Gschweidl
2003-05-11 14:03 ` Manfred Gschweidl
2003-05-11 14:13 ` Christophe Saout
2003-05-11 14:38 ` Manfred Gschweidl
2003-05-11 15:00 ` Christophe Saout
2003-05-12 17:38 ` Manfred Gschweidl
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=3EBD22B3.4090808@inode.at \
--to=m.gschweidl@inode.at \
--cc=christophe@saout.de \
--cc=linux-lvm@sistina.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.