<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [linux-lvm] Problems with initrd for LVM2 on 2.6.0-test8 and -test9 kernels.. .</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>My apologies for not providing the information earlier... and for my mistake in supplying the link to my initrd image.  I have been bookmarking sites like mad and apparently chose the wrong one...</FONT></P>

<P><FONT SIZE=2>Here is my linuxrc inside the initrd image (this is the one based off of the evms initrd I found on the web, since it seemed the most complete).</FONT></P>

<P><FONT SIZE=2>Please note that I still can't get the "/bin/ash" command to work properly, though I'm working on it.  I did put in the /dev/tty* and /dev/pt* nodes into the initrd image, but still no luck.  </FONT></P>
<BR>
<BR>

<P><FONT SIZE=2>-------- CUT --------</FONT>
</P>

<P><FONT SIZE=2>gweber@windforce:/tmp/test$ more linuxrc</FONT>
<BR><FONT SIZE=2>#!/bin/sh</FONT>
<BR><FONT SIZE=2>/bin/mount /proc</FONT>
<BR><FONT SIZE=2>echo /sbin/modprobe > /proc/sys/kernel/modprobe</FONT>
<BR><FONT SIZE=2>if test ! -e /dev/.devfsd ; then</FONT>
<BR><FONT SIZE=2>        set -e</FONT>
<BR><FONT SIZE=2>        MAJOR=$(/bin/sed -n 's/^ *\([0-9]\+\) \+misc$/\1/p' /proc/devices)</FONT>
<BR><FONT SIZE=2>        MINOR=$(/bin/sed -n 's/^ *\([0-9]\+\) \+device-mapper$/\1/p' /proc/misc</FONT>
<BR><FONT SIZE=2>)</FONT>
<BR><FONT SIZE=2>        if test -n "$MAJOR" -a -n "$MINOR" ; then</FONT>
<BR><FONT SIZE=2>                /bin/mknod --mode=600 /dev/mapper/control c $MAJOR $MINOR</FONT>
<BR><FONT SIZE=2>        fi</FONT>
<BR><FONT SIZE=2>fi</FONT>
<BR><FONT SIZE=2>/sbin/lvm vgchange --ignorelockingfailure -P -a y</FONT>
<BR><FONT SIZE=2>/bin/ash</FONT>
<BR><FONT SIZE=2>/bin/umount /proc</FONT>
</P>

<P><FONT SIZE=2>-------- CUT --------</FONT>
</P>

<P><FONT SIZE=2>Also note that I have tried "root=0a3f", "root=fe00", and "root=/dev/vg00/root"... the major/minor numbers are listed here (from /dev/hda4 "temporary install" root):</FONT></P>

<P><FONT SIZE=2>-------- CUT --------</FONT>
</P>

<P><FONT SIZE=2>gweber@windforce:~$ ls -l /dev/mapper</FONT>
<BR><FONT SIZE=2>crw-------    1 root     root      10,  63 Oct 27 13:34 control</FONT>
<BR><FONT SIZE=2>brw-------    1 root     root     254,   1 Oct 22 08:56 vg00-home</FONT>
<BR><FONT SIZE=2>brw-------    1 root     root     254,   0 Oct 22 08:56 vg00-root</FONT>
<BR><FONT SIZE=2>brw-------    1 root     root     254,   3 Oct 29 08:21 vg00-tmp</FONT>
<BR><FONT SIZE=2>brw-------    1 root     root     254,   4 Oct 29 08:21 vg00-usr</FONT>
<BR><FONT SIZE=2>brw-------    1 root     root     254,   2 Oct 29 08:21 vg00-var</FONT>
</P>

<P><FONT SIZE=2>-------- CUT --------</FONT>
</P>

<P><FONT SIZE=2>In order to (try to) make this work, I did copy all the "missing" binaries, libs, and dev nodes into the evms initrd image.  I would supply that listing, but it would be quite long...</FONT></P>

<P><FONT SIZE=2>Here is my menu.lst from grub.  I've been testing with grub just so that I could enter changes at boot time instead of running "lilo" all over the place.</FONT></P>

<P><FONT SIZE=2>-------- CUT --------</FONT>
</P>

<P><FONT SIZE=2>gweber@windforce:/tmp/test$ more menu.lst</FONT>
<BR><FONT SIZE=2># Author: Luis R. Rodriguez <mcgrof@ruslug.rutgers.edu></FONT>
<BR><FONT SIZE=2># GRUB configuration example file</FONT>
</P>

