Skip to contentSkip to conversation

problem with lvm on root-fs

linux-lvm Stefan Weigel 2 participants 10 messages Oct 17, 2002 – Oct 20, 2002

lore
Share & tools
lore
#0 lore raw

Hi erveryone!
I'm a little bit closer now. I've create an initrd with lvmcreate_initrd. In this initrd there was no module for my mylex-raid-controller. I've fixed that problem, e.g. put the kernel module in it and changed linuxrc. After rebooting there's another kernel panic, but on this time the system finds my volume groups. Output:

kernel panic: no init found. Try passing init= to...

This is a little bit strange. I checked the initrd another time and in the ramdisk-bin-dir there's the bash and sh.
A little help would be nice!

Greetings

Stefan Weigel

P.S.: I'm using SLES7.2 with the standard-packages.

Quoted 27 lines

Hi!
I'm trying to get lvm on my root-fs working. But there's is an kernel-panic error. Some details:

- system with Mylex RAID-controller (DAC960). It's included in the initrd.

- root-partition is /dev/rd/c0d0p1

I used the HowTo from sistina.com, copied the files from /dev/rd/c0d0p1 to /dev/sysvg/rootlv, edited the /etc/fstab pointing to the new partition /dev/sysvg/rootlv.
I made a reboot and everything worked fine. But in /etc/lilo.conf there's the
entry root=/dev/rd/c0d0p1. I changed this entry to /dev/sysvg/rootlv. Then I run lilo. After another reboot I got the kernel panic.
The initrd is IMO working. But when I change the "root=" entry in /etc/lilo.conf a kernel panic occurs.
Can anybody help me ??

Best regards

Stefan Weigel

#1 lore raw
Quoted 7 lines · Stefan Weigel

Hi erveryone!
I'm a little bit closer now. I've create an initrd with lvmcreate_initrd.
In this initrd there was no module for my mylex-raid-controller. I've fixed that problem, e.g. put the kernel module in it and changed linuxrc. After rebooting there's another kernel panic, but on this time the system finds my volume groups. Output:

kernel panic: no init found. Try passing init= to...

this usually means it couldn't mount your root fs, or got it wrong

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
#2 lore raw

Am Donnerstag, 17. Oktober 2002 09:15 schrieb Luca Berra:

Quoted 8 lines · Stefan Weigel
Quoted 7 lines

Hi erveryone!
I'm a little bit closer now. I've create an initrd with lvmcreate_initrd. In this initrd there was no module for my mylex-raid-controller. I've fixed that problem, e.g. put the kernel module in it and changed linuxrc. After rebooting there's another kernel panic, but on this time the system finds my volume groups. Output:

Quoted 5 lines
Quoted 1 line

kernel panic: no init found. Try passing init= to...

this usually means it couldn't mount your root fs, or got it wrong

L.

Hi,
that's right, but where's my problem ? I've used the howto from sistina.com to convert my root-fs. On a non lvm root partition there are no problems. There's already the entry in /etc/fstab pointing to my root-fs on lvm. Also this is no problem. But when I changing lilo.conf (root=) to my root-fs on lvm I get this error. In the initrd there are all needed modules (RAID+lvm) and it find my volume groups but still I got this kernel panic. There's a /bin/sh, so why it is beefing ?

I'm very confused.

Greetings

Stefan

#3 lore raw
Quoted 9 lines · Stefan Weigel
Quoted 5 lines
Quoted 1 line

kernel panic: no init found. Try passing init= to...

this usually means it couldn't mount your root fs, or got it wrong

L.

Hi,
that's right, but where's my problem ? I've used the howto from sistina.com to

do you have any hint printed above this?

L.

#4 lore raw

Am Donnerstag, 17. Oktober 2002 22:30 schrieb Luca Berra:

Quoted 13 lines
Quoted 9 lines · Stefan Weigel
Quoted 5 lines
Quoted 1 line

kernel panic: no init found. Try passing init= to...

this usually means it couldn't mount your root fs, or got it wrong

L.

Hi,
that's right, but where's my problem ? I've used the howto from sistina.com to

do you have any hint printed above this?

Quoted 8 lines

L.

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Hi!
I don't know exactly what you guess. I've used this one:
http://tldp.org/HOWTO/LVM-HOWTO/upgraderoottolvm.html

After the command lvmcreate_initrd I've mounted the initrd and added the module for my raid-controller and changed linuxrc. But I mentioned that. Sorry if I misunderstand you.

Best regards

Stefan

#5 lore raw
Quoted 7 lines · Stefan Weigel

Am Donnerstag, 17. Oktober 2002 22:30 schrieb Luca Berra:

