linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] root fs on a LVM cause kernel panic
@ 2001-11-14 23:53 Daniel Savard
  2001-11-15  0:03 ` Andreas Dilger
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel Savard @ 2001-11-14 23:53 UTC (permalink / raw)
  To: linux-lvm

Hi everyone,

I am using LVM 1.0.1-rc4 and Linux 2.4.13.

I read the lvmcreate_initrd man page and followed the instructions to create
the kernel image with LVM support. However, I am unsuccessful to make it
working properly. The system boot and is showing its messages, including the
message about LVM support in the kernel and while it is trying to mount the
root filesystem, I am getting a kernel panic message saying the "root=" stanza
should be provided with a valid device for the root filesystem.

What am I doing wrong? Is there anything missing? Any way to get extra
debugging messages?


-- 

================================
Daniel Savard
CIDS Inc.
551, boul. Sir Wilfrid Laurier
suite 105
Beloeil, (Qu�bec)
Canada

J3G 4J1

T�l: (450) 467-8014
Internet: dsavard@videotron.ca
================================

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [linux-lvm] root fs on a LVM cause kernel panic
@ 2001-11-15 13:40 Daniel Savard
  2001-11-16 10:08 ` Joost van der Locht
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel Savard @ 2001-11-15 13:40 UTC (permalink / raw)
  To: linux-lvm

Yes I did.

The behavior is exactly as you stated. It seems the VGs are never detected and
then the device for the root filesystem remains invalid.

Is there anything I can do to check what is going wrong? I am new to the initrd
and its usage. I don't know how to work with this beast... I don't think it is
related to the lilo.conf. I saw a comment in the linux-lvm mailing list from Les
Hazelton Sat, 13 Jan 2001 01:11:05-0500, it is very similar to my problem.
However, no solution is described.

I looked at the lvmcreate_initrd script and found the actual libraries where
not included in the image, just the symlinks where taken. I modified the script
in order to include the actual libraries. It didn't work.

The exact message is as follow:

(snip)
VFS: Cannot open root device "3a01" or 3a:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 3a:01

Daniel Savard

Le jeu, 15 nov 2001, vous avez �crit :
> On Nov 15, 2001  00:41 -0500, Daniel Savard wrote:
> > I read the lvmcreate_initrd man page and followed the instructions to create
> > the kernel image with LVM support. However, I am unsuccessful to make it
> > working properly. The system boot and is showing its messages, including the
> > message about LVM support in the kernel and while it is trying to mount the
> > root filesystem, I am getting a kernel panic message saying the "root=" stanza
> > should be provided with a valid device for the root filesystem.
> > 
> > What am I doing wrong? Is there anything missing? Any way to get extra
> > debugging messages?
> 
> Did you add the initrd image to the kernel stanza in lilo.conf and re-run
> lilo?  It sounds like your kernel is booting, but the VGs are not active.
> 
> Cheers, Andreas
> --
> Andreas Dilger
> http://sourceforge.net/projects/ext2resize/
> http://www-mddsp.enel.ucalgary.ca/People/adilger/

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [linux-lvm] root fs on a LVM cause kernel panic
@ 2001-11-16 16:57 Daniel Savard
  2001-11-16 18:18 ` Andreas Dilger
  2001-11-16 22:50 ` Brent Harding
  0 siblings, 2 replies; 10+ messages in thread
From: Daniel Savard @ 2001-11-16 16:57 UTC (permalink / raw)
  To: linux-lvm

I did further testing. Still not working. However, to make things clear I will
detail my environment.

Hardware:
 IBM Netfinity 5000 with RAID
 3 hot-swap disks 9 GB each
 1 Iomega SCSI external 2GB JAZ drive
 1 SCSI tape drive

OS:
  Started from RedHat 7.0
  Kernel at 2.4.13
  Many upgrades to rpms
  gcc at 3.0.2
  glibc 2.2.4
  LVM support built-in
  JFS support built-in
  SCSI support built-in

LVM:
  1.0.1-rc4

JFS:
  1.0.8

I am building a Linux From Scratch (LFS) system. For this purpose, I have
created a VG (datavg). And a 1GB LV (lv_lfs). The LFS system has been built
sucessfully. The old system is RedHat 7.0, with root fs on a non LVM ext2
filesystem. I was able to create the LVM, the JFS filesystem and compile
everything in this file system accordingly to instructions for LFS 3.0. No
major modifications where required from LFS 3.0, except the latest versions of
packages were used.

So, I have a fully functionnal RedHat system on plain ext2 filesystems with LVM
and JFS. The root fs is non-LVM ext2.

I also have a LV which contains a new root fs which is a JFS filesystem. I also
tried with ext2 filesystem and it doesn't fix the problem.

Now, the problem is:

I want to boot with my LV JFS filesystem as root fs. I followed man page
instructions for lvmcreate_initrd and created the initrd file. I checked the
initrd and everything seems to be there.

After a chat discussion with roadrunner on the openprojects lvm channel. We
checked everything in the initrd, as well as the linuxrc file in it and it
seems ok.

While booting I am ending with a kernel panic message. The few last lines of
the boot message are as follow:

VFS: Cannot open root device "3a01" or 3a:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 3a:01

I was suggested to try the following in the linuxrc file:

I added the following line just before the /sbin/umount /proc line:

/bin/echo "3A:01" > /proc/sys/kernel/real-root-dev

The /bin/echo executable was added to the initrd. It didn't fix the problem.

My lilo.conf file is as follow:

image=/boot/lfskernel-2.4.13
        initrd = /boot/initrd-lvm-2.4.13.gz
        root = /dev/datavg/lv_lfs
        label = lvmjfs
        append = "ramdisk_size=8192"
        read-only

I also tested with ramdisk_size=X, where X is the size returned by the
lvmcreate_initrd script for the ramdisk.

Any help would be greatly appreciated.
-- 

================================
Daniel Savard
Internet: dsavard@videotron.ca
================================

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [linux-lvm] root fs on a LVM cause kernel panic
@ 2001-11-19 10:10 Daniel Savard
  0 siblings, 0 replies; 10+ messages in thread
From: Daniel Savard @ 2001-11-19 10:10 UTC (permalink / raw)
  To: linux-lvm; +Cc: joost

No, the /boot is on a ext2 filesystem and JFS is built-in the kernel. I
followed the instructions from the IBM web site for JFS. However, I am not
finished with my setup and I cannot confirm you if it is working as expected.
But, the procedure makes sense.

> Does Lilo support JFS? I use XFS instead of EXT2 but for that I needed to
> patch lilo with XFS support.
>
>
> Joost van der Locht
> Technisch Directeur

-- 

================================
Daniel Savard
Internet: dsavard@videotron.ca
================================

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-11-19 10:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-14 23:53 [linux-lvm] root fs on a LVM cause kernel panic Daniel Savard
2001-11-15  0:03 ` Andreas Dilger
  -- strict thread matches above, loose matches on Subject: below --
2001-11-15 13:40 Daniel Savard
2001-11-16 10:08 ` Joost van der Locht
2001-11-16 16:57 Daniel Savard
2001-11-16 18:18 ` Andreas Dilger
2001-11-16 23:11   ` Daniel Savard
2001-11-19  2:53     ` Joost van der Locht
2001-11-16 22:50 ` Brent Harding
2001-11-19 10:10 Daniel Savard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).