<P><FONT SIZE=2># Should give you an idea of how to use GRUB to dual boot</FONT>
</P>

<P><FONT SIZE=2># This makes Linux the default ;) Use 1 if you want Windows as default</FONT>
<BR><FONT SIZE=2>default=1</FONT>
</P>

<P><FONT SIZE=2># This means that from now on, GRUB will parse / as (hd0,0)/</FONT>
<BR><FONT SIZE=2>root    (hd0,3)</FONT>
</P>

<P><FONT SIZE=2># Fun splashimage ;-)</FONT>
<BR><FONT SIZE=2># Check <A HREF="http://ruslug.rutgers.edu/~mcgrof/grub-images" TARGET="_blank">http://ruslug.rutgers.edu/~mcgrof/grub-images</A> for a HOWTO</FONT>
<BR><FONT SIZE=2># on making GRUB splashimages.</FONT>
<BR><FONT SIZE=2>#</FONT>
<BR><FONT SIZE=2># I recommend putting all GRUB splashimages in /boot/grub/images</FONT>
<BR><FONT SIZE=2># to not bloat the /boot/grub directory ;)</FONT>
<BR><FONT SIZE=2>splashimage (hd0,0)/grub/images/debian_cooleye-dither.xpm.gz</FONT>
</P>

<P><FONT SIZE=2># vga=xxx sets the framebuffer console to a specific resolution.</FONT>
<BR><FONT SIZE=2># Here is a table you can use so it can help you decide</FONT>
<BR><FONT SIZE=2># what resolution you want to use:</FONT>
<BR><FONT SIZE=2>#       colour          depth   | 640x480  800x600  1024x768 1280x1024</FONT>
<BR><FONT SIZE=2>#       256             (8bit)  |  769      771       773      775</FONT>
<BR><FONT SIZE=2>#       32000           (15bit) |  784      787       790      793</FONT>
<BR><FONT SIZE=2>#       65000           (16bit) |  785      788       791      794</FONT>
<BR><FONT SIZE=2>#       16.7 Mill.      (24bit) |  786      789       792      795</FONT>
</P>
<BR>

<P><FONT SIZE=2># As you will see I have my kernels in /boot/kernels/</FONT>
<BR><FONT SIZE=2># I have found that GRUB allows for a easy-to-use structured and neat</FONT>
<BR><FONT SIZE=2># /boot/ directory. My /boot/ has:</FONT>
<BR><FONT SIZE=2># configs/ kernels/ initrds/ System.maps/ vmlinuxes/</FONT>
<BR><FONT SIZE=2># Looks much nicer than the bloated default /boot/ most distributions use :P</FONT>
</P>

<P><FONT SIZE=2># Ugh... :( you poor thing</FONT>
<BR><FONT SIZE=2>#title  Windows XP</FONT>
<BR><FONT SIZE=2>#rootnoverify   (hd0,0)</FONT>
<BR><FONT SIZE=2># Windows 9x, ME line: chainloader+1</FONT>
<BR><FONT SIZE=2># WIndows XP line:</FONT>
<BR><FONT SIZE=2>#chainloader = (hd0,0)+1</FONT>
</P>

<P><FONT SIZE=2># Yay, viva gorditas</FONT>
<BR><FONT SIZE=2>#title  Debian/X11/GNOME/GNU/etc Linux (2.4.18-bf2.4)</FONT>
<BR><FONT SIZE=2>#kernel /boot/kernels/vmlinuz-2.4.18-bf2.4 root=/dev/hda5 console=ttys0 vga=791</FONT>
<BR><FONT SIZE=2>title   Linux (2.6.0-lvm)</FONT>
<BR><FONT SIZE=2>kernel  (hd0,0)/vmlinuz-2.6.0-test9-aa0.2 root=fe00 console=ttys0</FONT>
<BR><FONT SIZE=2>initrd  (hd0,0)/initrd-gw.gz</FONT>
</P>

<P><FONT SIZE=2>title   Linux (2.6.0)</FONT>
<BR><FONT SIZE=2>kernel  (hd0,0)/boot/vmlinuz-2.6.0-test9-aa0.2 root=/dev/hda4 console=ttys0 vga</FONT>
<BR><FONT SIZE=2>=791</FONT>
<BR><FONT SIZE=2>#initrd  (hd0,3)/boot/initrd-lvm-2.6.0-test8-aa0.1.gz</FONT>
</P>

