All of lore.kernel.org
 help / color / mirror / Atom feed
From: Les Hazelton <seawolf@attglobal.net>
To: linux-lvm@msede.com
Subject: [linux-lvm] Unable to boot using LVM for "/"
Date: Mon, 09 Oct 2000 15:28:22 -0400	[thread overview]
Message-ID: <39E21C56.B57AC5D4@attglobal.net> (raw)

I have been attempting to move my root partition to a logical volume and
eliminate the current normal partition.  No luck.  I have read the
lvmcreate_initrd man page found at 

http://linux.msede.com/lvm/man/man2html.cgi?lvmcreate_initrd:8

and followed those instructions but it doesn't work for me. I have tried
two different versions of lilo (lilo-0.21.5.1-4mdk and the 0.21.6
binaries from the lilo site) and get the same result from both.

If I use grub with the menu.lst shown below I can boot the entry for
linux-2 and the system runs correctly. Neither of the other two entries
will boot correctly. The /dev/hda9 is the real partition I am attempting
to eliminate.  If I try to boot the first, linux, entry it gets a kernel
panic because it can't locate init. The third entry produces a kernel
panic because it can't mound device 0:0
---------------------------------------------------------
[root@farpt1 /root]# cat /boot/grub/menu.lst
timeout 5
color black/cyan yellow/cyan
i18n (hd0,4)/grub/messages
keytable (hd0,4)/us.klt
default 0

title linux
kernel (hd0,4)/bzImage-2.2.17-0.16mdk-02 init=/boot/init  vga=0x318
initrd (hd0,4)/initrd.lrh.gz

title linux-2
kernel (hd0,4)/bzImage-2.2.17-0.16mdk-02  root=/dev/hda9 vga=0x318
initrd (hd0,4)/initrd.gz

title test
kernel (hd0,4)/bzImage-2.2.17-0.16mdk-02 root=/dev/vg01/main vga=0x318
initrd (hd0,4)/initrd.lrh.gz
----------------------------------------------------------

When the system is booted from the linux-2 entry it produces the
following.  Notice the rdev and "df -h" show clearly different views of
where the root partition is sourced.
----------------------------------------------------------
[root@farpt1 /root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/vg01/main        501M  353M  122M  74% /
/dev/hda5             235M  2.9M  220M   1% /boot
/dev/vg01/usr         2.5G  2.0G  553M  78% /usr
/dev/vg01/src         600M  380M  220M  63% /usr/src
/dev/vg01/local       800M  600M  200M  75% /usr/local
/dev/vg01/home       1020M  434M  586M  43% /home
/dev/vg01/mp3         1.5G  1.4G   98M  94% /mp3
/dev/vg01/var         252M  122M  129M  49% /var
/dev/hda8             2.9G  1.3G  1.5G  47% /Archives
[root@farpt1 /root]# rdev
/dev/hda9 /
------------------------------------------------------------

My lilo.conf resides in the /boot partition which is an ext2fs on
/dev/hda5. It is listed below.  When I install lilo and try to boot the
system It comes up but it is using /dev/hda6 for the root partition and
that belongs to my test copy of LM v7.2 and should have nothing to do
with this system. 

The one thing that is clearly different is that the lvmcreate_initrd man
page references ext2fe file systems and I am using reiserfs for all
except the /boot on /dev/hda5. Can anyone see what I am doing wrong and
get me turned around?  I would sure appreciate the help.

---------------------------------------------
[root@farpt1 /root]# cat /boot/lilo.conf
boot=/dev/hda5
map=/boot/map
install=/boot/boot.b
vga=ext
default=rootonly
keytable=/boot/us.klt
lba32
delay=100
backup=/boot/boot.grub
message=/boot/message
image=/boot/bzImage-2.2.17-0.16mdk-02 vga=0x318
    initrd=/boot/initrd.gz
	root=/dev/vg01/main
	label=rootonly
	append="ramdisk_size=8192"
	read-only
--------------------------------------------------------------

-- 

Good Journey, longevity and prosperity to all

Les Hazelton

             reply	other threads:[~2000-10-09 19:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-09 19:28 Les Hazelton [this message]
2000-10-09 21:23 ` [linux-lvm] Unable to boot using LVM for "/" Charles Duffy
2000-10-10  3:35   ` Les Hazelton
     [not found]     ` <20001010124051.B24659@mvista.com>
2000-10-11  3:42       ` Les Hazelton

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=39E21C56.B57AC5D4@attglobal.net \
    --to=seawolf@attglobal.net \
    --cc=linux-lvm@msede.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.