Quoted 2 lines

do you have any hint printed above this?

Hi!
I don't know exactly what you guess. I've used this one: http://tldp.org/HOWTO/LVM-HOWTO/upgraderoottolvm.html

I meant, could you maybe connect a serial cable and provide the boot messages up to the kernel panic, or something like that

i am especially interested whether you have devfs or not, messages from vgchange and the 'Mounted root' message

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
#6 lore raw

Am Freitag, 18. Oktober 2002 11:58 schrieb Luca Berra:

Quoted 8 lines · Stefan Weigel
Quoted 6 lines

Am Donnerstag, 17. Oktober 2002 22:30 schrieb Luca Berra:

Quoted 1 line

do you have any hint printed above this?

Hi!
I don't know exactly what you guess. I've used this one:
http://tldp.org/HOWTO/LVM-HOWTO/upgraderoottolvm.html

Quoted 7 lines

I meant, could you maybe connect a serial cable and provide the boot messages up to the kernel panic, or something like that

i am especially interested whether you have devfs or not, messages from vgchange and the 'Mounted root' message

L.

Oh..ok. This should be no problem. I sent you the output soon.

Greetings

Stefan

#7 lore raw

Hi Luca!
I should be happy now but there's still a problem left. First: now I can boot from my lvm-root-fs (yeeehhaaa). My problem: one line in /etc/lilo.conf (ramdisk=16384 instead of ramdisk=8192).
But if I now want to run lilo I get this message:

Fatal: Sorry, dont know how to handle device 0x3a05

My lilo.conf:

...
boot=/dev/rd/c0d0

image = /boot/vmlinuz
root = /dev/sysvg/rootlv
label = lvm
initrd = /boot/initrd-lvm-2.4.7-4GB.gz
ramdisk = 16384
...

Best regards

Stefan Weigel

Am Freitag, 18. Oktober 2002 12:41 schrieb Stefan Weigel:

Quoted 29 lines

Am Freitag, 18. Oktober 2002 11:58 schrieb Luca Berra:

Quoted 8 lines · Stefan Weigel
Quoted 6 lines

Am Donnerstag, 17. Oktober 2002 22:30 schrieb Luca Berra:

Quoted 1 line

do you have any hint printed above this?

Hi!
I don't know exactly what you guess. I've used this one:
http://tldp.org/HOWTO/LVM-HOWTO/upgraderoottolvm.html

Quoted 7 lines

I meant, could you maybe connect a serial cable and provide the boot messages up to the kernel panic, or something like that

i am especially interested whether you have devfs or not, messages from vgchange and the 'Mounted root' message

L.

Oh..ok. This should be no problem. I sent you the output soon.

Greetings

Stefan

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#8 lore raw
Quoted 6 lines · Stefan Weigel

Hi Luca!
I should be happy now but there's still a problem left. First: now I can boot from my lvm-root-fs (yeeehhaaa). My problem: one line in /etc/lilo.conf (ramdisk=16384 instead of ramdisk=8192). But if I now want to run lilo I get this message:

Fatal: Sorry, dont know how to handle device 0x3a05

this could be caused by an old lilo version.

LVM support was added to mainstream lilo in version 22.

upgrade to latest version from
ftp://metalab.unc.edu/pub/Linux/system/boot/lilo

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
#9 lore raw

Sunday, October 20, 2002, 12:34:57 PM, you wrote:

Quoted 8 lines · Stefan Weigel
Quoted 8 lines

Hi Luca!
I should be happy now but there's still a problem left. First: now I can boot from my lvm-root-fs (yeeehhaaa). My problem: one line in /etc/lilo.conf (ramdisk=16384 instead of ramdisk=8192).
But if I now want to run lilo I get this message:

Fatal: Sorry, dont know how to handle device 0x3a05

LB> this could be caused by an old lilo version.

LB> LVM support was added to mainstream lilo in version 22.

LB> upgrade to latest version from
LB> ftp://metalab.unc.edu/pub/Linux/system/boot/lilo

LB> L.

Yes, this could be the problem. But on the other hand it's a SuSE Linux Enterprise version. And SuSE is very common with LVM. So I will be very surprised if their packages wouldn't work together. But I will give this a try..I will report if this problem is caused by an old lilo version.

best regards

Stefan

Signature · 16 lines
__________________________________________

 stefan weigel
 administration

 global linxs gmbh
 knowledge interaction
 romanstrasse 16
 80639 munich - germany
 www.global-linxs.com

 tel.: +49(0)89. 189 336- 61
 fax.: +49(0)89. 189 336- 99
 email: [email protected]

__________________________________________