<P><FONT SIZE=2>title   Linux (2.4.22-xfs)</FONT>
<BR><FONT SIZE=2>kernel  (hd0,3)/boot/vmlinuz-2.4.22-xfs root=/dev/hda4 console=ttys0 vga=791</FONT>
<BR><FONT SIZE=2>initrd  (hd0,3)/boot/initrd.gz</FONT>
</P>
<BR>

<P><FONT SIZE=2>-------- CUT --------</FONT>
</P>

<P><FONT SIZE=2>Thanks in advance!!</FONT>
</P>

<P><FONT SIZE=2>    Geoff</FONT>
</P>
<BR>

<P><FONT SIZE=2> </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Luca Berra</FONT>
<BR><FONT SIZE=2>To: Weber, Geoffrey M.</FONT>
<BR><FONT SIZE=2>Cc: 'linux-lvm@sistina.com'</FONT>
<BR><FONT SIZE=2>Sent: 10/30/2003 7:49 AM</FONT>
<BR><FONT SIZE=2>Subject: Re: [linux-lvm] Problems with initrd for LVM2 on 2.6.0-test8 and -test9 kernels.. .</FONT>
</P>

<P><FONT SIZE=2>On Wed, Oct 29, 2003 at 09:26:14AM -0600, Weber, Geoffrey M. wrote:</FONT>
<BR><FONT SIZE=2>>   library).    As   soon  as  I  try  to  use  LILO  or  GRUB  with</FONT>
<BR><FONT SIZE=2>the</FONT>
<BR><FONT SIZE=2>>   "root=/dev/vg00/root" or "root=3f00" (device major and minor</FONT>
<BR><FONT SIZE=2>numbers),</FONT>
<BR><FONT SIZE=2>>   my  machine  hangs  after  "Uncompressing  Linux...  Ok,  booting</FONT>
<BR><FONT SIZE=2>the</FONT>
<BR><FONT SIZE=2>>   kernel.".</FONT>
<BR><FONT SIZE=2>could you give us some more details about your setup, including actual</FONT>
<BR><FONT SIZE=2>lines from your configuration.</FONT>
</P>

<P><FONT SIZE=2>>   I  have  also tried (unsuccessfully) to use an initrd image I found</FONT>
<BR><FONT SIZE=2>on</FONT>
<BR><FONT SIZE=2>>   the 'net at [1]<A HREF="http://www.comedia.it/~bluca/cooker/lvm2/" TARGET="_blank">http://www.comedia.it/~bluca/cooker/lvm2/</A></FONT>
</P>

<P><FONT SIZE=2>There is no initrd image at that location.</FONT>
<BR><FONT SIZE=2>What you find there is modified Mandrake rpm to support lvm2 in Mandrake</FONT>
<BR><FONT SIZE=2>Linux 9.2/cooker, and has not been tested with anything different than</FONT>
<BR><FONT SIZE=2>that.</FONT>
</P>

<P><FONT SIZE=2>>   to  see  what  I  could find out. When trying to use the Busybox</FONT>
<BR><FONT SIZE=2>"ash"</FONT>
<BR><FONT SIZE=2>>   command  inside  the  modified evms initrd image, however, the</FONT>
<BR><FONT SIZE=2>machine</FONT>
<BR><FONT SIZE=2>>   doesn't halt and give me a shell at all but keeps booting.</FONT>
<BR><FONT SIZE=2>i saw this problem as well, i don't know if it is caused by some device</FONT>
<BR><FONT SIZE=2>file missing in the initrd image or what.</FONT>
</P>

<P><FONT SIZE=2>L.</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Luca Berra -- bluca@comedia.it</FONT>
<BR><FONT SIZE=2>        Communication Media & Services S.r.l.</FONT>
<BR><FONT SIZE=2> /"\</FONT>
<BR><FONT SIZE=2> \ /     ASCII RIBBON CAMPAIGN</FONT>
<BR><FONT SIZE=2>  X        AGAINST HTML MAIL</FONT>
<BR><FONT SIZE=2> / \</FONT>
</P>
<BR>
<BR>

<P><B><FONT SIZE=2>NOTICE: This electronic mail transmission may contain confidential information and is intended only for the person(s) named.  Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.</FONT></B></P>
<BR>
<BR>

</BODY>
</HTML>